[JBossWS] - Re: IllegalStateException Cannot find property
by gryffin
Thanks PeterJ for your suggestion.
I went ahead and tried again from a 'space-less' directory path and ensured that I was using Java 1.5.x. No improvment.
C:\MV4Client2\bin>\jboss-4.2.3.ga\bin\wsrunclient com.boeing.nmt.nls.test.AssetTest
log4j:WARN No appenders could be found for logger (org.jboss.ws.metadata.builder.jaxws.JAXWSWebServi
ceMetaDataBuilder).
log4j:WARN Please initialize the log4j system properly.
====================================
DISABLE TAG: FFF123456789
Tag deleted: false
Exception in thread "main" javax.xml.ws.WebServiceException: java.lang.IllegalStateException: Cannot
find property: javax.xml.ws.handler.message.outbound
at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:404)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:314)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:172)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152)
at $Proxy19.update(Unknown Source)
at com.boeing.nmt.nls.mv4client.MV4Client.disableTag(MV4Client.java:308)
at com.boeing.nmt.nls.test.AssetTest.main(AssetTest.java:25)
Caused by: java.lang.IllegalStateException: Cannot find property: javax.xml.ws.handler.message.outbo
und
at org.jboss.ws.core.jaxws.handler.MessageContextJAXWS.processPivot(MessageContextJAXWS.java
:109)
at org.jboss.ws.core.jaxws.client.ClientImpl.processPivot(ClientImpl.java:363)
at org.jboss.ws.core.CommonClient.processPivotInternal(CommonClient.java:476)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:404)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:302)
... 5 more
C:\MV4Client2\bin>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.5.0_15
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172642#4172642
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172642
17 years, 8 months
[Beginners Corner] - Re: MDB cannot be created when running in
by gan.gary
thanks, you still can remember my last post :) . The first in cluster will get:
2008-08-22 12:13:06,152 WARN [org.jboss.ejb3.mdb.MessagingContainer] destination not found: queue/XXX/YYY reason: javax.naming.NameNotFoundException: queue/XXX/YYY
| 2008-08-22 12:13:06,152 WARN [org.jboss.ejb3.mdb.MessagingContainer] creating a new temporary destination: queue/XXX/YYY
| 2008-08-22 12:13:06,152 DEBUG [org.jboss.mq.server.jmx.DestinationManager] Attempting to create destination: jboss.mq.destination:service=Queue,name=XXX/YYY; type=org.jboss.mq.server.jmx.Queue
the subsequent one will get:
2008-08-22 12:17:48,285 WARN [org.jboss.ejb3.mdb.MessagingContainer] Could not find the queue destination-jndi-name=queue/XXX/YYY
| 2008-08-22 12:17:48,295 WARN [org.jboss.ejb3.mdb.MessagingContainer] destination not found: queue/XXX/YYY reason: javax.naming.NameNotFoundException: queue not bound
| 2008-08-22 12:17:48,295 WARN [org.jboss.ejb3.mdb.MessagingContainer] creating a new temporary destination: queue/XXX/YYY
| 2008-08-22 12:17:48,305 DEBUG [org.jboss.ejb3.mdb.MdbDelegateWrapper] Starting failed jboss.j2ee:jar=ZZZ.jar,name=WWW,service=EJB3
| javax.management.InstanceNotFoundException: jboss.mq:service=DestinationManager is not registered.
| at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523)
| ...
| 2008-08-22 12:17:48,305 WARN [org.jboss.system.ServiceController] Problem starting service jboss.j2ee:jar=ZZZ.jar,name=WWW,service=EJB3
| javax.management.InstanceNotFoundException: jboss.mq:service=DestinationManager is not registered.
| at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
|
during start-up.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172635#4172635
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172635
17 years, 8 months
[EJB 3.0] - strange behaivor of nonclustered ejb calling clustered ejb
by wurzelkuchen
Hello,
during my work on a student research project, I noticed a strage behavior.
Following scenario:
EJB1: a not clustered stateless EJB, which calls EJB2 per lookup
| @Stateless
| public class Bean implements BeanLocal, BeanRemote {
| ...
| private Bean2 bean2;
| public void call(){
| Properties properties = new Properties();
| properties.put("java.naming.factory.initial",
| "org.jnp.interfaces.NamingContextFactory");
| properties.put("java.naming.factory.url.pkgs",
| "org.jboss.naming:org.jnp.interfaces");
| properties.put("java.naming.provider.url",
| "192.168.0.52:1100");
| Context context;
| try {
| context = new InitialContext(properties);
| bean2 = (RemoteBean2) context.lookup(Bean2.RemoteJNDIName);
| while(...){
| bean2.doSomething();
| }
| } catch (NamingException e) {
| e.printStackTrace();
| }
| }
|
EJB2: a simple clustered stateless EJB
| @Clustered
| @Stateless
| public class Bean2 implements BeanLocal2, BeanRemote2 {
| ...
| public void doSomwthing(){
| ...
| }
| }
|
So, if I start these Beans like above, Bean2 starts only on one node of my Cluster. If I use port 1099 (normal JNDI instead of HAJNDI), Bean2 starts on different nodes each time I start bean2.doSomething().
I realy don't undestand this behaivior. Why does the use of HA-JNDI lets the bean2 unclustered while the use of JNDI leads to a clustered behaivior? I would understand if HAJNDI leads to a clustered and JNDI to an unclustered behaivior, but the opposite happens.
Does anybody have got a good explanation or at least an idea why?
Best Regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172630#4172630
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172630
17 years, 8 months
[Beginners Corner] - Deployment order and MYSQL Driver class issues
by zparticle
Okay I have a couple of problems. I'm running on JBoss 5.0.0-CR1, MS-Windows XP SP 3. My apps use Spring and iBATIS.
I had to switch from a local data source definition (which was working) to a JNDI container based definition to get the connection pooling. The problem is JBoss keeps deploying my applications before the data source which causes the app to crash because it can't find the data source. There must be some way to control this. The only way I can get the app to deploy after the data source is to un-deploy the app and the restart the server and after the data source loads redeploy the app.
The next issue is if I do the above to get the app deployed I then get this weird error:
00:29:02,062 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Apparently wrong driver class specified for URL: class: com.mysql.jdbc.Driver, url: jdbc:mysql://localhost:3306/photosite)
I'm using mysql-connector-java-5.1.6-bin.jar which is the latest, I've got it inside of the apps WEB-INF\lib directory. I was using the 5.0 driver but got the same error so I upgraded in hopes the error would go away.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172626#4172626
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172626
17 years, 8 months