You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Tsui, Alban" <Al...@COGNOS.com> on 2003/02/12 13:11:01 UTC

cocoon on SunOne?

hi 
I have compiled cocoon2.0.3 with jdk1.4 as a war and tried to deploy it to
SunOne app server. When I hit the page:
http://localhost:81/cocoon
I got the following error:
Type: Exception Report

Message: Internal Server Error
Exception 
javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw
exception
	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94
9)
	at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:229)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:212)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203
)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
	at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.ja
va:157)
	at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

Root Cause 
java.security.AccessControlException: access denied
(java.lang.RuntimePermission createSecurityManager)
	at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:270)
	at
java.security.AccessController.checkPermission(AccessController.java:401)
	at
java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
	at java.lang.SecurityManager.(SecurityManager.java:298)
	at
org.apache.cocoon.util.log.CocoonLogFormatter$CallStack.(CocoonLogFormatter.
java:99)
	at
org.apache.cocoon.util.log.CocoonLogFormatter.(CocoonLogFormatter.java:127)
	at
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:730)
	at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:262)
	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:92
1)
	at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:229)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:212)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203
)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
	at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.ja
va:157)
	at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

Is this something to do with my cocoon or with my SunONE settings? Any help
would be appreciated.
Alban


This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: cocoon on SunOne?

Posted by Kyle Koss <kk...@xperient.net>.
We are running cocoon on SunOne as well, and I had this problem too.
It's really quite simple. You just need to add some permission in the
server.policy file for cocoon to work. These are the permissions I
added:

		permission java.lang.RuntimePermission
"createSecurityManager";
		permission java.lang.RuntimePermission
"createClassLoader";
		permission java.util.PropertyPermission "*",
"read,write";
		permission java.net.SocketPermission    "*",
"accept,resolve";
		
As well as a delete permission to the java.io.FilePermission.

That's it, and cocoon should work fine after that.

Regards,

Kyle

-----Original Message-----
From: Tsui, Alban [mailto:Alban.Tsui@COGNOS.com] 
Sent: February 12, 2003 6:11 AM
To: cocoon-users@xml.apache.org
Subject: cocoon on SunOne?


hi 
I have compiled cocoon2.0.3 with jdk1.4 as a war and tried to deploy it
to SunOne app server. When I hit the page: http://localhost:81/cocoon I
got the following error:
Type: Exception Report

Message: Internal Server Error
Exception 
javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw
exception
	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:94
9)
	at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:6
58)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.ja
va:229)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
05)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.ja
va:212)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
05)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:203
)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
05)
	at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcesso
r.ja
va:157)
	at
com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

Root Cause 
java.security.AccessControlException: access denied
(java.lang.RuntimePermission createSecurityManager)
	at
java.security.AccessControlContext.checkPermission(AccessControlContext.
java
:270)
	at
java.security.AccessController.checkPermission(AccessController.java:401
)
	at
java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
	at java.lang.SecurityManager.(SecurityManager.java:298)
	at
org.apache.cocoon.util.log.CocoonLogFormatter$CallStack.(CocoonLogFormat
ter.
java:99)
	at
org.apache.cocoon.util.log.CocoonLogFormatter.(CocoonLogFormatter.java:1
27)
	at
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:73
0)
	at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:262)
	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:92
1)
	at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:6
58)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.ja
va:229)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
05)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.ja
va:212)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
05)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:203
)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
05)
	at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcesso
r.ja
va:157)
	at
com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

Is this something to do with my cocoon or with my SunONE settings? Any
help would be appreciated. Alban


This message may contain privileged and/or confidential information.  If
you have received this e-mail in error or are not the intended
recipient, you may not use, copy, disseminate or distribute it; do not
open any attachments, delete it immediately from your system and notify
the sender promptly by e-mail that you have done so.  Thank you.

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>