SEVERE: Error registering Catalina:type=Valve,name=StandardContextValve,path=/test,host=localhost

2009-10-03 Thread andre
Hi all, 

i'm install over ubuntu, Tomcat5.5 and Sun Java 1.6.

At this moment i have the follow error msg in tomcat log when try to deploy
the plataform:

 

 

Oct 3, 2009 2:12:08 PM org.apache.commons.modeler.Registry registerComponent

SEVERE: Error registering
Catalina:type=Valve,name=StandardContextValve,path=/test,host=localhost

javax.management.MBeanException: Cannot instantiate ModelMBean of class
org.apache.commons.modeler.BaseModelMBean

   at
org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:385)

   at
org.apache.commons.modeler.Registry.registerComponent(Registry.java:835)

   at
org.apache.catalina.core.StandardPipeline.registerValve(StandardPipeline.jav
a:302)

   at
org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:234)

   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4140)

   at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
60)

   at
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:122)

   at
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.
java:144)

   at java.security.AccessController.doPrivileged(Native Method)

   at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:738)

   at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

   at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)

   at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889
)

   at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)

   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)

   at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

   at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:120)

   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

   at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)

   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

   at
org.apache.catalina.core.StandardService.start(StandardService.java:448)

   at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:552)

   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:597)

   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)

   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:597)

   at
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)

Caused by: java.security.AccessControlException: access denied
(java.io.FilePermission
/usr/lib/perfsonar/services/perfsonar-clmp/WEB-INF/classes/logging.propertie
s read)

   at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:323)

   at
java.security.AccessController.checkPermission(AccessController.java:546)

   at
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)

   at java.lang.SecurityManager.checkRead(SecurityManager.java:871)

   at java.io.File.exists(File.java:731)

   at
org.apache.naming.resources.FileDirContext.file(FileDirContext.java:828)

   at
org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:211)

   at
org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:294)

   at
org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClas
sLoader.java:1925)

   at
org.apache.catalina.loader.WebappClassLoader.findResource(WebappClassLoader.
java:937)

   at
org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
r.java:298)

   at
org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:273)

   at java.security.AccessController.doPrivileged(Native Method)

   at
org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo(ClassLoaderLogManag
er.java:270)

   at
org.apache.juli.ClassLoaderLogManager.getLogger(ClassLoaderLogManager.java:1
75)

   at java.util.logging.Logger.getLogger(Logger.java:275)

   at com.sun.jmx.trace.TraceManager.getLogger(TraceManager.java:184)

   at com.sun.jmx.trace.TraceManager.isSelected(TraceManager.java:197)

   at 

FW: SEVERE: Error registering Catalina:type=Valve,name=StandardContextValve,path=/test,host=localhost

2009-10-03 Thread andre
 

Hi all, 

I'm trying to deploy in the

tomcat5.5 server included in Ubuntu Linux 8.04.

At this moment i have the follow error msg in tomcat log when try to deploy
the plataform:

If I got it right, web applications are to be deployed to

/var/lib/tomcat5.5/webapps.

When doing so, the application doesn't start, and the log puts the error
below.

 

Oct 3, 2009 2:12:08 PM org.apache.commons.modeler.Registry registerComponent

SEVERE: Error registering
Catalina:type=Valve,name=StandardContextValve,path=/test,host=localhost

javax.management.MBeanException: Cannot instantiate ModelMBean of class
org.apache.commons.modeler.BaseModelMBean

   at
org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:385)

   at
org.apache.commons.modeler.Registry.registerComponent(Registry.java:835)

   at
org.apache.catalina.core.StandardPipeline.registerValve(StandardPipeline.jav
a:302)

   at
org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:234)

   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4140)

   at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
60)

   at
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:122)

   at
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.
java:144)

   at java.security.AccessController.doPrivileged(Native Method)

   at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:738)

   at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

   at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)

   at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889
)

   at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)

   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)

   at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

   at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:120)

   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

   at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)

   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

   at
org.apache.catalina.core.StandardService.start(StandardService.java:448)

   at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:552)

   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:597)

   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)

   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:597)

   at
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)

Caused by: java.security.AccessControlException: access denied
(java.io.FilePermission
/usr/lib/perfsonar/services/perfsonar-clmp/WEB-INF/classes/logging.propertie
s read)

   at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:323)

   at
java.security.AccessController.checkPermission(AccessController.java:546)

   at
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)

   at java.lang.SecurityManager.checkRead(SecurityManager.java:871)

   at java.io.File.exists(File.java:731)

   at
org.apache.naming.resources.FileDirContext.file(FileDirContext.java:828)

   at
org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:211)

   at
org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:294)

   at
org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClas
sLoader.java:1925)

   at
org.apache.catalina.loader.WebappClassLoader.findResource(WebappClassLoader.
java:937)

   at
org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
r.java:298)

   at
org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:273)

   at java.security.AccessController.doPrivileged(Native Method)

   at
