[JBossWS] - IllegalStateException Cannot find property
by gryffin
I am using JBoss 4.2.2 w/ JbossWS Native 3.0.2. After some toil I got a client based on this config working, but then I run into this error which no one else seems to have run into.
I called a ws to retrieve an AssDTO, I updat the AssetDTO, then call the ws' 'update' method passing it back the updated AssetDTO and it barfs with this un-descriptive error.
Has anyone else seen this? Thanks!
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:410)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:316)
| 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 $Proxy18.update(Unknown Source)
| at com.boeing.nmt.nls.mv4client.MV4Client.deleteAssociationsForAsset(MV4Client.java:234)
| at com.boeing.nmt.nls.test.AssetTest.main(AssetTest.java:22)
| Caused by: java.lang.IllegalStateException: Cannot find property: javax.xml.ws.handler.message.outbound
| at org.jboss.ws.core.jaxws.handler.MessageContextJAXWS.processPivot(MessageContextJAXWS.java:109)
| at org.jboss.ws.core.jaxws.client.ClientImpl.processPivot(ClientImpl.java:369)
| at org.jboss.ws.core.CommonClient.processPivotInternal(CommonClient.java:479)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:407)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:304)
| ... 5 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171382#4171382
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171382
17 years, 10 months
[JBossWS] - Re: Providing your own wsdl instead of the generated one.
by JBossWS_NewBee
Looks like I am out of luck again :(
Oh! this is so frustrating..
So, I made the following update to my wsdl:
| <service name='EchoService'>
| <documentation>Congrats! You have published your own WSDL!</documentation>
| <port binding='tns:EchoBinding' name='EchoPort'>
| <soap:address location='http://localhost:8080/echo'/>
| </port>
| </service>
packaged the war and deployed it and now I see this error in the JBossConsole:
| 12:38:28,359 INFO [WSDLFilePublisher] WSDL published to: file:/C:/sfsl/runtime/
| localhost/workstation/jboss/data/wsdl/echo.war/EchoService.wsdl
| 12:38:28,359 ERROR [ServiceEndpointDeployer] Cannot start service endpoint
| org.jboss.ws.WSException: Cannot load service endpoint interface: echo.Echo
| at org.jboss.ws.metadata.umdm.EndpointMetaData.getServiceEndpointInterfa
| ce(EndpointMetaData.java:238)
| at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitializeOperations
| (EndpointMetaData.java:510)
| at org.jboss.ws.metadata.umdm.EndpointMetaData.initializeInternal(Endpoi
| ntMetaData.java:504)
| at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitialize(EndpointM
| etaData.java:492)
| at org.jboss.ws.metadata.umdm.ServiceMetaData.eagerInitialize(ServiceMet
| aData.java:429)
| at org.jboss.ws.metadata.umdm.UnifiedMetaData.eagerInitialize(UnifiedMet
| aData.java:192)
| at org.jboss.ws.core.server.ServiceEndpoint.start(ServiceEndpoint.java:1
| 12)
| at org.jboss.ws.core.server.ServiceEndpointManager.startServiceEndpoint(
| ServiceEndpointManager.java:702)
| at org.jboss.ws.core.server.ServiceEndpointDeployer.start(ServiceEndpoin
| tDeployer.java:140)
| at org.jboss.ws.integration.jboss42.DeployerInterceptor.startServiceEndp
| oint(DeployerInterceptor.java:144)
| at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerIn
| terceptor.java:96)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
| start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
| ptor.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 $Proxy47.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.GeneratedMethodAccessor24.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
| or.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
| BeanOperationInterceptor.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 $Proxy10.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
| tScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
| canner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
| doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
| bstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
| upport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
| eanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.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(ServiceControl
| ler.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.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(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
| or.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
| BeanOperationInterceptor.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:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.ClassNotFoundException: echo.Echo
| at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
| der.java:1358)
| at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
| der.java:1204)
| at org.jboss.ws.metadata.umdm.EndpointMetaData.getServiceEndpointInterfa
| ce(EndpointMetaData.java:229)
| ... 84 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171379#4171379
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171379
17 years, 10 months
[Security & JAAS/JBoss] - Re: JavaServer Faces and container-managed authorization not
by poesys
Solved the application-policy name. My login module code uses the full JNDI name, and it should be using just the unqualified name without the JNDI prefixes. Then the login-config.xml and web.xml references to the name can also leave off the JNDI prefixes and everything works (except for the role, still).
Also, I replaced the login form in web.xml with BASIC authentication and the two properties files, and that worked with no problems--myHome.faces came up just fine. So I really don't think this is a Faces problem.
I'm now trying the DatabaseServerLoginModule instead of the custom module as I figured out a way to convert our version of roles into the standard query for that module. It isn't properly comparing the password somehow ("Password Incorrect/Password Required"), looks like I'll have to try debugging with source. Any comments welcome :). It's increasingly looking like my custom login module is missing something basic that registers the authentication with the container.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171378#4171378
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171378
17 years, 10 months
[Installation, Configuration & DEPLOYMENT] - error deploying simple session bean
by mpurdy1973
i created a simple EJB2 HelloWorldSessionBean and deployed it into jboss 4.2.3 java 6 build (when it failed, i also tried jboss 3.2.7 - got the same errors) and I got the following errors:
system: mac book pro running windows vista 64 service pack 1
server: jboss 4.2.3 build using java 6
java: java 6 update (build 1.6.0_06-b02)
dev env: eclipse 3.4 using ant to build jar file
-------------------------------------------------------------
jboss errors
-------------------------------------------------------------
15:29:08,113 WARN [verifier] EJB spec violation:
Bean : HelloWorldSessionEJB
Section: 22.2
Warning: The bean provider must specify the fully-qualified name of the enterprise bean's remote home interface, if any, in the eleme
nt.
Info : Class not found on 'prj.ejb2.HelloWorldHomeRemote': No ClassLoaders found for: prj.ejb2.HelloWorldHomeRemote
15:29:08,113 WARN [verifier] EJB spec violation:
Bean : HelloWorldSessionEJB
Section: 22.2
Warning: The bean provider must specify the fully-qualified name of the enterprise bean's remote interface, if any, in the element.
Info : Class not found on 'prj.ejb2.HelloWorldRemote': No ClassLoaders found for: prj.ejb2.HelloWorldRemote
15:29:08,113 WARN [verifier] EJB spec violation:
Bean : HelloWorldSessionEJB
Section: 22.2
Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local home interface, if any, in the <local-home>
element.
Info : Class not found on 'prj.ejb2.HelloWorldHomeLocal': No ClassLoaders found for: prj.ejb2.HelloWorldHomeLocal
15:29:08,113 WARN [verifier] EJB spec violation:
Bean : HelloWorldSessionEJB
Section: 22.2
Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local interface, if any, in the element.
Info : Class not found on 'prj.ejb2.HelloWorldLocal': No ClassLoaders found for: prj.ejb2.HelloWorldLocal
15:29:08,113 WARN [verifier] EJB spec violation:
Bean : HelloWorldSessionEJB
Section: 7.10.1
Warning: The session bean must implement either a remote home and remote, or a local home and a local interface.
15:29:08,113 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss/server/default/deploy/prjEJB.jar
--------------------------------------------------------------
jar file structure
--------------------------------------------------------------
META-INF/
META-INF/MANIFEST.MF
prj/
prj/ejb2/
META-INF/ejb-jar.xml
META-INF/jboss.xml
prj/ejb2/HelloWorldSessionBean.class
prj/ejb2/HelloWorldSessionHomeLocal.class
prj/ejb2/HelloWorldSessionLocal.class
prj/ejb2/HelloWorldSessionRemote.class
prj/ejb2/HelloWorldSessionHomeRemote.class
---------------------------------------------------------------
-------------------------------------------------------------
ejb-jar.xml
-------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
|
| <ejb-jar>
|
| <display-name>prjEJB.jar</display-name>
| <enterprise-beans>
|
| <session>
| <display-name>Hello World Session EJB</display-name>
| <ejb-name>HelloWorldSessionEJB</ejb-name>
| <home>prj.ejb2.HelloWorldHomeRemote</home>
| <remote>prj.ejb2.HelloWorldRemote</remote>
| <local-home>prj.ejb2.HelloWorldHomeLocal</local-home>
| <local>prj.ejb2.HelloWorldLocal</local>
| <ejb-class>prj.ejb2.HelloWorldSessionBean</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Bean</transaction-type>
| </session>
|
| </enterprise-beans>
|
| </ejb-jar>
--------------------------------------------------------------
-------------------------------------------------------------
jboss.xml
-------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
|
| <jboss>
| <enterprise-beans>
|
| <session>
| <ejb-name>HelloWorldSessionEJB</ejb-name>
| <jndi-name>HelloWorldSessionHomeRemote</jndi-name>
| <local-jndi-name>HelloWorldSessionHomeLocal</local-jndi-name>
| </session>
|
| </enterprise-beans>
|
| </jboss>
-------------------------------------------------------------
-------------------------------------------------------------
HelloWorldSessionBean
-------------------------------------------------------------
package prj.ejb2;
|
| import javax.ejb.*;
| import javax.naming.*;
|
| public class HelloWorldSessionBean implements SessionBean
| {
| private SessionContext context;
|
| public String sayHello()
| {
|
| return "Hello World!";
|
| }
|
| public void ejbCreate() throws CreateException
| {
| }
|
| public void ejbActivate() throws EJBException
| {
| }
|
| public void ejbPassivate() throws EJBException
| {
| }
|
| public void ejbRemove() throws EJBException
| {
| }
|
| public void setSessionContext(SessionContext newContext) throws EJBException
| {
| this.context = newContext;
|
| }//end setSessionContext
|
| }
--------------------------------------------------------------
-------------------------------------------------------------
HelloWorldSessionHomeRemote
-------------------------------------------------------------
package prj.ejb2;
|
|
| import java.rmi.RemoteException;
|
| import javax.ejb.*;
|
| public interface HelloWorldSessionHomeRemote extends EJBHome
| {
|
| public HelloWorldSessionRemote create() throws RemoteException, CreateException;
|
| }
--------------------------------------------------------------
-------------------------------------------------------------
HelloWorldSessionRemote
-------------------------------------------------------------
package prj.ejb2;
|
| import javax.ejb.*;
|
| public interface HelloWorldSessionRemote extends EJBObject
| {
| public String sayHello();
|
| }
--------------------------------------------------------------
-------------------------------------------------------------
HelloWorldSessionHomeLocal
-------------------------------------------------------------
package prj.ejb2;
|
| import javax.ejb.*;
| import prj.ejb2.*;
|
| public interface HelloWorldSessionHomeLocal extends EJBLocalHome
| {
|
| public HelloWorldSessionLocal create() throws CreateException;
|
| }
--------------------------------------------------------------
-------------------------------------------------------------
HelloWorldSessionLocal
-------------------------------------------------------------
package prj.ejb2;
|
| import javax.ejb.*;
|
| public interface HelloWorldSessionLocal extends EJBLocalObject
| {
| public String sayHello();
| }
--------------------------------------------------------------
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171369#4171369
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171369
17 years, 10 months