Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Tomcat 5.5 unable to access 'deployed ' webapp

Tomcat 5.5 unable to access 'deployed ' webapp

2007-08-07       - By davewark

 Back
Reply:     1     2  


I see from the past postings that Linux permissions and web archive
deployment don't get on too well. I've tried following some of the advice in
other posts such as updating the policy files to grant all permissions and
changing permissions of some file systems directly, but I still seem to have
no joy.

Basically, I've managed to deploy a web archive using the Tomcat 5.5 manager
command
server:8080/manager/deploy?path=/{path}&war=file:/{local war file}

It gave me a reassuring "OK. Web app deployed at such and such a path..."
type message and it now appears in the deployed applications list, and in
the {$catalina-home}/webapps directory. But when I attempt to access it via
the specified path I get the following error:

-- ---- ---- ---- ---

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet Cocoon threw
exception

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler
.processConnection(Http11BaseProtocol.java:664)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java
:527)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java
:684)
  java.lang.Thread.run(Thread.java:595)

root cause

java.security.AccessControlException: access denied (java.io.FilePermission
/var/cache/tomcat5.5/Catalina/localhost read)

java.security.AccessControlContext.checkPermission(AccessControlContext.java
:264)
  java.security.AccessController.checkPermission(AccessController.java:427)
  java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
  java.lang.SecurityManager.checkRead(SecurityManager.java:871)
  java.io.File.exists(File.java:700)
  java.io.File.mkdirs(File.java:1145)
  java.io.File.mkdirs(File.java:1158)
  java.io.File.mkdirs(File.java:1158)
  org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:315)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
  java.lang.reflect.Method.invoke(Method.java:585)
  org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
  java.security.AccessController.doPrivileged(Native Method)
  javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
  org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler
.processConnection(Http11BaseProtocol.java:664)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java
:527)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java
:684)
  java.lang.Thread.run(Thread.java:595)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5 logs.

-- ---- ---- ---

I'm completely new to Tomcat and so I don't really understand what
permissions need changed or what policies need altered.

I understand there may be no further guidance than what has been mentioned
in similar posts, but if anyone has any input on this I would be greatly
appreciative

Thanks,

David
--
View this message in context: http://www.nabble.com/Tomcat-5 (See http://cat-5.ora-code.com).5-unable-to-access
-%27deployed%27-webapp-tf4230973.html#a12036935
Sent from the Tomcat - User mailing list archive at Nabble.com.


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.