After further investigation, looking at the j2sdkee1.3 log files, I
uncovered the following error while the war file with the redirectors are
deployed.
------------------------------------------------------------------
StandardContext[/test]: Exception starting filter FilterRedirector
java.lang.ExceptionInInitializerError: java.security.AccessControlException:
access denied (java.io.FilePermission cactus_server.log write)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkWrite(SecurityManager.java:978)
at java.io.FileOutputStream.<init>(FileOutputStream.java:96)
at java.io.FileWriter.<init>(FileWriter.java:52)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:284)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:239)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:637)
at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:595)
at
org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:522)
at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:412)
at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:436)
at
org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:329)
at org.apache.cactus.util.log.LogService.init(LogService.java:144)
at
org.apache.cactus.server.FilterTestRedirector.<clinit>(FilterTestRedirector.java:80)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:253)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:314)
at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:120)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3038)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3337)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:415)
at com.sun.web.server.WebService.addContext(WebService.java:149)
at
com.sun.web.server.ServletDeployerImpl.loadWebComponents(ServletDeployerImpl.java:214)
at
com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.restoreWebComponents(JarInstallerImpl.java:267)
at
com.sun.enterprise.server.J2EEServer.restoreWebComponents(J2EEServer.java:757)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:328)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
StandardContext[/test]: Context startup failed due to previous errors
----------------------------------------------------------------
Looks like the redirectors are trying to do something which requires a
permission in the security policy file for the j2sdkee1.3. Anyone knows how
to fix this???
>From: "Jon Voigtr" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Cactus and J2SDKEE1.3
>Date: Fri, 05 Oct 2001 04:33:55 +0000
>
>Hi,
>
>> Did you see to it that you are referring to the right context here ?
>>That ,ay be the reason of HTTP 503 .
>
>I am very sure that I am viewing and referring to the right context cause
>if
>I remove the servlet and filter mappings for the redirectors, I can then
>view other resources in that context again. When the mappings for the
>Filter
>redirector is there, I cannot view anything in resource within that web
>context. Just gives me that http 503 error. Also, if I am referring to a
>context that does not exists I would get error 404 right.
>
>> StreamCorruptedException occurs primarily because the client-side >
>>file cactus.properties is not set right. May be you could check > that
>>the file jspRedirector.jsp is deployed in the right context.
>> Also when you are deploying under a new context 'ctx' , then you >
>>need to add the entries to that web.xml which you would use to deploy
>>and not the web.xml of the default context.
>
>Well, when I try to access the ServletTestRedirector from a web browser
>using the mapped url (after removing the mapping for the Filter Test
>Redirector because as mentioned above I cannot access anything with that
>Filter Test Redirector in place), I can access the ServletTestRedirector
>for
>the 1st time (although it throws an exception which is perfectly
>understandable -at least i can still get to it). But when I try to access
>it
>again, I get the http 503 error. I have no problem with the
>JspTestRedirector. That one works OK, so long as the other 2 (Servlet and
>Filter Test Redirectors) are not there.
>Yes, I add the entries web.xml that I deploy.
>
>Here is the best part. When I deploy my war to a Tomcat instance,
>everything
>seems alright. Any ideas on this? Do you think this is a J2SDKEE1.3
>specific
>problem? Has Cactus been tested with J2SDKEE1.3?
>
>Thanks,
>Jon
>
>>From: Karthik Kumar <[EMAIL PROTECTED]>
>>Reply-To: [EMAIL PROTECTED]
>>To: [EMAIL PROTECTED]
>>Subject: Re: Cactus and J2SDKEE1.3
>>Date: Thu, 4 Oct 2001 21:10:25 -0700 (PDT)
>>
>>Hello,
>>
>>--- Jon Voigtr <[EMAIL PROTECTED]> wrote:
>> > When I use Cactus with J2SDKEE1.3, I get the following error when I
>>deploy
>> > the war (that contains the ServletTestRedirector, jspRedirector.jsp and
>> > FilterTestRedirector) and try to access anything in the war's context.
>> Did you see to it that you are referring to the right context here ?
>>That ,ay
>>be the reason of HTTP 503 .
>>
>> >
>> > HTTP Status 503 - This application is not currently available
>> > The requested service (This application is not currently available) is
>>not
>> > currently available.
>> >
>> > As a result of this, I cannot get my test cases working as it complains
>> > about some java.io.StreamCorruptedException.
>> StreamCorruptedException occurs primarily because the client-side file
>>cactus.properties is not set right. May be you could check that the file
>>jspRedirector.jsp is deployed in the right context.
>> Also when you are deploying under a new context 'ctx' , then you need
>>to add
>>the entries to that web.xml which you would use to deploy and not the
>>web.xml
>>of the default context.
>>
>>Thanks.
>>Karthik Kumar.
>>
>>__________________________________________________
>>Do You Yahoo!?
>>NEW from Yahoo! GeoCities - quick and easy web site hosting, just
>>$8.95/month.
>>http://geocities.yahoo.com/ps/info1
>
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp