[JBossWS] - Re: Hold the client ip from the client calls made to the we
by adinarayana.gunnam
Hi
I got the solution for this problem.
I got the implementation class for the WebServiceContextImpl class.I hope this it is not been implemented in jars provided.
I found a method to get the messagecontext.
i.e
public MessageContext getMessageContext()
{
CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
if(msgContext instanceof SOAPMessageContextJAXWS)
return (SOAPMessageContextJAXWS) msgContext;
else
return new SOAPMessageContextJAXWS(msgContext);
}
plesae import the jar C:\JBOSS\server\all\deploy\jbossws.sar\jbossws- core to get all the classesequired for this method
I used the obtained message context from this method to obtain the ip addtress as below
MessageContext mc=getMessageContext();
System.out.println(((javax.servlet.ServletRequest)mc.get(MessageContext.SERVLET_REQUEST)).getRemoteAddr());
Thanks
Adinarayana
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100911#4100911
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100911
17 years
[Tomcat, HTTPD, Servlets & JSP] - Problem starting application.
by mauro_monti
Hi people..
I develop an application and i deployed in JBoos 4.2.2. The application starts up without problems, but when i call an struts action i get the following error: (below)
When i deploy the same application in a Geronimo Server 2.0 or Tomcat the application works correctly.
I work with MyEclipse 6.0, the application use struts 1.3 Hibernate with JPA annotations and XFire to make WS calls.
Can anybody help me...
Thanks. Mauro
The stacktrace:
| javax.servlet.ServletException: org.apache.jasper.JasperException: No pude inicializar TldLocationsCache: java.lang.SecurityException: invalid SHA1 signature file digest for org/bouncycastle/asn1/ocsp/ResponderID.class
| org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
| org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
| org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| causa raÃz
|
| org.apache.jasper.JasperException: No pude inicializar TldLocationsCache: java.lang.SecurityException: invalid SHA1 signature file digest for org/bouncycastle/asn1/ocsp/ResponderID.class
| org.jboss.web.tomcat.service.jasper.TagLibCache.init(TagLibCache.java:106)
| org.jboss.web.tomcat.service.jasper.TagLibCache.getLocation(TagLibCache.java:83)
| org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:530)
| org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:419)
| org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)
| org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)
| org.apache.jasper.compiler.Parser.parse(Parser.java:133)
| org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
| org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
| org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
| org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
| org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
| org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
| org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
| org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
| org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
| org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
| org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
| org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
| org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
| org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
| org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| causa raÃz
|
| org.apache.jasper.JasperException: java.lang.SecurityException: invalid SHA1 signature file digest for org/bouncycastle/asn1/ocsp/ResponderID.class
| org.jboss.web.tomcat.service.jasper.TagLibCache.scanJar(TagLibCache.java:343)
| org.jboss.web.tomcat.service.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:268)
| org.jboss.web.tomcat.service.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:261)
| org.jboss.web.tomcat.service.jasper.TagLibCache.init(TagLibCache.java:101)
| org.jboss.web.tomcat.service.jasper.TagLibCache.getLocation(TagLibCache.java:83)
| org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:530)
| org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:419)
| org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)
| org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)
| org.apache.jasper.compiler.Parser.parse(Parser.java:133)
| org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
| org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
| org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
| org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
| org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
| org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
| org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
| org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
| org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
| org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
| org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
| org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
| org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
| org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
| org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| causa raÃz
|
| java.lang.SecurityException: invalid SHA1 signature file digest for org/bouncycastle/asn1/ocsp/ResponderID.class
| sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVerifier.java:438)
| sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:231)
| sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:176)
| java.util.jar.JarVerifier.processEntry(JarVerifier.java:277)
| java.util.jar.JarVerifier.update(JarVerifier.java:188)
| java.util.jar.JarInputStream.read(JarInputStream.java:182)
| java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:92)
| java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:70)
| java.util.jar.JarInputStream.getNextEntry(JarInputStream.java:118)
| java.util.jar.JarInputStream.getNextJarEntry(JarInputStream.java:149)
| org.jboss.web.tomcat.service.jasper.TagLibCache.scanJar(TagLibCache.java:324)
| org.jboss.web.tomcat.service.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:268)
| org.jboss.web.tomcat.service.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:261)
| org.jboss.web.tomcat.service.jasper.TagLibCache.init(TagLibCache.java:101)
| org.jboss.web.tomcat.service.jasper.TagLibCache.getLocation(TagLibCache.java:83)
| org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:530)
| org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:419)
| org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)
| org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)
| org.apache.jasper.compiler.Parser.parse(Parser.java:133)
| org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
| org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
| org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
| org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
| org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
| org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
| org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
| org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
| org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
| org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
| org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
| org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
| org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
| org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
| org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100906#4100906
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100906
17 years