[JBossWS] - Re: Help! Call Web service error!
by lixun
Thank you Peter!
Follow your instruction, I add -verbose:class to JAVA_OPTS to run.bat, when jboss starts, I get a long class load list,
In this list, I find these classes either loaded from jboss_home or java_home, and not know whick one is the stray JAR file.
With no solution, I copy the whole jboss directory to other windows platform, On new windows platform, I call web service successfully!
But On first windows platform, exception still occurs.
My two windows platform have similar Enviroment Setting, and I still in doubt what's the root cause of the exception.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231535#4231535
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231535
15 years, 8 months
[JBossWS] - Re: Help! Call Web service error!
by lixun
Thank you Peter, you give me some instructions! But I don't think my classpath error!
In my windows platform, Jboss 4.2.2 runs OK!
But Jboss 4.2.3 and Jboss 5.0.* runs error!
Follow your instruction, I add option -verbose:gc to JAVA_OPTS in run.bat, and I find following information in server.log:
sun.boot.class.path=D:\jboss\lib\endorsed\activation.jar;D:\jboss\lib\endorsed\jaxb-api.jar;D:\jboss\lib\endorsed\jbossws-native-jaxws-ext.jar;D:\jboss\lib\endorsed\jbossws-native-jaxws.jar;D:\jboss\lib\endorsed\jbossws-native-saaj.jar;D:\jboss\lib\endorsed\resolver.jar;D:\jboss\lib\endorsed\serializer.jar;D:\jboss\lib\endorsed\stax-api.jar;D:\jboss\lib\endorsed\xalan.jar;D:\jboss\lib\endorsed\xercesImpl.jar;C:\Program Files\Java\jdk1.6.0_04\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_04\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_04\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_04\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_04\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_04\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_04\jre\classes
I think all is OK!
Can you find sth wrong! Peter?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231463#4231463
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231463
15 years, 8 months
[JBossWS] - Re: Cannot find service endpoint error when deploying ear wi
by ewinston
| 15:15:51,330 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
| 15:15:51,345 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=WebAlertDataCollection-0.2.2-SNAPSHOT.ear,jar=ejb-0.2.2-SNAPSHOT.jar,unitName=WebAlertDataCollection-PU with dependencies:
| 15:15:51,346 INFO [JmxKernelAbstraction] jboss.jca:name=WebAlertDataCollectionXADS,service=DataSourceBinding
| 15:15:51,742 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
| 15:15:51,765 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=WebAlertDataCollection-0.2.2-SNAPSHOT.ear,jar=ejb-0.2.2-SNAPSHOT.jar,name=VSMAlertRegistration,service=EJB3 with dependencies:
| 15:15:51,765 INFO [JmxKernelAbstraction] persistence.units:ear=WebAlertDataCollection-0.2.2-SNAPSHOT.ear,jar=ejb-0.2.2-SNAPSHOT.jar,unitName=WebAlertDataCollection-PU
| 15:15:51,765 INFO [JmxKernelAbstraction] jboss.j2ee:ear=WebAlertDataCollection-0.2.2-SNAPSHOT.ear,jar=ejb-0.2.2-SNAPSHOT.jar,name=SubscriptionMaintenance,service=EJB3
| 15:15:51,767 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
| 15:15:51,767 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=WebAlertDataCollection-0.2.2-SNAPSHOT.ear,jar=ejb-0.2.2-SNAPSHOT.jar,name=VSMDataFilter,service=EJB3 with dependencies:
| 15:15:51,832 INFO [EJBContainer] STARTED EJB: com.vzw.vsm.opalarm.webalert.session.VSMFilter ejbName: VSMDataFilter
| 15:15:51,892 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
| 15:15:51,892 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=WebAlertDataCollection-0.2.2-SNAPSHOT.ear,jar=ejb-0.2.2-SNAPSHOT.jar,name=SubscriptionMaintenance,service=EJB3 with dependencies:
| 15:15:51,897 INFO [EJBContainer] STARTED EJB: com.vzw.vsm.opalarm.webalert.session.SubscriptionScheduledAction ejbName: SubscriptionMaintenance
| 15:15:52,585 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
| 15:15:52,586 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=WebAlertDataCollection-0.2.2-SNAPSHOT.ear,jar=ejb-0.2.2-SNAPSHOT.jar,name=ObjectPersister,service=EJB3 with dependencies:
| 15:15:52,590 INFO [EJBContainer] STARTED EJB: com.vzw.vsm.opalarm.webalert.session.ObjectPersister ejbName: ObjectPersister
| 15:15:52,610 INFO [EJB3Deployer] Deployed: file:/work/edward/vzw/environment/jboss-4.2.3.GA/server/vzw/tmp/deploy/tmp39565WebAlertDataCollection-0.2.2-SNAPSHOT.ear-contents/ejb-0.2.2-SNAPSHOT.jar
| 15:15:52,834 INFO [DefaultEndpointRegistry] register: jboss.ws:context=WebAlertDataCollection-0.2.2-SNAPSHOT-ejb-0.2.2-SNAPSHOT,endpoint=VSMAlertRegistration
| 15:15:52,842 INFO [DefaultEndpointRegistry] register: jboss.ws:context=WebAlertDataCollection-0.2.2-SNAPSHOT-ejb-0.2.2-SNAPSHOT,endpoint=VSMDataFilter
| 15:15:52,979 INFO [TomcatDeployer] deploy, ctxPath=/WebAlertDataCollection-0.2.2-SNAPSHOT-ejb-0.2.2-SNAPSHOT, warUrl=.../tmp/deploy/WebAlertDataCollection-0.2.2-SNAPSHOT.ear-ejb-0.2.2-SNAPSHOT.jar39566.war/
| 15:15:56,320 INFO [WSDLFilePublisher] WSDL published to: file:/work/edward/vzw/environment/jboss-4.2.3.GA/server/vzw/data/wsdl/WebAlertDataCollection-0.2.2-SNAPSHOT.ear/ejb-0.2.2-SNAPSHOT.jar/AlertRegistrationService39567.wsdl
| 15:15:56,337 INFO [WSDLFilePublisher] WSDL published to: file:/work/edward/vzw/environment/jboss-4.2.3.GA/server/vzw/data/wsdl/WebAlertDataCollection-0.2.2-SNAPSHOT.ear/ejb-0.2.2-SNAPSHOT.jar/VSMFilterService39570.wsdl
| 15:15:56,625 ERROR [MainDeployer] Could not start deployment: file:/work/edward/vzw/environment/jboss-4.2.3.GA/server/vzw/tmp/deploy/tmp39565WebAlertDataCollection-0.2.2-SNAPSHOT.ear-contents/ejb-0.2.2-SNAPSHOT.jar
| javax.xml.ws.WebServiceException: Cannot find service endpoint target: jboss.j2ee:name=VSMAlertRegistration,service=EJB3,jar=ejb-0.2.2-SNAPSHOT.jar,ear=WebAlertDataCollection-0.2.2-SNAPSHOT.ear
| at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.init(InvocationHandlerEJB3.java:83)
| at org.jboss.wsf.framework.deployment.DefaultLifecycleHandler.create(DefaultLifecycleHandler.java:51)
| at org.jboss.wsf.framework.deployment.EndpointLifecycleDeploymentAspect.create(EndpointLifecycleDeploymentAspect.java:42)
| at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:118)
| at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:90)
| 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)
|
Here is part of the sack trace. I will create a sample project that shows this problem. It looks like the service gets installed but it isn't ready for use the first time it is accessed. I have gotten around the injection problem by looking up the entity manager in JNDI, but it looks like now the entity manager is not cognizant of the injected USerTransaction and the fact that I have started a transaction there.
I am using the JTA transaction type because elsewhere I need it.
Thanks again.
Edward
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231172#4231172
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231172
15 years, 8 months
[JBossWS] - Re: Implementing WS-Security Usename Token Profile Authentic
by jayblanc54
Hi,
I've tested the authentication using Digest Password
1. JBoss AS 5.0.1.GA
2. JBOSS WS native 3.0.5.GA
3. WebService is implemented using an EJB3 Endpoint.
4. Client is generated using standard JAXWS (with maven) but executed using jbossws-native-client
5. JDK 6 (using -Djava.endorsed.dirs=${jboss.home}/lib/endorsed during client execution)
6. Username Token is configured to produce a PasswordDigest and not a clear password.
Everything works fine using the jboss-native-client
2 problems appears also :
1. If I'm using SOAPUI to generate a SOAP call, in the server side, password does not match. (If I'm using a configuration with no digest, the SOAPUI call works fine). I assume there is a difference between the SOAPUI generated Digest and the JBoss generated Digest but what is this difference ?
2. The way to put UserName and Password on the client side is :
| AuthenticationService_Service service = new AuthenticationService_Service();
| AuthenticationService port = service.getAuthenticationService();
|
| ((StubExt) port).setConfigName("Standard WSSecurity Client");
|
| Map<String, Object> reqContext = ((BindingProvider)port).getRequestContext();
| reqContext.put(BindingProvider.USERNAME_PROPERTY, "kermit");
| reqContext.put(BindingProvider.PASSWORD_PROPERTY, "thefrog");
|
| String connectedUser = port.getConnectedUserIdentifier();
| logger.info("Connected user : " + connectedUser);
| assertTrue(connectedUser.equals("kermit"));
|
Then the WSSecurityHandlerClient take this HTTP header information to generate the correct wsse SAOP header assertion, calculating a password digest of the clear password provided. The problem is that the HTTP header information is not removed and is visible clearely in the HTTP header... So the password is well encoded using a digest in the SOAP header but not in the HTTP header. Is it an issue or is there any other way to give Username/Password information to the WSSecurityHandlerClient ?
3. Is there is some code sample that show how to use SAML instead of Usernam/Token ?
If you capture trames using Wireshar
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231089#4231089
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231089
15 years, 8 months
[JBossWS] - [Urgent]: EJBs and web services in Jboss a/s 4.2.2 GA
by veneetr
Hi all,
I just wanted to ask for a help in a scenario that i am facing:
I have a Application that relies on EJBs for Business Logic
I basically use the Jboss A/s[4.2.2 GA] server for the same and now there is a need to Expose these bean methods through a web service
so that our web team can make use of the same Business logic.
Currently i have implemented a End point interface that my Bean class implements so that i can expose
my bean methods to the web team
Req:
I want to create a separate Enterprise Bean which resides in the same JVM as my Application bean , and acts as a wrapper for my application bean
Also,
Further elaboration of the problem is as follows:
THE existing Application beans Remote interface has all the business methods that i want to expose.
The new bean should act as a delegate which intercepts the web clients call extracts the request from the call
and passes it to the application bean methods.
So this basically requires that new bean should be able to communicate with my application bean (Which is BTW a stateless session bean)
and pass on clients requests to the same.
Kindly provide suggestion for the same or any ideas as soon as possible
--
thanks again
veneet
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231086#4231086
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231086
15 years, 8 months