Problems running Web Applications with Java 1.3/1.4 Spec and
cdmunoz Feb 19, 2009 5:24 PMI'm trying to install an old Java+Oracle application in JBOSS 5.0.0 GA and I'm having some problems. This application was made with the first Servlet specification many years ago, so I uncommented the lines related to invoker in web.xml at JBOSS_HOME\server\default\deployers\jbossweb.deployer\. When I try to run the server, I get these stack:
15:15:44,286 ERROR [[/web-console]] El Servlet /web-console lanzo excepcion de load()
java.lang.SecurityException: Restricted class: org.apache.catalina.servlets.InvokerServlet
at org.jboss.web.tomcat.service.TomcatInjectionContainer.checkAccess(TomcatInjectionContainer.java:224)
at org.jboss.web.tomcat.service.TomcatInjectionContainer.checkAccess(TomcatInjectionContainer.java:211)
at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:241)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1006)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
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:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
I did the same for JBOSS 4.0.5 on web .xml located in JBOSS_HOME\server\default\deploy\jbossweb-tomcat55.sar\ and it worked successfully. So, I wonder, Am I editing the correct file in JBOSS 5?
If I don't edit that xml file in JBOSS 5, the application runs successfully, but when I try to log in it I get a page with an error related to "Resource not found", and it is weird because I do have all the libraries, Web libs and Server libs.
Can someone give me please some instructions to do the right configuration and avoid those problems?
Thanks,
C.D