org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo(ClassLoaderLogManag
er.java:270)

   at
org.apache.juli.ClassLoaderLogManager.getLogger(ClassLoaderLogManager.java:1
75)

   at java.util.logging.Logger.getLogger(Logger.java:275)

Re: FW: SEVERE: Error registering Catalina:type=Valve,name=StandardContextValve,path=/test,host=localhost

2009-10-03 Thread Mark Thomas
andre wrote:
 Hi all, 
 
 I'm trying to deploy in the
 
 tomcat5.5 server included in Ubuntu Linux 8.04.

snip /

Please don't forward your own messages to the list. We got it the first
time.

If you want someone to answer your question then I strongly suggest you
read the following:
http://wiki.apache.org/tomcat/FAQ/Tomcat_User#Q2
http://catb.org/~esr/faqs/smart-questions.html

Mark




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Connection between ListenerStart and clustering

2009-10-03 Thread Bocalinda
I was able to check whether the class (ContextLoaderListener) is copied in
different places.
I can confirm that the class is only located in my webapp under WEB-INF/lib.
(Inside spring.jar and spring-web.jar).

The mystery gets bigger and bigger for me :)

To resume, my Tomcat works most of the time, but sometimes when I start I
get a ListenerStart Error because of a ClassDefNotFound error referencing
org.springframework.web.context.ContextLoaderListener.

Note. This happens after stopping and starting Tomcat again. I'm not
deploying any newer libraries or whatsoever.
In case it's useful, the web.xml of the webapp:

?xml version=1.0 encoding=UTF-8?
web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
id=WebApp_ID version=2.5
display-namepack-server/display-name

distributable /

welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
/welcome-file-list

context-param

param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valuemessages/param-value
/context-param

context-param
param-namecontextConfigLocation/param-name
param-value
classpath:applicationContext-pack-base.xml,
/WEB-INF/classes/applicationContext-services.xml,
/WEB-INF/classes/applicationContext-security.xml

/param-value
/context-param

context-param
param-namelog4jExposeWebAppRoot/param-name
param-valuefalse/param-value
/context-param

filter
filter-namespringSecurityFilterChain/filter-name

filter-classorg.springframework.web.filter.DelegatingFilterProxy/filter-class

/filter

filter-mapping
filter-namespringSecurityFilterChain/filter-name
url-pattern/*/url-pattern
dispatcherREQUEST/dispatcher
dispatcherFORWARD/dispatcher
/filter-mapping

filter
filter-nameExecution Context Filter/filter-name

filter-classde.ja.sap.pack.controller.ExecutionContextFilter/filter-class

/filter

filter-mapping
filter-nameExecution Context Filter/filter-name
url-pattern*.do/url-pattern
/filter-mapping

listener

listener-classorg.springframework.web.util.Log4jConfigListener/listener-class

/listener

listener

listener-classorg.springframework.web.context.ContextLoaderListener/listener-class

/listener

listener

listener-classde.ja.sap.pack.listener.InitListener/listener-class
/listener

servlet
servlet-nameaction/servlet-name

servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml/param-value
/init-param
load-on-startup1/load-on-startup
/servlet

servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping

servlet
display-nameApache-Axis Servlet/display-name
servlet-nameAxisServlet/servlet-name

servlet-classorg.apache.axis2.transport.http.AxisServlet/servlet-class
/servlet

servlet-mapping
servlet-nameAxisServlet/servlet-name
url-pattern/servlet/AxisServlet/url-pattern
/servlet-mapping

servlet-mapping
servlet-nameAxisServlet/servlet-name
url-pattern*.jws/url-pattern
/servlet-mapping

servlet-mapping
servlet-nameAxisServlet/servlet-name
url-pattern/services/*/url-pattern
/servlet-mapping

servlet
display-nameApache-Axis Admin Servlet Web Admin/display-name
servlet-nameAxisAdminServlet/servlet-name

servlet-classorg.apache.axis2.transport.http.AxisAdminServlet/servlet-class

load-on-startup100/load-on-startup
/servlet

servlet-mapping
servlet-nameAxisAdminServlet/servlet-name
url-pattern/axis2-admin/*/url-pattern
/servlet-mapping

filter
filter-nameNavegation PACK Filter/filter-name
filter-classde.ja.sap.pack.web.NavegationPACKFilter/filter-class

/filter
filter-mapping
filter-nameNavegation PACK Filter/filter-name
url-pattern*/url-pattern
/filter-mapping

/web-app

2009/10/3 Caldarale, Charles R chuck.caldar...@unisys.com

  From: Bocalinda [mailto:bocali...@gmail.com]
  Subject: Re: Connection between ListenerStart and clustering
 
   it turns out there are 2 libraries in my web-inf/lib
   containing a class definition for that:
  
   spring-2.5.6.jar and spring-web-2.5.6.jar
  
   Maybe one is interfering with the other

 Is one a proper subset of the other?  If so, it can be removed without ill
 effect.

  they both need to be there in order for Spring to work.

 I'm not familiar 

