[JBossWS] - Server redirected too many times (20)
by tremalnaik
Hi, I'm developing a JAX-RPC service to let a remote application invoke a method on a server.
I invoke the service on a secure (https) channel and verify user identity using JAAS authentication. Everything works fine, if the remote password matches, otherwise it looks that the client keeps on trying many times (or the server redirects, I don't know). I don't like this beahviour since due the security policies after 3 retries the user is disabled. I'd like only one attempt with the wrong password is made. The point is that I get the following errors.
On the server:
12:13:10,016 ERROR [ROM] [_system_] com.bitaplus.bitastar.common.exception.InvalidPasswordException: Invalid password for user 'login'
| at com.bitaplus.bitastar.business.util.CurveUserHelper.performValidateLogin(CurveUserHelper.java:141)
| at com.bitaplus.bitastar.business.ejbs.implementations.StarAccessBean.validateLogin(StarAccessBean.java:66)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| .....
|
| [***THIS IS REPEATED MANY TIMES***]
|
On the client:
| 2007-05-09 12:13:10,491 [http-8080-Processor24] ERROR [ROM] [login] org.jboss.ws.metadata.wsdl.WSDLException: java.net.ProtocolException: Server redirected too many times (20)
| at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefinitionsFactory.java:198)
| at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:106)
| at org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:263)
| at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:113)
| at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:85)
| at org.jboss.ws.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:96)
| at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:158)
| at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:143)
| [snip]
| Caused by: java.net.ProtocolException: Server redirected too many times (20)
| at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
| at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
| at java.net.URL.openStream(Unknown Source)
| at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefinitionsFactory.java:181)
| ... 45 more
|
The client code:
| // setting up the authenticator (BasicAuthenticator extends java.net.Authenticator)
| BasicAuthenticator ba = new BasicAuthenticator(username, password);
| Authenticator.setDefault(ba);
| // setting a relaxed host verifier (to avoid too strict the server name checking)
| HttpsURLConnection.setDefaultHostnameVerifier(new NiceVerifier());
| // get service
| String urlstr = "https://cor319.cor-fs.com:8443/bitatraveller/TravellerSynchronizer";
| URL url = new URL(urlstr);
| String ns = "https://ws.web.bitastar.bitaplus.com/";
| QName qname = new QName(ns, "TravellerSynchronizer");
| QName port = new QName(ns, "TravellerSynchronizerIfacePort");
| QName operation = new QName(ns, "synchronize");
| ServiceFactoryImpl sfi = new ServiceFactoryImpl();
| // read mapping file
| File mapping = new File("mapping.xml");
| Service service = sfi.createService(url, qname, mapping.toURL());
| // call service
| Call call = service.createCall(port, operation);
| ClientCharacteristics cc = (ClientCharacteristics) call.invoke(new Object[] { characters });
|
I don't want to bother you with all my configuration files (WSDL & mapping.xml) since I think they are correct, otherwise the service didn't work if the passwords match. There isn't any valve in the middle or elements which may perform redirections.
Can you help me to configure the service so it only performs one login attempt, please?
Alternatively, can you point me to the right resources?
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044252#4044252
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044252
17 years, 7 months
[JBossWS] - Getting "java.lang.NoClassDefFoundError: javax/annotation/Po
by stattit
Hi,
AM trying to use the UsernameToken Profile in code and everything seems to be OK at the client side. Using tcpmon, I am able to see the <wsse:username> in the header. However at the server end, I am getting the following stack trace.
| 14:53:23,718 INFO [STDOUT] <org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/fsb-securityservice-1.0.0].[AuthenticationService]> <ERROR> ~ <Servlet.service() for servlet AuthenticationService threw exception>
| java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
| at org.jboss.ws.core.jaxws.handler.HandlerResolverImpl.callPostConstruct(HandlerResolverImpl.java:194)
| at org.jboss.ws.core.jaxws.handler.HandlerResolverImpl.addHandler(HandlerResolverImpl.java:160)
| at org.jboss.ws.core.jaxws.handler.HandlerResolverImpl.initHandlerChain(HandlerResolverImpl.java:134)
| at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:80)
| at org.jboss.ws.core.server.AbstractServiceEndpointInvoker.callRequestHandlerChain(AbstractServiceEndpointInvoker.java:112)
| at org.jboss.ws.core.server.AbstractServiceEndpointInvoker.invoke(AbstractServiceEndpointInvoker.java:162)
| at org.jboss.ws.core.server.ServiceEndpoint.processRequest(ServiceEndpoint.java:212)
| at org.jboss.ws.core.server.ServiceEndpointManager.processRequest(ServiceEndpointManager.java:448)
| at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
Tcpmon output is
|
| POST /fsb-securityservice-1.0.0/AuthenticationService?datatype=JBossWSMessage HTTP/1.1
| Authorization: Basic Z29vZHVzZXI6Z29vZHBhc3N3b3Jk
| SOAPAction: "http://com.fsb.security/services/authentication/authenticateUser"
| Content-Type: text/xml; charset=UTF-8
| JBoss-Remoting-Version: 2
| User-Agent: JBossRemoting - 2.0.0 GA (Boon)
| Host: localhost:8000
| Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
| Connection: keep-alive
| Content-Length: 634
|
| <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header><wsse:Security env:mustUnderstand='1' xmlns:wsse='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext...' xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utilit...'><wsse:UsernameToken wsu:Id='token-1-1178650403577-12437939'><wsse:Username>gooduser</wsse:Username><wsse:Password>goodpassword</wsse:Password></wsse:UsernameToken></wsse:Security></env:Header><env:Body><ns1:username xmlns:ns1='http://com.fsb.security/services/authentication/'>gooduser</ns1:username></env:Body></env:Envelope>
|
|
We are using JBoss AS 4.0.5 GA and JBossWS 1.2.1 GA. Looking through the source and the distribution the only reference to javax/annotation/PostConstruct is in the jbossws-thirdparty.jar file under the integration-tomcat folder. Placing that file under the JBoss AS 4.0.5 installation causes other weird errors. Am I missing something?
Any help in this matter is appreciated. If any additional information is needed, I will gladly provide it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044047#4044047
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044047
17 years, 7 months
[JBossWS] - Re: JBossWS 1.2 on JBoss AS 4.0.5
by tcavaleiro
Hi!
I've installed JBossWS 1.2 on JBoss AS 4.0.5 (with EJB 3.0)
and I'm getting that error too.
Maybe I'm asking about ordinary things but I'm just a beginner (in this world)...by the way I've already made a few things with JBoss Seam (it's great).
I'm gonna post all the output I get from JBoss..
| ===============================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: C:\Programas\jboss-4.0.5.GA\bin\\..
|
| JAVA: c:\Programas\Java\jdk1.5.0_09\bin\java
|
| JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=36000
| 00
|
| CLASSPATH: c:\Programas\Java\jdk1.5.0_09\lib\tools.jar;C:\Programas\jboss-4.0.5.GA\bin\\run.jar
|
| ===============================================================================
|
| 18:56:26,078 INFO [Server] Starting JBoss (MX MicroKernel)...
| 18:56:26,078 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
| 18:56:26,078 INFO [Server] Home Dir: C:\Programas\jboss-4.0.5.GA
| 18:56:26,078 INFO [Server] Home URL: file:/C:/Programas/jboss-4.0.5.GA/
| 18:56:26,078 INFO [Server] Patch URL: null
| 18:56:26,078 INFO [Server] Server Name: default
| 18:56:26,078 INFO [Server] Server Home Dir: C:\Programas\jboss-4.0.5.GA\server\default
| 18:56:26,078 INFO [Server] Server Home URL: file:/C:/Programas/jboss-4.0.5.GA/server/default/
| 18:56:26,078 INFO [Server] Server Log Dir: C:\Programas\jboss-4.0.5.GA\server\default\log
| 18:56:26,078 INFO [Server] Server Temp Dir: C:\Programas\jboss-4.0.5.GA\server\default\tmp
| 18:56:26,078 INFO [Server] Root Deployment Filename: jboss-service.xml
| 18:56:26,343 INFO [ServerInfo] Java version: 1.5.0_09,Sun Microsystems Inc.
| 18:56:26,343 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_09-b01,Sun Microsystems Inc.
| 18:56:26,343 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
| 18:56:26,906 INFO [Server] Core system initialized
| 18:56:28,734 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
| 18:56:30,484 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://10.64.139.35:3873/]
| 18:56:33,140 INFO [ServiceEndpointManager] jbossws-1.2.1.GA (build=200704161533)
| 18:56:38,437 ERROR [JUDDIService] JNDI Bind Failed:JAXR
| 18:56:38,437 ERROR [STDERR] javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Recei
| ve timed out]
| 18:56:38,437 ERROR [STDERR] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1317)
| 18:56:38,437 ERROR [STDERR] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1446)
| 18:56:38,437 ERROR [STDERR] at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:484)
| 18:56:38,437 ERROR [STDERR] at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:477)
| 18:56:38,437 ERROR [STDERR] at javax.naming.InitialContext.rebind(InitialContext.java:367)
| 18:56:38,437 ERROR [STDERR] at org.jboss.jaxr.juddi.JUDDIService.bindJAXRConnectionFactory(JUDDIService.java:383)
| 18:56:38,437 ERROR [STDERR] at org.jboss.jaxr.juddi.JUDDIService.setBindJaxr(JUDDIService.java:320)
| 18:56:38,437 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 18:56:38,437 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 18:56:38,437 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 18:56:38,437 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 18:56:38,437 ERROR [STDERR] at org.jboss.mx.interceptor.AttributeDispatcher.invoke(AttributeDispatcher.java:136)
| 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 18:56:38,437 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:103)
| 18:56:38,437 ERROR [STDERR] at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76)
| 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInvoker.java:461)
| 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:608)
| 18:56:38,437 ERROR [STDERR] at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:694)
| 18:56:38,437 ERROR [STDERR] at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:332)
| 18:56:38,437 ERROR [STDERR] at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460)
| 18:56:38,437 ERROR [STDERR] at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
| 18:56:38,437 ERROR [STDERR] at org.jboss.system.ServiceController.install(ServiceController.java:226)
| 18:56:38,437 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 18:56:38,437 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 18:56:38,437 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 18:56:38,437 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 18:56:38,437 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 18:56:38,437 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 18:56:38,437 ERROR [STDERR] at $Proxy4.install(Unknown Source)
| 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
| 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| 18:56:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 18:56:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 18:56:38,453 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 18:56:38,453 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 18:56:38,453 ERROR [STDERR] at $Proxy6.deploy(Unknown Source)
| 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.jav
| a:263)
| 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| 18:56:38,453 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| 18:56:38,453 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| 18:56:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 18:56:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 18:56:38,453 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 18:56:38,453 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 18:56:38,453 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| 18:56:38,453 ERROR [STDERR] at $Proxy0.start(Unknown Source)
| 18:56:38,453 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
| 18:56:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 18:56:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 18:56:38,453 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 18:56:38,453 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 18:56:38,453 ERROR [STDERR] at $Proxy4.start(Unknown Source)
| 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 18:56:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 18:56:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 18:56:38,453 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 18:56:38,453 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 18:56:38,453 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 18:56:38,453 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
| 18:56:38,453 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| 18:56:38,453 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| 18:56:38,453 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
| 18:56:38,453 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:490)
| 18:56:38,453 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
| 18:56:38,453 ERROR [STDERR] Caused by: java.net.SocketTimeoutException: Receive timed out
| 18:56:38,453 ERROR [STDERR] at java.net.PlainDatagramSocketImpl.receive0(Native Method)
| 18:56:38,453 ERROR [STDERR] at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
| 18:56:38,453 ERROR [STDERR] at java.net.DatagramSocket.receive(DatagramSocket.java:712)
| 18:56:38,453 ERROR [STDERR] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1287)
| 18:56:38,453 ERROR [STDERR] ... 105 more
| 18:56:39,562 INFO [SnmpAgentService] SNMP agent going active
| 18:56:39,921 INFO [WebService] Using RMI server codebase: http://PORTABLE:8083/
|
| (other things...)
|
|
By the way, anyone solved the problem?
Thanks for the help!
Tiago.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044009#4044009
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044009
17 years, 7 months
[JBossWS] - Re: Generate JBossWS Artifacts: Error occurs
by MichelRobert
Below I have listed all the 'configuration/installation' items that I could think of. Please let me know if I've forgotten something. Thanks!
When Attempting to Generate JBossWS Artifacts, the arguments used are:
+ Use cached WSDL = YES
+ Mapping file = jaxrpc-mapping.xml
+ Unwrap = YES
+ Namespace Mapping = urn:jbosstest
My Configuration is as follows:
JBoss 4.0.5.GA
JBossWS 1.2.1.GA
JBossIDE 2.0.0.Beta2 (includes Eclipse)
Java EE SDK 5-02
To install JBossWS, I unpacked jbossws-1.2.1.GA.zip into E:\JBOSSWS\ and then followed the direction in Install.tx:
1.) Copy ant.properties.examples to ant.properties
2.) Modify the target container location in ant.properties, which gives me:
# Optional JBoss Home
jboss40.home=e:/java/jboss-4.0.5.GA
# The JBoss server instance
jboss.server.instance=default
3.) Execute: ant deploy-jboss40
Below is the console output generated by ant:
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
E:\java\JBOSSWS>ant
Buildfile: build.xml
BUILD SUCCESSFUL
Total time: 0 seconds
E:\java\JBOSSWS>ant deploy-jboss40
Buildfile: build.xml
prepare:
deploy-jboss40:
[copy] Copying 10 files to E:\java\jboss-4.0.5.GA\client
[copy] Copying 3 files to E:\java\jboss-4.0.5.GA\server\default\lib
[delete] Deleting directory E:\java\jboss-4.0.5.GA\server\default\deploy\jbos
sws.sar
[mkdir] Created dir: E:\java\jboss-4.0.5.GA\server\default\deploy\jbossws.sa
r
[unjar] Expanding: E:\java\JBOSSWS\install\integration-jboss40\jbossws40.sar
into E:\java\jboss-4.0.5.GA\server\default\deploy\jbossws.sar
[copy] Copying 1 file to E:\java\jboss-4.0.5.GA\client
[copy] Copying 1 file to E:\java\jboss-4.0.5.GA\lib
[delete] Deleting directory E:\java\jboss-4.0.5.GA\server\default\deploy\judd
i-service.sar
[mkdir] Created dir: E:\java\jboss-4.0.5.GA\server\default\deploy\juddi-serv
ice.sar
[unzip] Expanding: E:\java\JBOSSWS\install\thirdparty\juddi-service.sar into
E:\java\jboss-4.0.5.GA\server\default\deploy\juddi-service.sar
BUILD SUCCESSFUL
Total time: 3 seconds
E:\java\JBOSSWS>
Michel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043946#4043946
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043946
17 years, 7 months
[JBossWS] - Error deploying webservice on Tomcat 5.5 + JBossWS 1.2.1
by clkanth
I used Tomcat 5.5 (Standalone) + JBossWS1.2.1. The Integration is successful. The jbossws-deploy directory is also created. But when a deploy the WebService that is compliant of JAX-WS & JSR 181, I get the below error. Any help is highly appreciated.
-----------------------------------------------------------------------------
ERROR [TomcatServiceEndpointPublisher] Cannot deploy file: C:\Program Files\Apache Software Foundation\Tomcat 5.5\jbossws-deploy\InvetoryServices.war
java.io.IOException: Destination must be a directory.
at org.jboss.util.file.JarUtils.unjar(JarUtils.java:260)
at org.jboss.ws.integration.tomcat.wspublish.process(wspublish.java:68)
at org.jboss.ws.integration.tomcat.TomcatServiceEndpointPublisher.publishServiceEndpoint(TomcatServiceEndpointPublisher.java:80)
at org.jboss.ws.integration.tomcat.TomcatServiceEndpointPublisher.deployFile(TomcatServiceEndpointPublisher.java:135)
at org.jboss.ws.integration.tomcat.TomcatServiceEndpointPublisher.scanDeployDir(TomcatServiceEndpointPublisher.java:112)
at org.jboss.ws.integration.tomcat.TomcatServiceEndpointPublisher.access$100(TomcatServiceEndpointPublisher.java:44)
at org.jboss.ws.integration.tomcat.TomcatServiceEndpointPublisher$Scanner.run(TomcatServiceEndpointPublisher.java:192)
at java.lang.Thread.run(Unknown Source)
--------------------------------------------------------------------------------------
Below are the main steps of the sample build file i am using.
<!---->
Thanks and Regards
CLK
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043880#4043880
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043880
17 years, 7 months
[JBossWS] - JBoss 4.0.2 + JbossWS 1.2.1 Integration problem
by clkanth
Hi,
I used the installation procedures in the install.txt file of JBossWS 1.2.1 to integrate with JBoss 4.0.2. I executed "ant deploy-jboss40" command which said the build was successfull. But if I run JBoss, I get the following exception. Any pointers for resolving is highly appreciated.
Thanks in advance
--------------------------------------------------------------------------------------
15:17:08,821 ERROR [MainDeployer] could not create deployment: file:/C:/chilal/AllOthers/jboss-4.0.2/server/al
l/deploy/jbossws40.sar/
org.jboss.deployment.DeploymentException: Unexpected error during load of: org.jboss.ws.integration.jboss42.De
ployerInterceptorJSE, msg=org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean; - nested throwable: (j
ava.lang.ClassNotFoundException: Unexpected error during load of: org.jboss.ws.integration.jboss42.DeployerInt
erceptorJSE, msg=org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean)
-------------------------------------------------------------------------------------
org.jboss.deployment.DeploymentInfo@34f8ecfc { url=file:/C:/chilal/AllOthers/jboss-4.0.2/server/all/deploy/jbo
ssws40.sar/ }
deployer: org.jboss.deployment.SARDeployer@5fcf29
status: Deployment FAILED reason: Unexpected error during load of: org.jboss.ws.integration.jboss42.Deployer
InterceptorJSE, msg=org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean; - nested throwable: (java.la
ng.ClassNotFoundException: Unexpected error during load of: org.jboss.ws.integration.jboss42.DeployerIntercept
orJSE, msg=org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean)
state: FAILED
watch: file:/C:/chilal/AllOthers/jboss-4.0.2/server/all/deploy/jbossws40.sar/META-INF/jboss-service.xml
altDD: null
lastDeployed: 1178619339469
lastModified: 1178615714944
Thanks
CLK
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043875#4043875
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043875
17 years, 7 months