[JBoss Seam] - First Deploy and Getting an Error
by ankiewsky
Hi guys,
I have been studing using the Seam Documentation, using seam-gen I generated everything fine. However, when I try to deploy the first application I am getting the following error:
13:36:49,412 ERROR [[/soujavapapers]] Error configuring application listener of class org.apache.myfaces.webapp.StartupServletContextListener
| java.lang.ClassNotFoundException: org.apache.myfaces.webapp.StartupServletContextListener
| at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
| at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
|
I am using the following development enviroment:
- MacOS
- Eclipse 3.1
- JDK 5.0 (MAC)
- JBoss SEAM 1.2.1GA
Trying to fix it: I can see that the MyFace's jars are not present on WEB-INF/lib, but on build my build.xml generated by seam I can see the code on "WAR TASK":
<copy todir="${war.dir}/WEB-INF/lib">
| <fileset dir="${lib.dir}">
| <include name="ajax4jsf*.jar" />
| <include name="richfaces*.jar" />
| <include name="oscache*.jar" />
| <include name="jsf-facelets.jar" />
| <include name="jboss-seam-*.jar" />
| <exclude name="jboss-seam-gen.jar" />
| </fileset>
| </copy>
I guess, that is not necessary due to these jars may be found on some other folder into my JBoss running enviroment.
As it is my first trying using JBoss Seam, I am sure can have a logical answer to that problem... Anybody could help me with that?
Regards
Edgar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033761#4033761
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033761
18 years, 7 months
[JBoss Messaging] - Re: ServiceBindingManager config is not honoured
by mskonda
Sorry clebert, I posted the wrong code (yes older version) by mistake by in actual I am usign this one Clebert (which is the new one):
<!-- ********************* JBoss Messaging**************** -->
|
| <service-config name="jboss.messaging:service=Connector,transport=socket"
| delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
| <delegate-config>
| <attribute name="Configuration"><![CDATA[
| <config>
| <invoker transport="bisocket">
| <attribute name="marshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
| <attribute name="unmarshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
| <!-- Serialization type must be jms - do not change! -->
| <attribute name="serializationtype" isParam="true">jms</attribute>
| <attribute name="dataType" isParam="true">jms</attribute>
| <attribute name="socket.check_connection" isParam="true">false</attribute>
| <attribute name="timeout">0</attribute>
| <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
| <attribute name="serverBindPort">19032</attribute>
| <attribute name="leasePeriod">10000</attribute>
| <attribute name="callbackStore">org.jboss.remoting.callback.CallbackStore</attribute>
| <attribute name="clientSocketClass" isParam="true">org.jboss.jms.client.remoting.ClientSocketWrapper</attribute>
| <attribute name="serverSocketClass">org.jboss.jms.server.remoting.ServerSocketWrapper</attribute>
| <attribute name="callbackErrorsAllowed">1</attribute>
| <attribute name="numberOfRetries" isParam="true">1</attribute>
| <attribute name="NumberOfCallRetries" isParam="true">2</attribute>
| <attribute name="clientMaxPoolSize" isParam="true">50</attribute>
| </invoker>
| <handlers>
| <handler subsystem="JMS">org.jboss.jms.server.remoting.JMSServerInvocationHandler</handler>
| </handlers>
| </config>]]>
| </attribute>
| </delegate-config>
|
| <binding port="19032"/>
| </service-config>
This config is from my server-bindings.xml which will override all the ports quoted in individual files such as remoting-service.xml
I don't have to go to remoting-service.xml to change the port of the connector but should reflect the one mentioned in my server bindings file, isn't it? Unfortunately it seems that the port is picked up from remoting-service.xml rather than my bindings file:
| 17:43:41,947 ERROR [SocketServerInvoker] Error starting ServerSocket. Bind port: 7544, bind address: /0.0.0.0
| 17:43:41,948 ERROR [Connector] Error starting connector.
| java.net.BindException: Address already in use
| at java.net.PlainSocketImpl.socketBind(Native Method)
| at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
| at java.net.ServerSocket.bind(ServerSocket.java:319)
| at java.net.ServerSocket.<init>(ServerSocket.java:185)
| at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:169)
| at org.jboss.remoting.transport.socket.SocketServerInvoker.createServerSocket(SocketServerInvoker.java:260)
| at org.jboss.remoting.transport.socket.SocketServerInvoker.start(SocketServerInvoker.java:189)
| at org.jboss.remoting.transport.bisocket.BisocketServerInvoker.start(BisocketServerInvoker.java:119)
| at org.jboss.remoting.transport.Connector.start(Connector.java:322)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at org.jboss.system.ServiceController.start(ServiceController.java:435)
| at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
|
Thanks
Madhu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033760#4033760
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033760
18 years, 7 months
[JBossWS] - how to run the jbossws samples?
by danielmesser
Hi,
I am running JBoss-4.0.5.GA on linux Suse 10.0.
I installed jbossws-1.2.0-SP1 using the instructions in the user guide.
To build the samples I dis the following:
- unziped the jbossws-samples-1.2.0.SP1.zip file
- cd jbossws-samples-1.2.0.SP1
- cp ant.properties.example ant.properties
- in the ant.properties file:
- set jboss40.home
- set jbossws.integration.target=jboss40
I then ran ant.
It got most of the third party libraries but failed to compile because the junit library was missing.
I downloaded junit4.1 and installed it in the thirdparty directory.
I was then able to build the samples.
Now, my general question is:
what do I do to run the tests?
I am most interested in running the jaxws/webresult sample.
I tried to run:
- ant tests
but I don't see any web services deployed in my $JBOSS_HOME/server/default/deploy directory and I don't see any services in
http://localhost:8080/jbossws/services
I also get the following exceptions:
tests-main:
[mkdir] Created dir: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/reports
[junit] Running org.jboss.test.ws.jaxrpc.samples.docstyle.bare.TrivialServiceDocBareTestCase
[junit] java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
[junit] at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:97)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[junit] at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
[junit] at sun.reflect.GeneratedMethodAccessor1189.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
[junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420)
[junit] at sun.reflect.GeneratedMethodAccessor1188.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
[junit] at sun.rmi.transport.Transport$1.run(Transport.java:153)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
[junit] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
[junit] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
[junit] at java.lang.Thread.run(Thread.java:595)
[junit] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
[junit] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
[junit] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
[junit] at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
[junit] at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
[junit] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
[junit] at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
[junit] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
[junit] at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
[junit] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
[junit] at $Proxy0.invoke(Unknown Source)
[junit] at org.jboss.test.ws.TestDeployerJBoss.deploy(TestDeployerJBoss.java:48)
[junit] at org.jboss.test.ws.JBossWSTestHelper.deploy(JBossWSTestHelper.java:55)
[junit] at org.jboss.test.ws.JBossWSTestSetup.setUp(JBossWSTestSetup.java:90)
[junit] at junit.extensions.TestSetup$1.protect(TestSetup.java:22)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
[junit] at junit.extensions.TestSetup.run(TestSetup.java:27)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
[junit] Tests run: 0, Failures: 0, Errors: 1, Time elapsed: 0.921 sec
[junit] Test org.jboss.test.ws.jaxrpc.samples.docstyle.bare.TrivialServiceDocBareTestCase FAILED
[junit] Running org.jboss.test.ws.jaxrpc.samples.docstyle.wrapped.TrivialServiceDocWrappedTestCase
[junit] java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
[junit] at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:97)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[junit] at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
[junit] at sun.reflect.GeneratedMethodAccessor1189.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
[junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420)
[junit] at sun.reflect.GeneratedMethodAccessor1188.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
[junit] at sun.rmi.transport.Transport$1.run(Transport.java:153)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
[junit] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
[junit] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
[junit] at java.lang.Thread.run(Thread.java:595)
[junit] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
[junit] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
[junit] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
[junit] at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
[junit] at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
[junit] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
[junit] at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
[junit] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
[junit] at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
[junit] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
[junit] at $Proxy0.invoke(Unknown Source)
[junit] at org.jboss.test.ws.TestDeployerJBoss.deploy(TestDeployerJBoss.java:48)
[junit] at org.jboss.test.ws.JBossWSTestHelper.deploy(JBossWSTestHelper.java:55)
[junit] at org.jboss.test.ws.JBossWSTestSetup.setUp(JBossWSTestSetup.java:90)
[junit] at junit.extensions.TestSetup$1.protect(TestSetup.java:22)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
[junit] at junit.extensions.TestSetup.run(TestSetup.java:27)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
[junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
[junit] Tests run: 0, Failures: 0, Errors: 1, Time elapsed: 0.688 sec
[junit] Test org.jboss.test.ws.jaxrpc.samples.docstyle.wrapped.TrivialServiceDocWrappedTestCase FAILED
Just FYI, here is the output of the build process:
Buildfile: build.xml
prepare:
[mkdir] Created dir: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/log
[touch] Creating /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/log/test.log
[echo]
[echo] -----------------------------------------------
[echo] jboss.home = /opt/jboss/jboss-4.0.5.GA
[echo] tomcat.home = /usr/java/tomcat
[echo] java.home = /usr/java/jdk1.5.0_11/jre
[echo] endorsed = /opt/jboss/jboss-4.0.5.GA/lib/endorsed
[echo] excludesfile = tests-jboss40-excludes.txt
[echo] -----------------------------------------------
thirdparty-get:
thirdparty-classpath:
thirdparty:
common-classpath:
jboss-classpath:
tomcat-classpath:
init:
wsconsume:
compile14:
compile15:
[mkdir] Created dir: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes
[javac] Compiling 230 source files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
compile:
copy-resources:
[copy] Copying 1 file to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes
[copy] Copying 1 file to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes
[copy] Copying 169 files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources
[copy] Copying 28 files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources
[copy] Copied 24 empty directories to 11 empty directories under /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources
servicegen:
[mkdir] Created dir: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs
[zip] Building zip: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wsbpel-hello-process.zip
[copy] Copying 1 file to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs
[servicegen] Apr 2, 2007 11:44:44 AM org.jbpm.JbpmConfiguration getInstance
[servicegen] INFO: using jbpm configuration resource 'jbpm.cfg.xml'
[servicegen] Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
[servicegen] Apr 2, 2007 11:44:46 AM org.jbpm.bpel.xml.BpelReader readWsdlDocument
[servicegen] INFO: read wsdl definitions: hello.wsdl
[servicegen] Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
[servicegen] Apr 2, 2007 11:44:47 AM org.jbpm.bpel.xml.BpelReader read
[servicegen] INFO: read bpel process: hello.bpel
[servicegen] Apr 2, 2007 11:44:47 AM org.jbpm.bpel.wsdl.util.ServiceGenerator writeImportedDefinition
[servicegen] INFO: wrote interface definition: locationURI=hello.wsdl, basePath=/home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/wstools/resources/jaxrpc/samples/wsbpel/hello/WEB-INF/wsdl
[servicegen] Apr 2, 2007 11:44:47 AM org.jbpm.bpel.wsdl.util.ServiceGenerator generatePortComponents
[servicegen] INFO: wrote binding definition: hello-binding-1.wsdl
[servicegen] Apr 2, 2007 11:44:47 AM org.jbpm.bpel.wsdl.util.ServiceGenerator generatePortComponents
[servicegen] INFO: wrote service definition: hello-service.wsdl
wstools:
[mkdir] Created dir: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/wstools/java
[move] Moving 2 files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/wstools/java
[copy] Copying 51 files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources
[copy] Copying 10 files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources/jaxrpc/samples
[copy] Copied 18 empty directories to 1 empty directory under /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/resources/jaxrpc/samples
wsprovide:
generate-resources:
[javac] Compiling 2 source files to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes
main:
build-samples-jaxrpc:
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-docstyle-bare.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-docstyle-bare-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-docstyle-wrapped.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-docstyle-wrapped-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-dynamichandler.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-dynamichandler-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-exception.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-exception-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-handler.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-handler-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-holder.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-holder-client.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jmstransport.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jmstransport.sar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109ejb-rpc.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109ejb-rpc-client.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109ejb-doc.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109ejb-doc-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109pojo-rpc.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109pojo-rpc-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109pojo-doc.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-jsr109pojo-doc-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-message.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-message-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-mtom.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-mtom-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-oneway.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-oneway-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-rpcstyle.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-rpcstyle-client.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-secureejb.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-secureejb-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-swa.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-swa-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-store-pass-encrypt.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-store-pass-encrypt-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wsbpel-hello.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wsbpel-hello-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wssecurity-sign.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wssecurity-sign-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wssecurity-encrypt.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxrpc-samples-wssecurity-encrypt-client.jar
build-samples-jaxws:
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-asynchronous.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-context.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-context.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-context-jboss4x.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-exception.war
[copy] Copying 1 file to /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/classes/org/jboss/test/ws/jaxws/samples/handlerchain
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-handlerchain.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-handlerchain-client.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-jsr181ejb.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-jsr181pojo.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-jsr181pojo-docwrapped.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-jsr181pojo-docwrapped-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-logicalhandler-source.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-logicalhandler-jaxb.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-oneway.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-provider-jaxb.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-provider-message.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-provider-payload.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-retail.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-retail-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-soapbinding.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webmethod.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webparam.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webresult.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice01-jse.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice02-jse.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice03-jse.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice01-ejb3.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice02-ejb3.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webservice03-ejb3.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-servlet-client.war
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-ejb3-client.jar
[jar] Warning: skipping jar archive /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-secure.jar because no files were included.
[jar] Building MANIFEST-only jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-secure.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-secure-client.jar
[jar] Building jar: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-webserviceref-override-client.jar
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-wsaddressing.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-wseventing.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-wssecurity-encrypt.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-wssecurity-sign.war
[war] Building war: /home/dmesser/jbossws/jbossws-samples-1.2.0.SP1/output/libs/jaxws-samples-xop-doclit.war
BUILD SUCCESSFUL
Total time: 21 seconds
Thanks,
Daniel Messer
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033759#4033759
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033759
18 years, 7 months
[EJB 3.0] - Problems updating hibernate
by aidan_b5
Wasn't sure where to post this, so excuse me if its in the wrong place.
I'm trying to update the hibernate jars from version 3.2.1 to the latest and get the following exception:
2007-04-02 16:19:00,417 INFO [org.hibernate.cfg.annotations.CollectionBinder] Mapping collection: main.java.com.sms.object.entity.PersistentValue.persistentProperties -> persistentproperty
| 2007-04-02 16:19:00,417 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Starting failed persistence.units:jar=ObjectService.jar,unitName=visentity
| org.hibernate.AnnotationException: java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator.<init>(java.lang.Class, java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator, java.util.Map, org.hibernate.annotations.common.reflection.ReflectionManager)
| at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:353)
| at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)
| at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1269)
| at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:150)
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:888)
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:416)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126)
| at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy56.start(Unknown Source)
| at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:96)
| at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:467)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:317)
| at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy36.start(Unknown Source)
| at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy37.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy6.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:490)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator.<init>(java.lang.Class, java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator, java.util.Map, org.hibernate.annotations.common.reflection.ReflectionManager)
| at java.lang.Class.getConstructor0(Class.java:2678)
| at java.lang.Class.getDeclaredConstructor(Class.java:1953)
| at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:343)
|
I have definately updated all jars to the latest version with the exception of hibernate-client which is a jboss specific jar i believe?
The versions of the jars i've installed are:
in client directory:
hibernate-annotations - v3.3.0.GA
hibernate-commons-annotations - v3.0.0.GA
hibernate-validator - v 3.0.0.GA
in the lib directory, as above plus:
hibernate3 - v3.2.2
hibernate-entitymanager - v3.3.1.GA
As some of these jars are new - hibernate-commons-annotations and hibernate-validator, do i need to tell jboss to read them in the client directory?...or will it do it automatically?
I am using jboss 4.0.5.GA
Thanks for your help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033757#4033757
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033757
18 years, 7 months
[JBoss Messaging] - Re: ServiceBindingManager config is not honoured
by clebert.suconic@jboss.com
What file is that?
For changing remoting properties, you have to change jboss-messaging.sar/remoting-service.xml.
<mbean code="org.jboss.remoting.transport.Connector"
| name="jboss.messaging:service=Connector,transport=bisocket"
| display-name="Bisocket transport Connector">
| <attribute name="Configuration">
| <config>
| <invoker transport="bisocket">
| <attribute name="marshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
| <attribute name="unmarshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
| <!-- Serialization type must be jms - do not change! -->
| <attribute name="serializationtype" isParam="true">jms</attribute>
| <attribute name="dataType" isParam="true">jms</attribute>
| <attribute name="socket.check_connection" isParam="true">false</attribute>
| <attribute name="timeout">0</attribute>
| <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
| <attribute name="serverBindPort">4457</attribute>
| <attribute name="leasePeriod">10000</attribute>
| <attribute name="callbackStore">org.jboss.remoting.callback.CallbackStore</attribute>
| <attribute name="clientSocketClass" isParam="true">org.jboss.jms.client.remoting.ClientSocketWrapper</attribute>
| <attribute name="serverSocketClass">org.jboss.jms.server.remoting.ServerSocketWrapper</attribute>
| <attribute name="callbackErrorsAllowed">1</attribute>
| <attribute name="numberOfRetries" isParam="true">1</attribute>
| <attribute name="NumberOfCallRetries" isParam="true">2</attribute>
| <attribute name="clientMaxPoolSize" isParam="true">50</attribute>
| </invoker>
| <handlers>
| <handler subsystem="JMS">org.jboss.jms.server.remoting.JMSServerInvocationHandler</handler>
| </handlers>
| </config>
| </attribute>
| <depends>jboss.messaging:service=NetworkRegistry</depends>
| </mbean>
|
Notice that the transport now is bisocket... it looks like you were referring to an old version?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033755#4033755
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033755
18 years, 7 months
[JBoss Seam] - unit testing a war with actions in a separate jar
by c_inconnu
Hi,
I am trying to repackage the booking example in 3 jars :
-domain.jar for the ejb entities
-ejb.jar for the actions
-web.war for the webapp
I managed to successfully unit test the actions (BookingUnitTest) but i cannot make i work for the webapp.
In domain.jar i have :
anonymous wrote :
| META-INF/persistence.xml
| org/jboss/seam/example/booking/Booking.class
| org/jboss/seam/example/booking/Hotel.class
| org/jboss/seam/example/booking/User.class
| seam.properties (empty)
|
In ejb.jar i have :
anonymous wrote :
| META-INF/ejb-jar.xml (with SeamInterceptor)
| org/jboss/seam/example/booking/***Action.class
| seam.properties (empty)
|
My webapp depends on domain.jar and ejb.jar and in my webapp target/classes directory i have :
anonymous wrote :
| css/**
| img/**
| org/jboss/seam/example/booking/***Test.class
| WEB-INF/components.xml
| WEB-INF/faces-config.xml
| WEB-INF/navigation.xml
| WEB-INF/pages.xml
| WEB-INF/web.xml
| *.xtml
| components.properties
|
components.xml :
| <components ...>
|
| <core:init debug="true" jndi-pattern="@jndiPattern@" />
|
| <core:manager concurrent-request-timeout="500" conversation-timeout="120000" conversation-id-parameter="cid"
| conversation-is-long-running-parameter="clr" />
|
| <core:pages no-conversation-view-id="/index.xhtml" />
|
| <!-- in embedded.jar -->
| <!--core:ejb installed="@embeddedEjb@" /-->
|
| </components>
components.properties :
| embeddedEjb = true
| jndiPattern = #{ejbName}/local
|
It works in an ear but here i got:
| FAILED: testBookHotel
| org.jboss.seam.InstantiationException: Could not instantiate Seam component: hotelSearch
| at org.jboss.seam.Component.newInstance(Component.java:1740)
| at org.jboss.seam.Component.getInstance(Component.java:1643)
| at org.jboss.seam.Component.getInstance(Component.java:1610)
| at org.jboss.seam.Component.getInstance(Component.java:1604)
| at org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49)
| at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:135)
| at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
| at com.sun.el.parser.AstValue.getTarget(AstValue.java:41)
| at com.sun.el.parser.AstValue.setValue(AstValue.java:111)
| at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:246)
| at org.jboss.seam.util.UnifiedELValueBinding.setValue(UnifiedELValueBinding.java:44)
| at org.jboss.seam.mock.SeamTest$Request.setValue(SeamTest.java:374)
| at org.jboss.seam.example.booking.BookingTest$2.updateModelValues(BookingTest.java:62)
| at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:476)
| at org.jboss.seam.example.booking.BookingTest.testBookHotel(BookingTest.java:80)
| Caused by: javax.naming.NameNotFoundException: HotelSearchingAction not bound
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:626)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:588)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at org.jboss.seam.Component.instantiateSessionBean(Component.java:1107)
| at org.jboss.seam.Component.instantiate(Component.java:1093)
| at org.jboss.seam.Component.newInstance(Component.java:1736)
| ... 35 more
| ... Removed 21 stack frames
although i have
|
| INFO 2007-04-02 18:03:48,468 (Component.java:245) - Component: hotelSearch, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.HotelSearchingAction, JNDI: HotelSearchingAction/local
|
| ...
|
|
| INFO 2007-04-02 18:03:52,296 (Ejb3DescriptorHandler.java:1699) - adding class annotation org.jboss.annotation.internal.DefaultInterceptorMarker to org.jboss.seam.example.booking.HotelSearchingAction org.jboss.annotation.internal.DefaultInterceptorMarkerImpl@14b74a7
| DEBUG 2007-04-02 18:03:52,296 (Ejb3DescriptorHandler.java:1701) - adding class annotation org.jboss.annotation.internal.DefaultInterceptorMarker to org.jboss.seam.example.booking.HotelSearchingAction org.jboss.annotation.internal.DefaultInterceptorMarkerImpl@14b74a7
| DEBUG 2007-04-02 18:03:52,296 (Ejb3AnnotationHandler.java:164) - found EJB3: ejbName=HotelSearchingAction, class=org.jboss.seam.example.booking.HotelSearchingAction, type=STATEFUL
| DEBUG 2007-04-02 18:03:52,296 (ProxyDeployer.java:133) - no declared remote bindings for : HotelSearchingAction
|
So it seems to be a classloading problem (???)
Any help will be greatly appreciated !
David
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033754#4033754
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033754
18 years, 7 months
[JBoss Seam] - Re: Seam application displays no data from DB
by mgrouch
And there is this error, which might give more light on the problem
anonymous wrote :
| 12:22:51,003 DEBUG [Events] Processing event:org.jboss.seam.preAuthenticate
| 12:22:51,003 DEBUG [SeamVariableResolver] resolving name: authenticator
| 12:22:51,003 DEBUG [Component] seam component not found: authenticator
| 12:22:51,003 DEBUG [SeamVariableResolver] could not resolve name
| 12:22:51,003 ERROR [SeamLoginModule] Error invoking login method
| javax.faces.el.EvaluationException: Exception while invoking expression #{authenticator.authenticate}
| at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:165)
| at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58)
| at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75)
| at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:148)
| at org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:104)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
| at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
| at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
| at java.security.AccessController.doPrivileged(Native Method)
| at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
| at javax.security.auth.login.LoginContext.login(LoginContext.java:575)
| at org.jboss.seam.security.Identity.authenticate(Identity.java:247)
| at org.jboss.seam.security.Identity.authenticate(Identity.java:240)
| at org.jboss.seam.security.Identity.login(Identity.java:170)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at com.sun.el.parser.AstValue.invoke(AstValue.java:174)
| at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:286)
| at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
| at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
| at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
| at javax.faces.component.UICommand.broadcast(UICommand.java:106)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:329)
| at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
| at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
| at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
| at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
| at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
| at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
| at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
| at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3151)
| at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
| at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
| at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
| at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
| at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
| at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
| at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
| Caused by: javax.faces.el.PropertyNotFoundException: Base is null: authenticator
| at org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBindingImpl.java:460)
| at org.apache.myfaces.el.MethodBindingImpl.resolveToBaseAndProperty(MethodBindingImpl.java:180)
| at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:114)
| ... 60 more
| 12:22:51,144 DEBUG [Identity] Login failed for:
| javax.security.auth.login.LoginException: Login Failure: all modules ignored
| at javax.security.auth.login.LoginContext.invoke(LoginContext.java:921)
| at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
| at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
| at java.security.AccessController.doPrivileged(Native Method)
| at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
| at javax.security.auth.login.LoginContext.login(LoginContext.java:575)
| at org.jboss.seam.security.Identity.authenticate(Identity.java:247)
| at org.jboss.seam.security.Identity.authenticate(Identity.java:240)
| at org.jboss.seam.security.Identity.login(Identity.java:170)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at com.sun.el.parser.AstValue.invoke(AstValue.java:174)
| at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:286)
| at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
| at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
| at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
| at javax.faces.component.UICommand.broadcast(UICommand.java:106)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:329)
| at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
| at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
| at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
| at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
| at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
| at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
| at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
| at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3151)
| at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
| at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
| at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
| at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
| at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
| at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
| at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033753#4033753
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033753
18 years, 7 months
[Management, JMX/JBoss] - NotContextException in ldap context created by MBean
by RedQ
Hi,
I have an mbean which creates ldap-contexts. Definition of the mbean is:
<mbean code="org.jboss.naming.ExternalContext"
| name=":service=ExternalContext,jndiName=ldap/main" >
| <attribute name="JndiName">ldap/main</attribute>
| <attribute name="Properties">ldap.properties</attribute>
| <attribute name="InitialContext">
| javax.naming.ldap.InitialLdapContext</attribute>
| <attribute name="RemoteAccess">true</attribute>
| </mbean>
When looking at the binding (using JNDIView), I see that the proxy created by jboss implements
In the code, I request a context like this:LdapContext ctx = (LdapContext)new InitialContext().lookup( "ldap/main" );
A check of the context by calling instanceof DirContext return true after the lookup.
The problem is, that everytime any operation must actually be performed using the context (like ctx.search()), an exception is thrown:
javax.naming.NotContextException: Not an instance of DirContext
| at javax.naming.directory.InitialDirContext.getURLOrDefaultInitDirCtx(Unknown Source)
| at javax.naming.directory.InitialDirContext.search(Unknown Source)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.naming.ExternalContext$CachedContext.invoke(ExternalContext.java:538)
| at $Proxy39.search(Unknown Source)
I don't know if I'm misunderstanding the way that jboss is making the proxies.. The InitialDirContext.getURLOrDefaultInitDirCtx is also using instanceof to check the instance of the parameter.
Could anyone advice how to overcome this problem, or maybe point me "in the right direction" ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033752#4033752
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033752
18 years, 7 months