[JBoss Portal] - Re: ClassNotFoundException when class is present in WEB-INF/
by advaittrivedi
Hi Sohil,
I ended up with another problem. I have JB AS 4.0.5_GA and JBoss Portal 2.4 on top of it. I have pebble.war which contains WEB-INF/lib/spring-dao-1.2.8.jar which contains TransactionAspectSupport.class. I have alfresco.war which contains WEB-INF/lib/spring.jar which also contains TransactionAspectSupport.class.
First I had, UseJBossWebLoader=false and Java2ClassLoadingCompliance=false, but then while deploying pebble.war it gave following exception:
java.lang.NoClassDefFoundError: net/sourceforge/pebble/web/action/ActionNotFoundException
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
java.lang.Class.getConstructor0(Class.java:2640)
java.lang.Class.newInstance0(Class.java:321)
Then in changed UseJBossWebLoader=true. Result: pebble.war got deployed successfully but deployment of alfresco.war threw exceptions:
java.lang.NoSuchMethodError: org.alfresco.util.transaction.SpringAwareUserTransaction.doFinally(Lorg/springframework/transaction/interceptor/TransactionAspectSupport$TransactionInfo;)V
at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:420)
at org.alfresco.repo.transaction.TransactionUtil.executeInTransaction(TransactionUtil.java:186)
Please note that I dont have any spring related jars in JBOSS_HOME/server/default/lib
Thanks & Regards,
Advait Trivedi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056537#4056537
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056537
18Â years, 10Â months
[JBoss jBPM] - Hello World Example Error in running test
by ram_kumar
Hi,
I am getting this error report when i try to run the test class through ant -run test in the helloworld example of JBPM-Bpel 1.1-beta3
and the test result is
Running org.jbpm.bpel.tutorial.hello.HelloTest
[junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 17.936 sec
javax.naming.NamingException: Cannot unmarshall service ref meta data, cause: java.io.InvalidClassException: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940
at org.jboss.ws.jaxrpc.ServiceObjectFactory.getObjectInstance(ServiceObjectFactory.java:127)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
at org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:135)
at $Proxy1.lookup(Unknown Source)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jbpm.bpel.tutorial.hello.HelloTest.setUp(HelloTest.java:56)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
javax.naming.NamingException: Cannot unmarshall service ref meta data, cause: java.io.InvalidClassException: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940
at org.jboss.ws.jaxrpc.ServiceObjectFactory.getObjectInstance(ServiceObjectFactory.java:127)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
at org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:135)
at $Proxy1.lookup(Unknown Source)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jbpm.bpel.tutorial.hello.HelloTest.setUp(HelloTest.java:56)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
<system-out><![CDATA[^^^^-
18:45:30,284 DEBUG SecurityAssociation : Using ThreadLocal: false
---
18:45:42,002 ERROR ServiceObjectFactory : Cannot create service
javax.naming.NamingException: Cannot unmarshall service ref meta data, cause: java.io.InvalidClassException: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940
at org.jboss.ws.jaxrpc.ServiceObjectFactory.getObjectInstance(ServiceObjectFactory.java:127)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
at org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:135)
at $Proxy1.lookup(Unknown Source)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jbpm.bpel.tutorial.hello.HelloTest.setUp(HelloTest.java:56)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
---
18:45:42,033 ERROR ServiceObjectFactory : Cannot create service
javax.naming.NamingException: Cannot unmarshall service ref meta data, cause: java.io.InvalidClassException: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940
at org.jboss.ws.jaxrpc.ServiceObjectFactory.getObjectInstance(ServiceObjectFactory.java:127)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
at org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:135)
at $Proxy1.lookup(Unknown Source)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jbpm.bpel.tutorial.hello.HelloTest.setUp(HelloTest.java:56)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
]]></system-out>
<system-err><![CDATA[]]></system-err>[/Color]
It would be great if any one can fix this issue.
For your Ref:I am using
Jboss4.0.4GA
JBPM _ Bpel 1.1 beta 3
jwsdp1.6
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056534#4056534
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056534
18Â years, 10Â months
[JBoss Seam] - Validation throws an exception instead of redisplaying the p
by gaboo
Here is the page :
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:rich="http://richfaces.ajax4jsf.org/rich"
| template="../layout/template.xhtml">
|
| <ui:define name="body">
|
| <h:messages styleClass="message"/>
|
| <ui:include src="usersMenu.xhtml"/>
|
| <h:form>
|
| <s:validateAll>
|
| <f:facet name="aroundInvalidField">
| <s:span styleClass="errors"/>
| </f:facet>
| <f:facet name="afterInvalidField">
| <s:span> <s:message/></s:span>
| </f:facet>
|
| <s:decorate>#{messages['lrb.user.id']} <h:inputText id="id" value="#{user.id}"/></s:decorate><br/>
| <s:decorate>#{messages['lrb.user.username']} <h:inputText id="username" value="#{user.username}"/></s:decorate><br/>
| <s:decorate>#{messages['lrb.user.password']} <h:inputText id="password" value="#{user.password}"/></s:decorate><br/>
| <s:decorate>#{messages['lrb.user.email']} <h:inputText id="email" value="#{user.email}"/></s:decorate>
|
| </s:validateAll>
|
| <!-- actions -->
| <div class="actionButtons">
|
| <s:link view="/admin/users.xhtml" value="#{messages['lrb.cancel']}"/>
| <h:outputText value=" "/>
| <h:commandLink action="#{userHome.update}" value="#{messages['lrb.update']}" rendered="#{userHome.managed}"/>
| <h:outputText value=" "/>
| <s:link action="#{userHome.remove}" value="#{messages['lrb.delete']}" rendered="#{userHome.managed}"/>
| <h:outputText value=" "/>
| <h:commandLink action="#{userHome.persist}" value="#{messages['lrb.create']}" rendered="#{!userHome.managed}"/>
|
| </div>
| </h:form>
|
| </ui:define>
| </ui:composition>
the entity in components.xml :
<factory name="user" value="#{userHome.instance}"/>
| <fwk:entity-home name="userHome"
| entity-class="com.lrb.metabook.User"
| new-instance="#{newUser}"/>
|
| <component name="newUser" class="com.lrb.metabook.User"/>
|
| <fwk:entity-query name="users"
| max-results="5">
| <fwk:ejbql>from User</fwk:ejbql>
| <fwk:order>id</fwk:order>
| </fwk:entity-query>
The thing is that if I add required="true" to each h:inputText, it works as expected, but do not follow annotated validation.
Here is the entity bean :
package com.lrb.metabook;
|
| // Generated 10 juin 2007 20:21:17 by Hibernate Tools 3.2.0.b9
|
| import java.util.Iterator;
|
| /**
| * User generated by hbm2java
| */
| @Entity
| public class User implements java.io.Serializable {
|
| private long id;
|
| private String password;
|
| private String username;
|
| private List<Role> roles;
|
| private String email;
|
| public User() {
| }
|
| public User(long id, String password, String username) {
| this.id = id;
| this.password = password;
| this.username = username;
| }
|
| @Id
| @GeneratedValue
| public long getId() {
| return this.id;
| }
|
| public void setId(long id) {
| this.id = id;
| }
|
| @NotNull
| @Length(min = 1, max = 20)
| public String getPassword() {
| return this.password;
| }
|
| public void setPassword(String password) {
| this.password = password;
| }
|
| @NotNull
| @Length(min = 1, max = 20)
| public String getUsername() {
| return this.username;
| }
|
| public void setUsername(String username) {
| this.username = username;
| }
|
| @ManyToMany
| public List<Role> getRoles() {
| return roles;
| }
|
| private void setRoles(List<Role> roles) {
| this.roles = roles;
| }
|
| /**
| * @return roles list
| */
| public String rolesList() {
|
| if (roles != null) {
| StringBuffer sb = new StringBuffer();
| for (Iterator iter = roles.iterator(); iter.hasNext();) {
| Role role = (Role) iter.next();
| sb.append(role.getName() + " ");
| }
| return sb.toString();
| }
| return "";
| }
|
| @NotNull
| @Email
| public String getEmail() {
| return email;
| }
|
| public void setEmail(String email) {
| this.email = email;
| }
|
| }
|
I'm using seam 1.3.0ALPHA
Any idea ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056532#4056532
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056532
18Â years, 10Â months
[JBoss Seam] - Re: a4j vs valuechangelistener
by damianharvey
What you were pointed to in the A4j forum was a link to reRender only part of your ui:repeat. If you'd just like to reRender the whole thing, I find wrapping things like this in <s:div> to be very helpful. eg.
| <a:region>
| <s:div id="blogEntriesDiv">
| <ui:repeat id="listt" var="listvar" value="#{NewBlogEntryComponent.blogEntry_be.tags}">
| <h:outputText value="#{listvar} "/>
| <a:commandButton value="Delete" reRender="foo" action="#{NewBlogEntryComponent.remove(listvar)}"/>
| <br />
| </ui:repeat>
| </s:div>
| <br />
| <s:decorate>
| <h:selectOneMenu id="tags1" value="#{dev.nulll}" valueChangeListener="#{NewBlogEntryComponent.listener}">
| <s:selectItems var="field" label="#{field.toString}" value="#{AllTag}" noSelectionLabel="Please select : " />
| <s:convertEntity/>
| <a:support event="onchange" reRender="blogEntriesDiv" bypassUpdates="true" />
| </h:selectOneMenu>
| </s:decorate>
| </a:region>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056519#4056519
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056519
18Â years, 10Â months