[EJB 3.0] - Re: Getting Syntax error with EJB 3.0.
by dvuday
Hi...
I am unable to access the EJB deployed in the server....I followed the same thing which was given in the documentaion (link sent by ALR) ..but couldnt succeeded...
I even tried deploying the EJB3Trail.ear (which was given in the JBoss TrailBlazer) in the server and tried to access the ...Bean...
But getting the same exception saying
17:22:06,776 INFO [EARDeployer] Init J2EE application: file:/D:/Program Files/jboss-4.0.4.GA/server/default/deploy/EJB3Trail.ear
17:22:08,260 INFO [TomcatDeployer] deploy, ctxPath=/EJB3Trail, warUrl=.../tmp/deploy/tmp41708EJB3Trail.ear-contents/web-exp.war/
17:22:08,729 INFO [EARDeployer] Started J2EE application: file:/D:/Program Files/jboss-4.0.4.GA/server/default/deploy/EJB3Trail.ear
17:22:23,948 ERROR [STDERR] javax.naming.NameNotFoundException: EJB3Trail not bound
17:22:23,948 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
17:22:23,948 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
17:22:23,948 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
17:22:23,948 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
17:22:23,948 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
17:22:23,948 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
is it because of the server i am using???
The server i am using is - jboss-4.0.4.GA (JEMS Installer)
prior to this version i used JBOSS: 4.0.3SP1
any body please help me out..
Thanks in advanse
Uday
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996961#3996961
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996961
18 years
[JBossWS] - Re: HandlerChain
by zauberlehrling
Hello,
I've tried the workaround:
| @HandlerChain(file="jar:file:///opt/jboss-4.0.5.GA/server/default/deploy/jsr181pojo.war!/WEB-INF/Handler.xml",name="")
|
and I get a FileNotFoundException:
| org.jboss.ws.WSException: Cannot process handler chain: jar:file:///opt/jboss-4.0.5.GA/server/default/deploy/jsr181pojo.war!/WEB-INF/Handler.xml
| at org.jboss.ws.metadata.AnnotationsMetaDataBuilder.processHandlerChain(AnnotationsMetaDataBuilder.java:560)
| at org.jboss.ws.metadata.AnnotationsMetaDataBuilder.setupEndpointFromAnnotations(AnnotationsMetaDataBuilder.java:164)
| at org.jboss.ws.metadata.AnnotationsMetaDataBuilderJSE.buildMetaData(AnnotationsMetaDataBuilderJSE.java:82)
| at org.jboss.ws.server.WebServiceDeployerJSE.createWebServicesMetaData(WebServiceDeployerJSE.java:196)
| at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java:103)
| at org.jboss.ws.server.WebServiceDeployerJSE.create(WebServiceDeployerJSE.java:66)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
| 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 $Proxy45.create(Unknown Source)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor18.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 $Proxy8.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| Caused by: java.io.FileNotFoundException: JAR entry WEB-INF/Handler.xml not found in /opt/jboss-4.0.5.GA/server/default/deploy/jsr181pojo.war
| at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:114)
And the file Handler.xml resides in the directory WEB-INF:
> jar tvf jsr181pojo.war
| ...
| 365 Sat Dec 30 11:43:54 CET 2006 WEB-INF/Handler.xml
| 726 Sat Dec 30 12:33:06 CET 2006 WEB-INF/web.xml
|
Did I get it wrong? I'm using jbossws-1.0.3 and jboss-4.0.5.GA .
Many thanks in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996960#3996960
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996960
18 years
[JNDI/Naming/Network] - Help me running the Simple session bean programme
by sanjeet
i am getting following when i try to run client application.....
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/serial/objectmetamodel/safecloning/SafeClone
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredField(Unknown Source)
at java.io.ObjectStreamClass.getDeclaredSUID(Unknown Source)
at java.io.ObjectStreamClass.access$700(Unknown Source)
at java.io.ObjectStreamClass$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.(Unknown Source)
at java.io.ObjectStreamClass.lookup(Unknown Source)
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.jboss.proxy.Interceptor.readExternal(Interceptor.java:80)
at java.io.ObjectInputStream.readExternalData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.jboss.proxy.Interceptor.readExternal(Interceptor.java:80)
at java.io.ObjectInputStream.readExternalData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.jboss.proxy.Interceptor.readExternal(Interceptor.java:80)
at java.io.ObjectInputStream.readExternalData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.java:156)
at java.io.ObjectInputStream.readExternalData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.rmi.MarshalledObject.get(Unknown Source)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.einstix.client.InterestClient.main(InterestClient.java:43)
i have already aded in classpath following jar file:
"jboss-client.jar" "jnp-client.jar" and "jboss-common-client.jar"
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996951#3996951
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996951
18 years
[Messaging, JMS & JBossMQ] - Re: maxPoolSize and 4.0.5
by PhilipWu
I think there should be MaxPoolSize rather than a maxSession property.
When I set my MDB to have a maxSession of 1 (to get a singleton), and send multiple messages to the Queue, indeed only one MDB is actually being processed (as confirmed in my logs). However, when I go to the JMX-console and click on the queue to which my MDB is listening, I can see that the property InProcessMessageCount has a value of 2. This would suggest at least 2 MDB's are attempting to process messages rather than a singleton. Why is this? Could this be a bug?
What im trying to do is wipe out all messages from the Queue including the one's that are in process. I am able to do this by getting access to the MBean for messages that are "waiting" in the queue and invoking the "removeAllMessages" method. However, I am unable to delete the messages that are "in process", except the one that is actively running.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996947#3996947
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996947
18 years