Re: Finding out the absolute path to application (appBase)

2009-10-03 Thread Uwe Günther

Mark Thomas wrote:

Caldarale, Charles R wrote:

From: Igor Mukhin [mailto:iimu...@mail.ru]
Subject: Finding out the absolute path to application (appBase)

what is the best way two find out the absolute path to directory 
where the application is expanded (appBase)?

There's no guarantee that the application is expanded, or that components of it 
exist anywhere in the file system.  (Or even that there is a file system.)


+1.


What is your actual requirement?


If your requirement really is getting the appBase then try;

((Host) standardContextInstance.getParent()).getAppBase()



And maybe enhance the code from Mark with this part just in case appBase 
isn't absolute:


String appBaseName =
((Host) standardContextInstance.getParent()).getAppBase();

File appBase = new File(appBaseName);

if (!appBase.isAbsolute()) {
appBase = new File(
System.getProperty(catalina.base),
appBaseName);
}

--
Uwe

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Issue With SSI And JSP

2009-10-03 Thread Leonard Bedner



Mark Thomas wrote:
 
 Leonard Bedner wrote:
 init-param
   param-namecontentType/param-name
   param-valuetext/x-server-parsed-html(;.*)?/param-value
 /init-param
 
 Leave this as is.
 
 Perhaps I am just not understanding how to use the content type, most
 likely
 because I do not know anything about regular expressions. In short, how
 do I
 set the content type for jsp?
 
 At the start of your JSP add:
 %@ page contentType=text/x-server-parsed-html; charset=UTF-8 %
 
 Adjust the charset if you need to.
 
 Mark
 
 

Thanks, Mark. That worked perfectly.

-- 
View this message in context: 
http://www.nabble.com/Issue-With-SSI-And-JSP-tp25707397p25729472.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Connection between ListenerStart and clustering

2009-10-03 Thread Rainer Jung
On 03.10.2009 12:12, Bocalinda wrote:
 I was able to check whether the class (ContextLoaderListener) is copied in
 different places.
 I can confirm that the class is only located in my webapp under WEB-INF/lib.
 (Inside spring.jar and spring-web.jar).
 
 The mystery gets bigger and bigger for me :)
 
 To resume, my Tomcat works most of the time, but sometimes when I start I
 get a ListenerStart Error because of a ClassDefNotFound error referencing
 org.springframework.web.context.ContextLoaderListener.
 
 Note. This happens after stopping and starting Tomcat again. I'm not
 deploying any newer libraries or whatsoever.

wild guess
I remember problems with clustering which were of the following kind:
session replication data was received on a node although the context
wasn't yet fully initialized.

Maybe we run into classloader troubles in that case?

This could only happen if another node in the cluster is running all the
time between stop and restart of the node, which logs the exception.

How easy can your reproduce the problem? In case I provide a patch,
could you test, whether the problem goes away?
/wild guess

Regards,

Rainer

 In case it's useful, the web.xml of the webapp:
 
 ?xml version=1.0 encoding=UTF-8?
 web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
 xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
 id=WebApp_ID version=2.5
 display-namepack-server/display-name
 
 distributable /
 
 welcome-file-list
 welcome-fileindex.html/welcome-file
 welcome-fileindex.htm/welcome-file
 welcome-fileindex.jsp/welcome-file
 /welcome-file-list
 
 context-param
 
 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
 param-valuemessages/param-value
 /context-param
 
 context-param
 param-namecontextConfigLocation/param-name
 param-value
 classpath:applicationContext-pack-base.xml,
 /WEB-INF/classes/applicationContext-services.xml,
 /WEB-INF/classes/applicationContext-security.xml
 
 /param-value
 /context-param
 
 context-param
 param-namelog4jExposeWebAppRoot/param-name
 param-valuefalse/param-value
 /context-param
 
 filter
 filter-namespringSecurityFilterChain/filter-name
 
 filter-classorg.springframework.web.filter.DelegatingFilterProxy/filter-class
 
 /filter
 
 filter-mapping
 filter-namespringSecurityFilterChain/filter-name
 url-pattern/*/url-pattern
 dispatcherREQUEST/dispatcher
 dispatcherFORWARD/dispatcher
 /filter-mapping
 
 filter
 filter-nameExecution Context Filter/filter-name
 
 filter-classde.ja.sap.pack.controller.ExecutionContextFilter/filter-class
 
 /filter
 
 filter-mapping
 filter-nameExecution Context Filter/filter-name
 url-pattern*.do/url-pattern
 /filter-mapping
 
 listener
 
 listener-classorg.springframework.web.util.Log4jConfigListener/listener-class
 
 /listener
 
 listener
 
 listener-classorg.springframework.web.context.ContextLoaderListener/listener-class
 
 /listener
 
 listener
 
 listener-classde.ja.sap.pack.listener.InitListener/listener-class
 /listener
 
 servlet
 servlet-nameaction/servlet-name
 
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 init-param
 param-nameconfig/param-name
 param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 load-on-startup1/load-on-startup
 /servlet
 
 servlet-mapping
 servlet-nameaction/servlet-name
 url-pattern*.do/url-pattern
 /servlet-mapping
 
 servlet
 display-nameApache-Axis Servlet/display-name
 servlet-nameAxisServlet/servlet-name
 
 servlet-classorg.apache.axis2.transport.http.AxisServlet/servlet-class
 /servlet
 
 servlet-mapping
 servlet-nameAxisServlet/servlet-name
 url-pattern/servlet/AxisServlet/url-pattern
 /servlet-mapping
 
 servlet-mapping
 servlet-nameAxisServlet/servlet-name
 url-pattern*.jws/url-pattern
 /servlet-mapping
 
 servlet-mapping
 servlet-nameAxisServlet/servlet-name
 url-pattern/services/*/url-pattern
 /servlet-mapping
 
 servlet
 display-nameApache-Axis Admin Servlet Web Admin/display-name
 servlet-nameAxisAdminServlet/servlet-name
 
 servlet-classorg.apache.axis2.transport.http.AxisAdminServlet/servlet-class
 
 load-on-startup100/load-on-startup
 /servlet
 
 servlet-mapping
 servlet-nameAxisAdminServlet/servlet-name
 url-pattern/axis2-admin/*/url-pattern
 /servlet-mapping
 
 filter
 filter-nameNavegation PACK Filter/filter-name
 

Re: Connection between ListenerStart and clustering

2009-10-03 Thread Bocalinda
Hi Rainer.

wild guess
 I remember problems with clustering which were of the following kind:
 session replication data was received on a node although the context
 wasn't yet fully initialized.

 Maybe we run into classloader troubles in that case?

 This could only happen if another node in the cluster is running all the
 time between stop and restart of the node, which logs the exception.

 This could certainly be the case as I have 4 nodos in cluster. I
stop/restart one by one, in order to ensure the availability of the webapp.


 How easy can your reproduce the problem? In case I provide a patch,
 could you test, whether the problem goes away?
 /wild guess


Taking into account that this is a production server, it won't be easy to
play with it, but I can propose to take 2 nodes out of the cluster to do
testing with.


java.lang.OutOfMemoryError: Java heap space

2009-10-03 Thread Joe Hansen
Hey All,

I get this error (java.lang.OutOfMemoryError: Java heap space) after
my Apache 2.0/Tomcat 5.5/mod_jk installation has been up and running
for a few hours. This problem started just since two days. Never had
this issue before!

I have also noticed that as soon as I startup the server, 9 httpd
processes start. Number of httpd processes keep on increasing until I
get the OutOfMemoryError.
$ps -aef | grep httpd
root 31984 1  0 11:23 ?00:00:00 /usr/sbin/httpd
apache   31987 31984  0 11:23 ?00:00:00 /usr/sbin/httpd
apache   31988 31984  0 11:23 ?00:00:00 /usr/sbin/httpd
apache   31989 31984  0 11:23 ?00:00:00 /usr/sbin/httpd
apache   31990 31984  0 11:23 ?00:00:00 /usr/sbin/httpd
apache   31991 31984  0 11:23 ?00:00:00 /usr/sbin/httpd
apache   31992 31984  0 11:23 ?00:00:00 /usr/sbin/httpd
apache   31993 31984  0 11:23 ?00:00:00 /usr/sbin/httpd
apache   31994 31984  0 11:23 ?00:00:00 /usr/sbin/httpd

$ps -aef | grep tomcat
root 31949 1 43 11:23 pts/000:00:58 /usr/java/jdk/bin/java -Djava.u
il.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.co
fig.file=/usr/lib/apache-tomcat/conf/logging.properties -Djava.endorsed.dirs=/u
r/lib/apache-tomcat/common/endorsed -classpath :/usr/lib/apache-tomcat/bin/boot
trap.jar:/usr/lib/apache-tomcat/bin/commons-logging-api.jar -Dcatalina.base=/us
/lib/apache-tomcat -Dcatalina.home=/usr/lib/apache-tomcat -Djava.io.tmpdir=/usr
lib/apache-tomcat/temp org.apache.catalina.startup.Bootstrap start

Can someone on this list please help me resolve this issue.

Thanks you,
Joe

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: SEVERE: Error registering Catalina:type=Valve,name=StandardContextValve,path=/test,host=localhost

2009-10-03 Thread David Smith
I believe the relevant part of what you posted is:

 Caused by: java.security.AccessControlException: access denied
 (java.io.FilePermission
 /usr/lib/perfsonar/services/perfsonar-clmp/WEB-INF/classes/logging.propertie
 s read)

which basically looks like the security manager is enabled and some
class is denied the ability to read logging.properties.  Take a look at
the security manager howto for more information:

http://tomcat.apache.org/tomcat-5.5-doc/security-manager-howto.html

--David

andre wrote:
 Hi all, 

 i'm install over ubuntu, Tomcat5.5 and Sun Java 1.6.

 At this moment i have the follow error msg in tomcat log when try to deploy
 the plataform:

  

  

 Oct 3, 2009 2:12:08 PM org.apache.commons.modeler.Registry registerComponent

 SEVERE: Error registering
 Catalina:type=Valve,name=StandardContextValve,path=/test,host=localhost

 javax.management.MBeanException: Cannot instantiate ModelMBean of class
 org.apache.commons.modeler.BaseModelMBean

at
 org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:385)

at
 org.apache.commons.modeler.Registry.registerComponent(Registry.java:835)

at
 org.apache.catalina.core.StandardPipeline.registerValve(StandardPipeline.jav
 a:302)

at
 org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:234)

at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4140)

at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
 60)

at
 org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:122)

at
 org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.
 java:144)

at java.security.AccessController.doPrivileged(Native Method)

at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:738)

at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

at
 org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)

at
 org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889
 )

at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)

at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
 t.java:120)

at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)

at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

at
 org.apache.catalina.core.StandardService.start(StandardService.java:448)

at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:700)

at org.apache.catalina.startup.Catalina.start(Catalina.java:552)

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:597)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)

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:597)

at
 org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)

 Caused by: java.security.AccessControlException: access denied
 (java.io.FilePermission
 /usr/lib/perfsonar/services/perfsonar-clmp/WEB-INF/classes/logging.propertie
 s read)

at
 java.security.AccessControlContext.checkPermission(AccessControlContext.java
 :323)

at
 java.security.AccessController.checkPermission(AccessController.java:546)

at
 java.lang.SecurityManager.checkPermission(SecurityManager.java:532)

at java.lang.SecurityManager.checkRead(SecurityManager.java:871)

at java.io.File.exists(File.java:731)

at
 org.apache.naming.resources.FileDirContext.file(FileDirContext.java:828)

at
 org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:211)

at
 org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:294)

at
 org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClas
 sLoader.java:1925)

at
 org.apache.catalina.loader.WebappClassLoader.findResource(WebappClassLoader.
 java:937)

at
 org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManage
 

Re: users Digest 1 Oct 2009 16:56:25 -0000 Issue 9131

2009-10-03 Thread Dan D

 From: Filip Hanik - Dev Lists devli...@hanik.com
 To: Tomcat Users List users@tomcat.apache.org
 Date: Thu, 01 Oct 2009 08:00:53 -0600
 Subject: Re: Comet duplicate END events
 On 09/30/2009 11:36 PM, Dan D wrote:

 I have the exact situation as described thoroughly here:

 http://www.mail-archive.com/users@tomcat.apache.org/msg66793.html


 wanna send us a test case?
 otherwise, duplicate END events should not be a big deal, easy to handle

 Any thoughts?


The previous question about this includes a test case:
http://www.mail-archive.com/users@tomcat.apache.org/msg66793.html

The other concern is that according to the API, after receiving an END event
the request will get recycled.  So the second END event may give you a
recycled request/response that would be dangerous to close the event or
touch the request/response.

Are you suggesting ignoring the second END event?  If so, what should I use
to detect it's a duplicate?  Using anything in the request/response wouldn't
be safe if they had been recycled.  I suppose I could use the identity of
the CometEvent itself?


Re: java.lang.OutOfMemoryError: Java heap space

2009-10-03 Thread Rainer Jung
On 03.10.2009 20:07, Joe Hansen wrote:
 Hey All,
 
 I get this error (java.lang.OutOfMemoryError: Java heap space) after
 my Apache 2.0/Tomcat 5.5/mod_jk installation has been up and running
 for a few hours. This problem started just since two days. Never had
 this issue before!
 
 I have also noticed that as soon as I startup the server, 9 httpd
 processes start. Number of httpd processes keep on increasing until I
 get the OutOfMemoryError.
 $ps -aef | grep httpd
 root 31984 1  0 11:23 ?00:00:00 /usr/sbin/httpd
 apache   31987 31984  0 11:23 ?00:00:00 /usr/sbin/httpd
 apache   31988 31984  0 11:23 ?00:00:00 /usr/sbin/httpd
 apache   31989 31984  0 11:23 ?00:00:00 /usr/sbin/httpd
 apache   31990 31984  0 11:23 ?00:00:00 /usr/sbin/httpd
 apache   31991 31984  0 11:23 ?00:00:00 /usr/sbin/httpd
 apache   31992 31984  0 11:23 ?00:00:00 /usr/sbin/httpd
 apache   31993 31984  0 11:23 ?00:00:00 /usr/sbin/httpd
 apache   31994 31984  0 11:23 ?00:00:00 /usr/sbin/httpd

Sounds like requests get stuck or responses are only returned very slowly.

I would take thread dumps during the time requests pile up (e.g. httpd
process count increases). Thread dumps are generated by kil -QUIT
against the Tomcat process. Result is written to catalina.out. Always
take afew thread dumps shortly after each other, e.g. 3 dumps each 3
seconds apart from the previous one, so that you can find out, if a
status in a dump is pure coincidence or lasts for somewhat longer.

 $ps -aef | grep tomcat
 root 31949 1 43 11:23 pts/000:00:58 /usr/java/jdk/bin/java 
 -Djava.u
 il.logging.manager=org.apache.juli.ClassLoaderLogManager 
 -Djava.util.logging.co
 fig.file=/usr/lib/apache-tomcat/conf/logging.properties 
 -Djava.endorsed.dirs=/u
 r/lib/apache-tomcat/common/endorsed -classpath 
 :/usr/lib/apache-tomcat/bin/boot
 trap.jar:/usr/lib/apache-tomcat/bin/commons-logging-api.jar 
 -Dcatalina.base=/us
 /lib/apache-tomcat -Dcatalina.home=/usr/lib/apache-tomcat 
 -Djava.io.tmpdir=/usr
 lib/apache-tomcat/temp org.apache.catalina.startup.Bootstrap start

There is no Java memory configuration included above (i.e. al defaults).
It might well be, that you have to explicitely set heap size, perm size
and if you like also eden and semi spaces.

 Can someone on this list please help me resolve this issue.
 
 Thanks you,
 Joe

Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Connection between ListenerStart and clustering

2009-10-03 Thread Rainer Jung
On 03.10.2009 18:11, Bocalinda wrote:
 Hi Rainer.
 
 wild guess
 I remember problems with clustering which were of the following kind:
 session replication data was received on a node although the context
 wasn't yet fully initialized.

 Maybe we run into classloader troubles in that case?

 This could only happen if another node in the cluster is running all the
 time between stop and restart of the node, which logs the exception.

 This could certainly be the case as I have 4 nodos in cluster. I
 stop/restart one by one, in order to ensure the availability of the webapp.
 
 
 How easy can your reproduce the problem? In case I provide a patch,
 could you test, whether the problem goes away?
 /wild guess


 Taking into account that this is a production server, it won't be easy to
 play with it, but I can propose to take 2 nodes out of the cluster to do
 testing with.

You can find a patched catalina-ha.jar and in case you are interested
also the respective source code file at

http://people.apache.org/~rjung/patches/tc6-cluster-context-startup-order.zip

I did a one to one port from TC 5.5 to TC 6.0. So please test carefully
and let us know the results, so we can include the patch into the
standard code in case it proves it helps.

Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Connection between ListenerStart and clustering

2009-10-03 Thread Bocalinda
Wow, that's what is called a quick turn around! :)
Thanks. I'll try as soon as possible and let you know.

2009/10/3 Rainer Jung rainer.j...@kippdata.de

 On 03.10.2009 18:11, Bocalinda wrote:
  Hi Rainer.
 
  wild guess
  I remember problems with clustering which were of the following kind:
  session replication data was received on a node although the context
  wasn't yet fully initialized.
 
  Maybe we run into classloader troubles in that case?
 
  This could only happen if another node in the cluster is running all the
  time between stop and restart of the node, which logs the exception.
 
  This could certainly be the case as I have 4 nodos in cluster. I
  stop/restart one by one, in order to ensure the availability of the
 webapp.
 
 
  How easy can your reproduce the problem? In case I provide a patch,
  could you test, whether the problem goes away?
  /wild guess
 
 
  Taking into account that this is a production server, it won't be easy to
  play with it, but I can propose to take 2 nodes out of the cluster to do
  testing with.

 You can find a patched catalina-ha.jar and in case you are interested
 also the respective source code file at


 http://people.apache.org/~rjung/patches/tc6-cluster-context-startup-order.ziphttp://people.apache.org/%7Erjung/patches/tc6-cluster-context-startup-order.zip

 I did a one to one port from TC 5.5 to TC 6.0. So please test carefully
 and let us know the results, so we can include the patch into the
 standard code in case it proves it helps.

 Regards,

 Rainer

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Baffling tomcat issue

2009-10-03 Thread baronred

Hi,

I have deployed tomcat on Redhat 9 and everything seemed to work well. My
webapps are deployed to /usr/local/tomcat/webapps folder. Today I tried to
redeploy a jsp application replacing the old one. However this has no effect
and the class files of the old application are still being picked up.
I am at loss to understand why this is the case.

I have tried searching for these old files using all the tricks I know
(find, grep, environment variables, WEB-INF etc). I am still clueless. Any
suggestions or as anybody come across this issue before? Am I missing
something very obvious? 
-- 
View this message in context: 
http://www.nabble.com/Baffling-tomcat-issue-tp25733453p25733453.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Baffling tomcat issue

2009-10-03 Thread Martin Gainty

Baron

replace YourWebApp with the name of your webapp
delete everything under the $CATALINA_HOME/work/Catalina/localhost/YourWebapp

Martin 
__ 
Verzicht und Vertraulichkeitanmerkung
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.






 Date: Sat, 3 Oct 2009 15:39:28 -0700
 From: prasadmpa...@gmail.com
 To: users@tomcat.apache.org
 Subject: Baffling tomcat issue
 
 
 Hi,
 
 I have deployed tomcat on Redhat 9 and everything seemed to work well. My
 webapps are deployed to /usr/local/tomcat/webapps folder. Today I tried to
 redeploy a jsp application replacing the old one. However this has no effect
 and the class files of the old application are still being picked up.
 I am at loss to understand why this is the case.
 
 I have tried searching for these old files using all the tricks I know
 (find, grep, environment variables, WEB-INF etc). I am still clueless. Any
 suggestions or as anybody come across this issue before? Am I missing
 something very obvious? 
 -- 
 View this message in context: 
 http://www.nabble.com/Baffling-tomcat-issue-tp25733453p25733453.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
  
_
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
http://clk.atdmt.com/GBL/go/171222985/direct/01/

Re: HttpSession.setMaxInactiveInterval() sets for all sessions?

2009-10-03 Thread Eric B.
Eric B. ebe...@hotmail.com wrote in message 
news:ha4rqk$dc...@ger.gmane.org...
 Hassan Schroeder hassan.schroe...@gmail.com wrote in message 
 news:4eedb92a0910012200v3ee194eay9fea204be71e4...@mail.gmail.com...
 On Thu, Oct 1, 2009 at 6:38 PM, Eric B. ebe...@hotmail.com wrote:

  I'm running Tomcat 6.0.18 and seeing something very bizarre. If I use
  HttpSession.setMaxInactiveInterval() in one session, and then in a 
  different
  session, use HttpSession.getMaxInactiveInterval(), I get the value that 
  I
  just set in the first session.

  Am I seeing strange behaviour, or is this behaviour by design?

 I don't see that behavior in a quick test with
 Tomcat 6.0.20, context running Servlet Spec 2.5 on
 (Mac) Java(TM) SE Runtime Environment (build 1.6.0_15-b03-226)
 Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-92, mixed mode

 Do you have a test case? Are you really sure you're getting those
 data points from different sessions?

 No, I don't have a test case for that at all.  One of my developpers made 
 modifications to our application in order to set the max inactive 
 interval. I looked at his code changes, and they all _seem_ correct, so 
 was very surprised to see that kind of behaviour.  I ran some tests myself 
 within our application and confirmed the behaviour he saw so was even more 
 surprised.


Ok - so I built a few different test cases to reproduce what my developpers 
had done, and I couldn't reproduce the issue.  So I took a closer look at 
his code, and indeed, he was doing something incorrect and was resetting the 
inactive interval for all sessions accidentally.

Thanks for the response.  Helped me track down a bug that we would otherwise 
have missed.

Eric




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: SEVERE: Parse error in default web.xml

2009-10-03 Thread Eric B.

andre andrewarn...@gmail.com wrote in message 
news:003c01ca43b9$0ef57ae0$2ce070...@com...
 hi all :

 I have install tomcat5.5 the create a new test page in
 /var/lib/tomcat/webapps/test/hello.jsp,

 But I can't see the page (http://localhost:8180/test/hello.jsp) , it's 
 show
 the msg as follows :





 HTTP Status 404 -



 type Status report



 message



 description The requested resource () is not available.

 Apache Tomcat/5.5



 I find some error in my tomcat log





 Oct 3, 2009 12:44:10 AM org.apache.catalina.startup.ContextConfig
 processDefaultWebConfig

 SEVERE: Parse error in default web.xml

 java.security.AccessControlException: access denied
 (java.lang.RuntimePermission 
 accessClassInPackage.org.apache.catalina.core)


Are your all your files readable by the process that is running tomcat?  For 
instance, if tomcat is running under user tomcat, and your files are only 
readable by andre, you will get errors like that.

For debugging purposes, first make sure that all files are world-readable, 
and once you get that working, you can start playing with file permissions 
to make sure things are properly secured.

Good luck,

Eric 




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Loading Jar files in a particular order on Tomcat 6

2009-10-03 Thread Eric B.
Caldarale, Charles R chuck.caldar...@unisys.com wrote in message 
news:99c8b2929b39c24493377ac7a121e21f84054c1...@usea-exch8.na.uis.unisys.com...
 From: Rasmus Larsen [mailto:kolibria...@gmail.com]
 Subject: Loading Jar files in a particular order on Tomcat 6

 I'm working on a web application where I have dependencies on two
 different jars containing two different versions of the same class.

 Ugly, at best.

 I've created a custom class loader, which first first tries to load
 classes from a specific set of jars, and if that fails it just loads
 the class in the standard manner.

 Unless you have explicit control over the classpath used by each
 classloader in the hierarchy (which you don't), a custom classloader
 is pretty much the only way to handle this.

I've always noticed that the classloader loads things in alphabetical order. 
Additionally, if it finds the same class in 2 different jars, it only seems 
to use the class from the first jar.

I would suggest just trying to rename the important jars if possible with 
a prefix of something like aaa_jarname.jar to force the classloader to 
pick it up first.

Just a thought

Eric





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Loading Jar files in a particular order on Tomcat 6

2009-10-03 Thread Caldarale, Charles R
 From: news [mailto:n...@ger.gmane.org] On Behalf Of Eric B.
 Subject: Re: Loading Jar files in a particular order on Tomcat 6
 
 I've always noticed that the classloader loads things in alphabetical
 order.

??? Which classloader are you referring to?  And by things, do you mean 
classes or jars?  If you're referring to jars, the order of jar processing is 
determined solely by the specific classloader instance; it can choose to 
process the jars in the order they're encountered, alphabetically, by 
date/time, or any other means.  Relying on any particular observed behavior is 
extremely risky, unless it's defined in the spec.

 Additionally, if it finds the same class in 2 different jars, it only
 seems to use the class from the first jar.

That is normal behavior for all classloaders.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Loading Jar files in a particular order on Tomcat 6

2009-10-03 Thread Konstantin Kolinko
2009/10/4 Caldarale, Charles R chuck.caldar...@unisys.com:
 From: news [mailto:n...@ger.gmane.org] On Behalf Of Eric B.
 Subject: Re: Loading Jar files in a particular order on Tomcat 6

 I've always noticed that the classloader loads things in alphabetical
 order.

 ??? Which classloader are you referring to?  And by things, do you mean 
 classes or jars?  If you're referring to jars, the order of jar processing is 
 determined solely by the specific classloader instance; it can choose to 
 process the jars in the order they're encountered, alphabetically, by 
 date/time, or any other means.  Relying on any particular observed behavior 
 is extremely risky, unless it's defined in the spec.

 Additionally, if it finds the same class in 2 different jars, it only
 seems to use the class from the first jar.

 That is normal behavior for all classloaders.



 the order of jar processing is determined solely by the specific classloader 
 instance

I am rather sure that it is an official rule (I must be somewhere
documented [1]),
that jars in a classpath are searched in the order they are specified there.

[1] e.g. in URLClassLoader constructor JavaDoc:
[cite] The URLs will be searched in the order specified [/cite]

Also
http://java.sun.com/javase/6/docs/technotes/tools/windows/classpath.html
If a specific order is required then the JAR files can be enumerated
explicitly in the class path.

Certain file systems (e.g. NTFS as far as I know) return file lists in
alphabetical order, but that is all that stands behind that advice of
naming the jar.

There is also an explicit rule that classes in /WEB-INF/classes take
precedence over any jars in /WEB-INF/lib -- see SRV.9.5
The Web application class loader must load classes from the WEB-INF/ classes
directory first

Thus the solution in this case is to unpack those jars that must come first.

If those are shared libraries, e.g. in ${catalina.base}/lib, you can
specify an order in catalina.properties

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Loading Jar files in a particular order on Tomcat 6

2009-10-03 Thread Caldarale, Charles R
 From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
 Subject: Re: Loading Jar files in a particular order on Tomcat 6
 
 I am rather sure that it is an official rule (I must be somewhere
 documented [1]), that jars in a classpath are searched in the order
 they are specified there.

Correct; this is what I was referring to as normal behavior.  What is not in 
spec is the order in which jars are placed in the classpath when the classpath 
is constructed internally by the classloader itself.

 Certain file systems (e.g. NTFS as far as I know) return file lists in
 alphabetical order, but that is all that stands behind that advice of
 naming the jar.

NTFS is the only one I'm aware of that does it, and its ordering is not 
case-sensitive, if that's a concern.  In most environments, the sorting is done 
by whatever shell program is displaying the contents of the directory.

 Thus the solution in this case is to unpack those jars that 
 must come first.

Painful, but workable.

 If those are shared libraries, e.g. in ${catalina.base}/lib, you can
 specify an order in catalina.properties

Much more controllable.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



How to remove context root(projectname) from Web URL

2009-10-03 Thread Kamoor

I have java web project with name xyz, and it hosted in one server and it is
accessible as http://servername/xyz/home.do
Now I have domain name as www.abc.com which should set a forward to my
actual URL..
I dont want user to see my project name xyz..
I want like http://abc.com/home.do or any other page like that..How can I
configure it in the server...?
Thanks for your help..
-- 
View this message in context: 
http://www.nabble.com/How-to-remove-context-root%28projectname%29-from-Web-URL-tp25734655p25734655.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: How to remove context root(projectname) from Web URL

2009-10-03 Thread Caldarale, Charles R
 From: Kamoor [mailto:ratheeshkum...@gmail.com]
 Subject: How to remove context root(projectname) from Web URL
 
 I dont want user to see my project name xyz..
 I want like http://abc.com/home.do or any other page like that..How can
 I configure it in the server...?

It's in the FAQ:
http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_the_Tomcat_default_application_.3F

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org