Re: tomcat start exception

2005-09-26 Thread Jun Zhu
Thanks very much for your big help. After adding the attribute,
catalina.out has no exception when server startup. But the same
exception now is appearing when server shutdown. In addition, if I try
to access server's manager page, catalina.out records exception as:
An exception or error occurred in the container during the
request processing
 java.lang.NoSuchFieldError: debug

I still unable to access the manager page, just a broken link. Do you
have some ideal of that?  


Julia

>>>  9/25/2005 3:29:12 PM >>>
If you add the attribute channelSocket.soLinger="-1" to your AJP/1.3 
 element in server.xml, it should make the error go away. 
It's 
beyond me why Sun has decided to throw an exception here.

"Jun Zhu" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I have a Tomcat5.5.9 server that works fine with JDBCRealm. I am
trying
> to configure a customRealm for the sever. The customRealm.jar file
was
> placed in the directory of $Tomcat_Home/server/lib. The realm in the
> server.xml has been defined as:
>
>connectionName=""
>   connectionPassword="XXX"
>
>
connectionURL="jdbc:mysql://oscar.acesag.auburn.edu:3306/authenticate"
>   driverName="org.gjt.mm.mysql.Driver"
>   roleNameCol="role_name"
>   userCredCol="user_pass"
>   userNameCol="user_name"
>   userRoleTable="tomcat_user_roles"
>   userTable="tomcat_users"
>   validate="true" />
>
> After starting tomcat, I can see tomcat page via IE browser, but
when
> click on Tomcat Manager, just got a blank page.
> I got exception in catalina.out as:
>WARNING: Exception executing accept
>java.net.SocketException: Invalid argument
>at java.net.PlainSocketImpl.socketSetOption(Native Method)
>at
> java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264)
>at java.net.Socket.setSoLinger(Socket.java:869)
>at
> org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:300)
>at
>
org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.j$
>at
> org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:852)
>at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thread$
>at java.lang.Thread.run(Thread.java:595)
>
> In most case this exception means  "The server is not running
(nobody
> is listening on the specified port)" or "The host is not reachable".
>
> Is there any additional configuration I missed? How to fix this
> problem? Please help.
>
> Julia Zhu 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat start exception

2005-09-24 Thread Bill Barker
If you add the attribute channelSocket.soLinger="-1" to your AJP/1.3 
 element in server.xml, it should make the error go away.  It's 
beyond me why Sun has decided to throw an exception here.

"Jun Zhu" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I have a Tomcat5.5.9 server that works fine with JDBCRealm. I am trying
> to configure a customRealm for the sever. The customRealm.jar file was
> placed in the directory of $Tomcat_Home/server/lib. The realm in the
> server.xml has been defined as:
>
>connectionName=""
>   connectionPassword="XXX"
>
> connectionURL="jdbc:mysql://oscar.acesag.auburn.edu:3306/authenticate"
>   driverName="org.gjt.mm.mysql.Driver"
>   roleNameCol="role_name"
>   userCredCol="user_pass"
>   userNameCol="user_name"
>   userRoleTable="tomcat_user_roles"
>   userTable="tomcat_users"
>   validate="true" />
>
> After starting tomcat, I can see tomcat page via IE browser, but when
> click on Tomcat Manager, just got a blank page.
> I got exception in catalina.out as:
>WARNING: Exception executing accept
>java.net.SocketException: Invalid argument
>at java.net.PlainSocketImpl.socketSetOption(Native Method)
>at
> java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264)
>at java.net.Socket.setSoLinger(Socket.java:869)
>at
> org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:300)
>at
> org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.j$
>at
> org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:852)
>at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thread$
>at java.lang.Thread.run(Thread.java:595)
>
> In most case this exception means  "The server is not running (nobody
> is listening on the specified port)" or "The host is not reachable".
>
> Is there any additional configuration I missed? How to fix this
> problem? Please help.
>
> Julia Zhu 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat start exception

2005-09-23 Thread Jun Zhu
I have a Tomcat5.5.9 server that works fine with JDBCRealm. I am trying
to configure a customRealm for the sever. The customRealm.jar file was
placed in the directory of $Tomcat_Home/server/lib. The realm in the
server.xml has been defined as:

   

After starting tomcat, I can see tomcat page via IE browser, but when
click on Tomcat Manager, just got a blank page. 
I got exception in catalina.out as:
WARNING: Exception executing accept
java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketSetOption(Native Method)
at
java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264)
at java.net.Socket.setSoLinger(Socket.java:869)
at
org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:300)
at
org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.j$
at
org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:852)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thread$
at java.lang.Thread.run(Thread.java:595)

In most case this exception means  "The server is not running (nobody
is listening on the specified port)" or "The host is not reachable". 

Is there any additional configuration I missed? How to fix this
problem? Please help.

Julia Zhu

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RE: Error at tomcat start up

2005-05-22 Thread tushar S Kulkarni
  Hi 
Thanks for your email, problem is sorted out, it was due to another web.xml 
which was not in order.



On Sun, 22 May 2005 Dale,Matt wrote :
>
>The error may be in your main tomcat web.xml rather than your webapps as it 
>appears to be at line 331 and your webapp web.xml does not have that many 
>lines.
>
>Ta
>Matt
>
>-Original Message-
> From: tushar S Kulkarni [mailto:[EMAIL PROTECTED]
>Sent: 21 May 2005 19:10
>To: tomcat-user@jakarta.apache.org
>Subject: Error at tomcat start up
>
>
>Hi All,
>I am getting following error at tomcat start up.
>
>Nov 6, 2000 3:27:04 PM org.apache.struts.util.PropertyMessageResources 
>INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', 
>retur
>nNull=true
>Nov 6, 2000 3:27:13 PM org.apache.commons.digester.Digester error
>SEVERE: Parse Error at line 331 column 11: The content of element type 
>"web-app"
>  must match 
> "(icon?,display-name?,description?,distributable?,context-param*,fil
>ter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-ma
>pping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
>curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-re
>f*)".
>org.xml.sax.SAXParseException: The content of element type "web-app" must match
>"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-
>mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welco
>me-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-const
>raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
> at 
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
>known Source)
> at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at 
> org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S
>ource)
> at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown 
> Source)
>
> at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
>Unknown Source)
> at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
>Dispatcher.dispatch(Unknown Source)
> at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
>known Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.apache.commons.digester.Digester.parse(Digester.java:1548)
> at 
> org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
>nfig.java:282)
> at 
> org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
>9)
> at 
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
>g.java:243)
> at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
>eSupport.java:166)
> at 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3
>587)
> at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
>.java:821)
> at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
>7)
> at 
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
>
> at 
> org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
>loyer.java:307)
> at 
> org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
> at 
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
>ava:559)
> at 
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401
>)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
> at 
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
>:358)
> at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
>eSupport.java:166)
> at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
>
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
> at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>
> at 
> org.apache.catalina.core.StandardEngine.start(St

RE: Error at tomcat start up

2005-05-22 Thread Dale, Matt

The error may be in your main tomcat web.xml rather than your webapps as it 
appears to be at line 331 and your webapp web.xml does not have that many lines.

Ta
Matt

-Original Message-
From: tushar S Kulkarni [mailto:[EMAIL PROTECTED]
Sent: 21 May 2005 19:10
To: tomcat-user@jakarta.apache.org
Subject: Error at tomcat start up


Hi All,
I am getting following error at tomcat start up.

Nov 6, 2000 3:27:04 PM org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur
nNull=true
Nov 6, 2000 3:27:13 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 331 column 11: The content of element type "web-app"
 must match "(icon?,display-name?,description?,distributable?,context-param*,fil
ter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-ma
pping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-re
f*)".
org.xml.sax.SAXParseException: The content of element type "web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-
mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welco
me-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-const
raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
known Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S
ource)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
nfig.java:282)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
9)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:243)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
587)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:821)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)

at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:307)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:559)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:358)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
97)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:219
0)

Here is web.xml

http://java.sun.com/dtd/web-app_2_3.dtd";>

 
JavaServer Faces Guess Number Sample Application
 
 
 JavaServer Faces Guess Number Sample Application
 
 
 
 javax.faces.STATE_SAVING_METHOD
 client
 
 
 
 javax.faces.application.CONFIG_FILES
 /WEB-INF/faces-config.xml
 
 

 com.sun.faces.validateXml
 true
 

 com.sun.faces.config.ConfigListener
 
 
 
 
 Faces Servlet
 javax.faces.webapp.FacesServlet
  1 

 
 
 
 
 Faces Servlet
 /faces/*
 

 

PLease 

Re: Re: Error at tomcat start up

2005-05-21 Thread tushar S Kulkarni
Thanks for your email! 

no my web.xml doesnt have 331 lines. I had added entire web.xml in previous 
email. 
I have created a dir called jsfApp under webapps and have set this context. 
so will any other application cause problem? 

Thanks 


On Sun, 22 May 2005 Shinji Miyamoto wrote :
>Hi,
>
>
>The error say that web-app element is invlid for DTD.
>The order of child elements of web-app is not correct, maybe.
>
>But your web.xml seem correct.
>
> >SEVERE: Parse Error at line 331 column 11:
>
>Does your web.xml have 331 lines?
>I think the error is cause by other web application.
>
>
>---
>Shinji Miyamoto
>[EMAIL PROTECTED]
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>




Re: Error at tomcat start up

2005-05-21 Thread Shinji Miyamoto
Hi,


The error say that web-app element is invlid for DTD.
The order of child elements of web-app is not correct, maybe.

But your web.xml seem correct.

>SEVERE: Parse Error at line 331 column 11: 

Does your web.xml have 331 lines?
I think the error is cause by other web application.


---
Shinji Miyamoto
[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error at tomcat start up

2005-05-21 Thread tushar S Kulkarni
Hi All,
I am getting following error at tomcat start up.

Nov 6, 2000 3:27:04 PM org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur
nNull=true
Nov 6, 2000 3:27:13 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 331 column 11: The content of element type "web-app"
 must match "(icon?,display-name?,description?,distributable?,context-param*,fil
ter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-ma
pping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-re
f*)".
org.xml.sax.SAXParseException: The content of element type "web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-
mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welco
me-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-const
raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
known Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S
ource)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
nfig.java:282)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
9)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:243)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
587)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:821)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)

at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:307)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:559)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:358)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
97)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:219
0)

Here is web.xml

http://java.sun.com/dtd/web-app_2_3.dtd";>

 
JavaServer Faces Guess Number Sample Application
 
 
 JavaServer Faces Guess Number Sample Application
 
 
 
 javax.faces.STATE_SAVING_METHOD
 client
 
 
 
 javax.faces.application.CONFIG_FILES
 /WEB-INF/faces-config.xml
 
 

 com.sun.faces.validateXml
 true
 

 com.sun.faces.config.ConfigListener
 
 
 
 
 Faces Servlet
 javax.faces.webapp.FacesServlet
  1 

 
 
 
 
 Faces Servlet
 /faces/*
 

 

PLease advise, how do I resolve this problem? 

Thanks in Advance






Why tomcat start and stop threads ?

2005-04-19 Thread Xavier AMBROSIONI
Hi,

I'm running a home made application on tomcat 4.1.31 on a HP-UX 11i box
with the HotSpot JVM 1.4.2_02. I'm using a Coyote HTTP/1.1 Connector.
The heap size of the tomcat process grows until it reachs the value I
set with the -Xmx parameter. At this point I have some
java.lang.OutOfMemory exception in my application.
Investigating that problem, I discovered that tomcat creates new http
thread and kill the older one continually. The number of http threads is
always between 5 and 10.
I think that my memory problem is related with that thread behavior.

On the same box I'm running another web application in a second tomcat
instance without that memory problem and tomcat does not create new http
thread. The number of simultaneous connections is equivalent on both
applications.

Is it possible to start tomcat in a debug mode to understand why it
create/kill http thread ?
Is is possible that my application crashes the http thread without
releasing the memory used by thesethread ?


Thank you for your help

Xavier

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Windows Installation - Tomcat "Start" and "Stop" in the Start menu

2005-04-08 Thread Magnotta, Salvatore
Ramesh,

There are 2 ways to download Tomcat for Windows -- a zip file (.zip) and an 
installation file (.exe).  You can do either but use the installation file.  It 
will install Tomcat on your machine and add it to the task bar on the right 
with a little feather and either a green right arrow (started) or a red dot 
(stopped).  It will also install shortcuts and icons in Start->Programs->Tomcat 
5.5.

Go into your services list under Control Panel -> Administration Tools and you 
will see the Apache Tomcat service - mine says "Apache Tomcat" - Apache Tomcat 
5.5.7 Server - http://jakarta.apache.org/tomcat/.

You can start and stop it like any other service with the Start and Stop 
buttons provided in Services.  You can even do it from the Command prompt -- 
issue NET START and NET STOP commands (typical Windows service stuff).  If you 
need help with that search the web or look under Windows Help.

When you install Tomcat, it will ask you some basic questions to get you up and 
going.  I don't believe it starts the service automatically but if you follow 
what I have above it will be easy.  When I click the Apache Tomcat feather in 
the task bar area on the right with my left mouse button, I don't get a pop up 
window to start or stop -- I get a Tomcat Properties dialog box where I need to 
click the Start or stop button (it is the Services dialog box that pops up).  
You need to click it with the right mouse button to get a context menu for 
start, stop, configure, about and exit.

The default directory installation is at "C:\Program Files\Apache Software 
Foundation\Tomcat 5.5".  Go under the logs directory and you will find the log 
info.  Go under conf directory and will need to look at the files:
1. server.xml
2. context.xml
3. web.xml
4. workers.properties (this is especially needed when you have to integrate 
Apache Tomcat with the Apache Web Server)

For Apache HTTP Server (Web server) I get an icon on the right like Tomcat but 
I can use my left mouse button to start and stop that service.  I am using both 
on a Windows 2000 Server machine and know through experience how difficult they 
made it to connect the latest Apache Web Server and Tomcat tools, expecially 
when you have to use mod_jk (well documented) and mod_proxy (was not documented 
as well and that is why I had to join this list).

Go to this link -- it will help you tremendously:

http://www.coreservlets.com/Apache-Tomcat-Tutorial/

Good luck,
Sal Magnotta




Hi,

I have downloaded Tomcat 5 on my Windows 2000 machine. I see neither 
"Start Tomcat" nor "Stop Tomcat" programs in the start menu. In case I 
make any changes to my class files that require the restart of the server, 
how do I do so? Also, where can I see the logs of my application? Using 
Tomcat 4.1, I could restart Tomcat by selecting "Start Tomcat" program 
from the start menu which also used to display the logs of the 
application..

Thanks,
Ramesh 

-Original Message-
From: Darryl Wilburn [mailto:[EMAIL PROTECTED]
Sent: Friday, April 08, 2005 7:30 AM
To: Tomcat Users List
Subject: Re: Windows Installation - Tomcat "Start" and "Stop" in the
Start menu


I'm a little new at this, but I downloaded the binaries for 5.5.7 and ran 
through the setup program which installed Apache Tomcat as a service in 
Windows.  In that case, you stop and start it just as you would any other 
service.

Hope this helps,
Darryl




"Malvey, Ramesh \(GE Consumer & Industrial\)" <[EMAIL PROTECTED]> 
04/08/2005 07:17 AM
Please respond to
"Tomcat Users List" 


To

cc

Subject
Windows Installation - Tomcat "Start" and "Stop" in the Start menu






Hi,

I have downloaded Tomcat 5 on my Windows 2000 machine. I see neither 
"Start Tomcat" nor "Stop Tomcat" programs in the start menu. In case I 
make any changes to my class files that require the restart of the server, 
how do I do so? Also, where can I see the logs of my application? Using 
Tomcat 4.1, I could restart Tomcat by selecting "Start Tomcat" program 
from the start menu which also used to display the logs of the 
application..

Thanks,
Ramesh 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Windows Installation - Tomcat "Start" and "Stop" in the Start menu

2005-04-08 Thread Parsons Technical Services
I don't run Tomcat on windows, but the batch files are in the 
$tomcat_home/bin folder. You can create shortcuts to them if needed. I think 
they will not work if Tomcat is running as a service.

Doug
- Original Message - 
From: "Malvey, Ramesh (GE Consumer & Industrial)" <[EMAIL PROTECTED]>
To: 
Sent: Friday, April 08, 2005 7:17 AM
Subject: Windows Installation - Tomcat "Start" and "Stop" in the Start menu

Hi,
I have downloaded Tomcat 5 on my Windows 2000 machine. I see neither "Start 
Tomcat" nor "Stop Tomcat" programs in the start menu. In case I make any 
changes to my class files that require the restart of the server, how do I 
do so? Also, where can I see the logs of my application? Using Tomcat 4.1, I 
could restart Tomcat by selecting "Start Tomcat" program from the start menu 
which also used to display the logs of the application..

Thanks,
Ramesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Windows Installation - Tomcat "Start" and "Stop" in the Start menu

2005-04-08 Thread Darryl Wilburn
I'm a little new at this, but I downloaded the binaries for 5.5.7 and ran 
through the setup program which installed Apache Tomcat as a service in 
Windows.  In that case, you stop and start it just as you would any other 
service.

Hope this helps,
Darryl




"Malvey, Ramesh \(GE Consumer & Industrial\)" <[EMAIL PROTECTED]> 
04/08/2005 07:17 AM
Please respond to
"Tomcat Users List" 


To

cc

Subject
Windows Installation - Tomcat "Start" and "Stop" in the Start menu






Hi,

I have downloaded Tomcat 5 on my Windows 2000 machine. I see neither 
"Start Tomcat" nor "Stop Tomcat" programs in the start menu. In case I 
make any changes to my class files that require the restart of the server, 
how do I do so? Also, where can I see the logs of my application? Using 
Tomcat 4.1, I could restart Tomcat by selecting "Start Tomcat" program 
from the start menu which also used to display the logs of the 
application..

Thanks,
Ramesh 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Windows Installation - Tomcat "Start" and "Stop" in the Start menu

2005-04-08 Thread Malvey, Ramesh \(GE Consumer & Industrial\)
Hi,

I have downloaded Tomcat 5 on my Windows 2000 machine. I see neither "Start 
Tomcat" nor "Stop Tomcat" programs in the start menu. In case I make any 
changes to my class files that require the restart of the server, how do I do 
so? Also, where can I see the logs of my application? Using Tomcat 4.1, I could 
restart Tomcat by selecting "Start Tomcat" program from the start menu which 
also used to display the logs of the application..

Thanks,
Ramesh  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: org.apache.commons.digester.Digester error--- at tomcat start up...

2004-09-30 Thread Phillip Qin
Move resource-ref down to the end. You have to follow the order of each
element.

-Original Message-
From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] 
Sent: September 30, 2004 9:39 AM
To: Tomcat Users List
Subject: org.apache.commons.digester.Digester error--- at tomcat startup...


I added some elements in web.xml on linux machine and i get this error, but
i cannot see any problem with web.xml, the same web.xml works fine on
windows...below is my web.xml...can someone please suggest


Sep 30, 2004 9:03:31 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 26 column 11: The content of element type
"web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*)".
org.xml.sax.SAXParseException: The content of element type "web-app" must
match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*)".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand
lerWrapper.java:236)
at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17
2)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:38
0)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:31
4)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.
java:2049)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:9
33)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
mentFragmentScannerImpl.java:1083)


web.xml...
http://java.sun.com/dtd/web-app_2_3.dtd";>



MyPub XmlRpc

  This is the container to hold the MLRPC calls


DB Connection
jdbc/mydb
javax.sql.DataSource
Container


XmlRpcServlet
XmlRpcServlet


XmlRpcServlet
/rpc

 
~


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


!DSPAM:415c0db286331880812122!


RE: start IE after tomcat start

2004-09-28 Thread Shapira, Yoav

Hi,
Probably with a sleep or delay command in there to allow tomcat time to
start up ;)

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Steffen Heil [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, September 28, 2004 8:40 AM
>To: 'Tomcat Users List'
>Subject: AW: start IE after tomcat start
>
>Hi
>
>Use a script as follows:
>
>--->8 "tomcat.bat" ----
>net stop tomcat
>net start tomcat
>start iexplore.exe http://127.0.0.1:8080
>exit
>--->8 "tomcat.bat" 
>
>Regards,
>  Steffen



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: start IE after tomcat start

2004-09-28 Thread Steffen Heil
Hi

Use a script as follows:

--->8 "tomcat.bat" 
net stop tomcat
net start tomcat
start iexplore.exe http://127.0.0.1:8080
exit
--->8 "tomcat.bat" 

Regards,
  Steffen


smime.p7s
Description: S/MIME cryptographic signature


start IE after tomcat start

2004-09-28 Thread Frank Ebert
Hello,

is their a possibility to start the IE with a page after tomcat is started?
For example:
tomcat started
the
Internet Explorer is automatic starting and open the site
http://localhost:8080/XXX

Greeting

Frank


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: at the tomcat start up...log4j error..

2004-09-11 Thread Shilpa Nalgonda
Thanks a lot jake it works.

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 11, 2004 1:43 AM
To: Tomcat Users List
Subject: Re: at the tomcat start up...log4j error..


At 05:21 PM 9/10/2004 -0400, you wrote:
>log4j:WARN No appenders could be found for logger
>(org.apache.commons.digester.D
>igester).
>log4j:WARN Please initialize the log4j system properly.
>Starting service Tomcat-Standalone
>
>I am getting the above error as the tomcat starts up, i hav elog4j.jar
under
>commom/lib and log4j.proprties
>under webapps/myapps/WEB-INF/lib... any clue..

Tomcat itself won't see the log4j.properties in your webapp.  There are two
issues here:

1.  Log4j tries to perform autoconfiguration at Tomcat startup and isn't
finding a config file.  The solution here is to put a simple
log4j.properties or log4j.xml file in common/classes

2.  Log4j won't perform automatic configuration for your webapp since the
one in common/lib can't see WEB-INF/classes.  In this case, there are a few
different solutions
a.  add a copy of log4j.jar to WEB-INF/lib and your config file to
WEB-INF/classes and autoconfiguration will happen and only affect your
webapp logging.

b.  perform manual configuration at webapp startup and provide Log4j
with the URL of the config file.  However, keep in mind that this will
configure logging not only for your webapp, but also for any other app that
is using Log4j.  This is because Log4j is global to all apps.  The solution
is to do as described in "a" or do "c" below...

c.  use a repository selector so that Log4j can be global, but use a
separate logger repository for each application.  This is certainly more
complex than "a", but it is a good option.  See more here...
http://wiki.apache.org/logging-log4j/AppContainerLogging

If you check out the log4j-sandbox code mentioned at that link, make sure
to checkout the 0_3_alpha tag, as there are certain files that are required
that were removed from the HEAD branch because they were moved into
Log4j-1.3 HEAD.

Jake


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: at the tomcat start up...log4j error..

2004-09-10 Thread Jacob Kjome
At 05:21 PM 9/10/2004 -0400, you wrote:
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.D
igester).
log4j:WARN Please initialize the log4j system properly.
Starting service Tomcat-Standalone
I am getting the above error as the tomcat starts up, i hav elog4j.jar under
commom/lib and log4j.proprties
under webapps/myapps/WEB-INF/lib... any clue..
Tomcat itself won't see the log4j.properties in your webapp.  There are two 
issues here:

1.  Log4j tries to perform autoconfiguration at Tomcat startup and isn't 
finding a config file.  The solution here is to put a simple 
log4j.properties or log4j.xml file in common/classes

2.  Log4j won't perform automatic configuration for your webapp since the 
one in common/lib can't see WEB-INF/classes.  In this case, there are a few 
different solutions
   a.  add a copy of log4j.jar to WEB-INF/lib and your config file to 
WEB-INF/classes and autoconfiguration will happen and only affect your 
webapp logging.

   b.  perform manual configuration at webapp startup and provide Log4j 
with the URL of the config file.  However, keep in mind that this will 
configure logging not only for your webapp, but also for any other app that 
is using Log4j.  This is because Log4j is global to all apps.  The solution 
is to do as described in "a" or do "c" below...

   c.  use a repository selector so that Log4j can be global, but use a 
separate logger repository for each application.  This is certainly more 
complex than "a", but it is a good option.  See more here...
http://wiki.apache.org/logging-log4j/AppContainerLogging

If you check out the log4j-sandbox code mentioned at that link, make sure 
to checkout the 0_3_alpha tag, as there are certain files that are required 
that were removed from the HEAD branch because they were moved into 
Log4j-1.3 HEAD.

Jake
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


at the tomcat start up...log4j error..

2004-09-10 Thread Shilpa Nalgonda
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.D
igester).
log4j:WARN Please initialize the log4j system properly.
Starting service Tomcat-Standalone

I am getting the above error as the tomcat starts up, i hav elog4j.jar under
commom/lib and log4j.proprties
under webapps/myapps/WEB-INF/lib... any clue..



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



MOD_JK2 and Tomcat start page

2004-06-06 Thread stella luna
How to i get the default tomcat index.jsp page to appear using mod_jk2?
I got the examples to work, but mapping a uri to the ROOT does not do 
much for me.

I guess my ultimate goal is to be able to use the manager and admin 
tools.

Anyone have anythoughts on this?
TDG
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat start-up

2004-05-19 Thread Daniel Gibby
I was wondering about this as well... thanks for that info. I think I'll 
disable the admin webapp since I only use the manager webapp and my own.

Shapira, Yoav wrote:
Hi,
You can safely disregard them.  If you use the Admin webapp, you're
using Struts ;)
To configure tomcat to not output these, see
http://jakarta.apache.org/tomcat/faq/misc.html#commonsLoggingLog4j.
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Hollerman Geralyn M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 10:50 AM
To: Tomcat Users List
Subject: Tomcat start-up
I started up my Tomcat 5.0.16 server the other afternoon at about 4pm.
   

A
 

few
hours later, I happened to look at the log, and found these entries:
May 18, 2004 6:42:47 PM org.apache.struts.util.PropertyMessageResources

INFO: Initializing,
   

config='org.apache.struts.taglib.html.LocalStrings',
 

returnNull=true
May 18, 2004 6:42:47 PM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
May 18, 2004 6:42:47 PM org.apache.struts.util.PropertyMessageResources

INFO: Initializing,
   

config='org.apache.struts.taglib.bean.LocalStrings',
 

returnNull=true
May 18, 2004 6:42:47 PM org.apache.struts.util.PropertyMessageResources

INFO: Initializing,
   

config='org.apache.struts.taglib.html.LocalStrings',
 

returnNull=true
They appear to be perfectly normal initialization messages - but I'm
   

not
 

using
Struts. What caused them to appear a few hours after I had started the
server,
rather than at startup with all the other initialization messages? Does
this
indicate a problem, or can I safely disregard these?
Thanks!
--
Lynn Hollerman.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat start-up

2004-05-19 Thread Shapira, Yoav

Hi,
You can safely disregard them.  If you use the Admin webapp, you're
using Struts ;)

To configure tomcat to not output these, see
http://jakarta.apache.org/tomcat/faq/misc.html#commonsLoggingLog4j.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Hollerman Geralyn M [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, May 19, 2004 10:50 AM
>To: Tomcat Users List
>Subject: Tomcat start-up
>
>I started up my Tomcat 5.0.16 server the other afternoon at about 4pm.
A
>few
>hours later, I happened to look at the log, and found these entries:
>
>May 18, 2004 6:42:47 PM org.apache.struts.util.PropertyMessageResources
>
>INFO: Initializing,
config='org.apache.struts.taglib.html.LocalStrings',
>returnNull=true
>May 18, 2004 6:42:47 PM org.apache.struts.util.PropertyMessageResources
>
>INFO: Initializing, config='org.apache.struts.util.LocalStrings',
>returnNull=true
>May 18, 2004 6:42:47 PM org.apache.struts.util.PropertyMessageResources
>
>INFO: Initializing,
config='org.apache.struts.taglib.bean.LocalStrings',
>returnNull=true
>May 18, 2004 6:42:47 PM org.apache.struts.util.PropertyMessageResources
>
>INFO: Initializing,
config='org.apache.struts.taglib.html.LocalStrings',
>returnNull=true
>
>They appear to be perfectly normal initialization messages - but I'm
not
>using
>Struts. What caused them to appear a few hours after I had started the
>server,
>rather than at startup with all the other initialization messages? Does
>this
>indicate a problem, or can I safely disregard these?
>
>Thanks!
>--
>Lynn Hollerman.
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat start-up

2004-05-19 Thread Hollerman Geralyn M
I started up my Tomcat 5.0.16 server the other afternoon at about 4pm. A few 
hours later, I happened to look at the log, and found these entries:

May 18, 2004 6:42:47 PM org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', 
returnNull=true
May 18, 2004 6:42:47 PM org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
May 18, 2004 6:42:47 PM org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, config='org.apache.struts.taglib.bean.LocalStrings', 
returnNull=true
May 18, 2004 6:42:47 PM org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', 
returnNull=true

They appear to be perfectly normal initialization messages - but I'm not using 
Struts. What caused them to appear a few hours after I had started the server, 
rather than at startup with all the other initialization messages? Does this 
indicate a problem, or can I safely disregard these?

Thanks!
--
Lynn Hollerman.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat start problem

2004-05-18 Thread wsedio
Hi all,
I am running Tomcat 4.0.24 on Red Hat Linux 7.3, I installed it from the 
jpackage RPM a few months ago.

Tomcat worked fine until this morning, when I upgraded the control panel 
server (SWsoft Plesk) for the server to a new major version (5.0.5 to 
7.0.2).

The problem is that Tomcat doesn't start anymore as user "tomcat4", it 
starts fine as user "root", I am using the script /usr/bin/dtomcat4 to 
launch it. (I don't like the idea of running Tomcat as root!)

The control panel upgrade procedure did a few tasks on the server and I 
not sure what broke my Tomcat installation.

I cannot figure out what's wrong and log files are not helping much 
(check out below), I took a quick look at tomcat files/directories 
permissions and they look fine to me, but there may be something wrong 
that I am missing ...

Any idea?
Here is the content of the file catalina.out from a successfull start as 
"root":

---
May 18, 2004 6:59:39 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
May 18, 2004 6:59:39 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
May 18, 2004 6:59:39 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
May 18, 2004 6:59:40 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1
May 18, 2004 6:59:46 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
May 18, 2004 6:59:46 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
May 18, 2004 6:59:46 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=4/153  config=/var/tomcat4/conf/jk2.properties
---
Here is the content from a failed start as "tomcat4":
---
May 18, 2004 6:58:49 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
May 18, 2004 6:58:49 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
May 18, 2004 6:58:50 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
May 18, 2004 6:58:51 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1
java.lang.NullPointerException
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(Unknown Source)
at org.apache.catalina.startup.HostConfig.deployApps(Unknown 
Source)
at org.apache.catalina.startup.HostConfig.start(Unknown Source)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown Source)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown 
Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardHost.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardEngine.start(Unknown Source)
at org.apache.catalina.core.StandardService.start(Unknown Source)
at org.apache.catalina.core.StandardServer.start(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
---

Thanks!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat start up at boot time

2004-03-09 Thread Chris Boyce
Just an idea, but would running the startup in a nohup help?

It seemed to help me when Tomcat would mysteriously shutdown (run from
the command line).

On Tue, 2004-03-09 at 13:49, Lott, Carey wrote:
> Howdy,
> I'm hoping one or more of you can help me with this.  I am running Tomcat
> 4.1.27 as a standalone webserver / servlet container on HP-UX 11.  It starts
> fine when it is executed from the command-line.  However, when it executes
> at server boot time it starts and runs for about 3 minutes and then it
> stops.  The logs do not provide any data as to why it stops.  It just shows
> stop procedures taking place.  The process is set up in platform to execute
> as a non-root user.  The environment variables are set up.  Permissions are
> correct.  Also the process will start as root at boot time without errors.  
> I'd love any ideas you might have about the problem.
>  
> Thanks,
> Carey
-- 
Chris Boyce
Berbee
5520 Research Park Drive, Madison WI  53711
608.298.1286 direct
608.288.3007 fax
www.berbee.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat start up at boot time

2004-03-09 Thread Lott, Carey
Howdy,
I'm hoping one or more of you can help me with this.  I am running Tomcat
4.1.27 as a standalone webserver / servlet container on HP-UX 11.  It starts
fine when it is executed from the command-line.  However, when it executes
at server boot time it starts and runs for about 3 minutes and then it
stops.  The logs do not provide any data as to why it stops.  It just shows
stop procedures taking place.  The process is set up in platform to execute
as a non-root user.  The environment variables are set up.  Permissions are
correct.  Also the process will start as root at boot time without errors.  
I'd love any ideas you might have about the problem.
 
Thanks,
Carey


Run my code at tomcat start up

2004-02-19 Thread pabhatia





Hi,

Can i run a code that listens to a socket and reply to those echo requests.
My Problem is that i want to start this when the tomcat starts.

regards
Pankaj




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem at Tomcat Start up

2004-02-11 Thread Francois JEANMOUGIN


From: amit varshney [mailto:[EMAIL PROTECTED]
> Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in
> java.library.path
>   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
>   at java.lang.Runtime.loadLibrary0(Runtime.java:788)
>   at java.lang.System.loadLibrary(System.java:834)
>   at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java)
>   at oracle.jdbc.driver.OracleConnection.(OracleConnection.java)

Hi,

I really dislike Java error messages. I don't think you can find less useful output. 
END OF TROLL.

Anyway, this is not a tomcat issue. If I read it well, your Oracle JDBC driver is 
linked with a library (ocijdbc9). This library is not found in the java.library.path. 
Either fix your java.library.path or your Oracle client installation.

Hope this helps,

François.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem at Tomcat Start up

2004-02-11 Thread amit varshney
I am working on Redhat Linux 9 I am using Oracle 9I for JdBc Realm for user 
authentication.the tomcat server could not started. I am getting the  
following error message in Catalina.out.





Feb 11, 2004 4:25:54 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Feb 11, 2004 4:25:54 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 7197 ms
Feb 11, 2004 4:25:55 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 11, 2004 4:25:55 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
java.lang.reflect.InvocationTargetException
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java)
at oracle.jdbc.driver.OracleConnection.(OracleConnection.java)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:645)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:709)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1117)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:598)
... 6 more
Feb 11, 2004 4:31:10 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Feb 11, 2004 4:31:11 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 6124 ms
Feb 11, 2004 4:31:11 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 11, 2004 4:31:11 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
java.lang.reflect.InvocationTargetException
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java)
at oracle.jdbc.driver.OracleConnection.(OracleConnection.java)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:645)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:709)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1117)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:598)
... 6 more





Thanks in advance

Amit
-
Still single? Click here to find the perfect match.

http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to set the user runnig tomcat ? ( + start/stop problem)

2003-11-24 Thread Timothy Stone
Julien,

If I can just provide you some feedback, at least if only to let you 
know that someone is reading and following this thread. :)

I'm am trying to do the same, not on Linux but Mac OS X. I'm very 
interested in this as well. That said, allow me to provide some comments 
on your post:

Julien Oix wrote:

I used to run a tomcat 4.1.18 rpm on a linux top box, where I put the
TOMCAT_USER variable in a tomcat4.conf file ( nobody user in my case ...)
As an RPM, the tomcat4.conf file probably provides variables that are 
passed to the init.d scripts for startup and shutdown.

Now i try to upgrade to 4.1.29 full archive (jakarta-tomcat-4.1.29.tar.gz)
and I didn't see any doc's on configuring this variable ..
As noted, the tomcat4.conf file is a Linux convention, likely for 
convenience. This file is not going be in the binary distribution of 
Tomcat from Jakarta.

I would like to request a copy of both the conf file and the init.d 
script loaded by the RPM. It may provide clues valuable in your quest 
and my quest on Mac OS X.

In Mac OS X, similar to the init.d scripts, a script is placed in a 
StartupItems folder and executed as root. However, as one might guess, 
this results in the process being owned by root. I have not found a 
working method of changing this, including, as you suggest below:

Is the only solution to execute the startup.sh script as the running user ?
( the command line under a root session could be : su - nobody -c
$CATALINA_HOME/bin/startup.sh )
Thus, the reason I request the conf and init.d script files. Valuable 
clues may be found in each that could help us both.

Another problem:

I start tomcat with the method up in the message:

[EMAIL PROTECTED] # su - nobody -c $CATALINA_HOME/bin/startup.sh
Using CATALINA_BASE:   /var/tomcat
Using CATALINA_HOME:   /var/tomcat
Using CATALINA_TMPDIR: /var/tomcat/temp
Using JAVA_HOME:   /usr/java/java
[EMAIL PROTECTED] # ps -aux
--> gives the process ran by nobody ...

[EMAIL PROTECTED] # su - nobody -c $CATALINA_HOME/bin/shutdown.sh
Using CATALINA_BASE:   /var/tomcat
Using CATALINA_HOME:   /var/tomcat
Using CATALINA_TMPDIR: /var/tomcat/temp
Using JAVA_HOME:   /usr/java/java
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
...snip stacktrace...

And the tomcat processes are always running ...

Any ideas ? ( i added the correct env in /etc/profile for every user)

I'm not sure why you would not be able to stop the process as started. 
Hmmm...

Look forward to hearing from you and others.

Warmest Regards,
Tim
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: tomcat start and stopping

2003-11-24 Thread Shapira, Yoav

Howdy,
Search the archives, these are posted every few weeks.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Tom Bartos [mailto:[EMAIL PROTECTED]
>Sent: Sunday, November 23, 2003 11:40 PM
>To: Tomcat Users List
>Subject: tomcat start and stopping
>
>
>
>Does anyone have any scripts to start and stop tomcat during system
boot
>and shutdown?
>
>Environment Solaris 8 sparc
>Tomcat 4.1.29
>Apache 1.3
>
>Thanks
>-Tom



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to set the user runnig tomcat ? ( + start/stop problem)

2003-11-24 Thread Julien Oix
Hi everyone,

I used to run a tomcat 4.1.18 rpm on a linux top box, where I put the
TOMCAT_USER variable in a tomcat4.conf file ( nobody user in my case ...)

Now i try to upgrade to 4.1.29 full archive (jakarta-tomcat-4.1.29.tar.gz)
and I didn't see any doc's on configuring this variable ..

Is the only solution to execute the startup.sh script as the running user ?
( the command line under a root session could be : su - nobody -c
$CATALINA_HOME/bin/startup.sh )

Another problem:

I start tomcat with the method up in the message:

[EMAIL PROTECTED] # su - nobody -c $CATALINA_HOME/bin/startup.sh
Using CATALINA_BASE:   /var/tomcat
Using CATALINA_HOME:   /var/tomcat
Using CATALINA_TMPDIR: /var/tomcat/temp
Using JAVA_HOME:   /usr/java/java
[EMAIL PROTECTED] # ps -aux

--> gives the process ran by nobody ...

[EMAIL PROTECTED] # su - nobody -c $CATALINA_HOME/bin/shutdown.sh
Using CATALINA_BASE:   /var/tomcat
Using CATALINA_HOME:   /var/tomcat
Using CATALINA_TMPDIR: /var/tomcat/temp
Using JAVA_HOME:   /usr/java/java
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:124)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

And the tomcat processes are always running ...

Any ideas ? ( i added the correct env in /etc/profile for every user)

Thanks in advance :-)

Julien OIX
Service Informatique de Gestion - Université de Nantes
Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65
Web: http://www.univ-nantes.fr
mailto:[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat start and stopping

2003-11-24 Thread Oscar Carrillo
I have some daemon scripts on my tutorial site. I wrote them for Linux but
you should be able to change things if need be. I use chkconfig to make
the sym links for the different runlevels, but you can just read the
chkconfig line comment at the start of the script and do it yourself. I'm
not sure how Solaris handles the runlevels sort of thing (Sys V, etc.),
but it should be fairly simple to adapt.

http://daydream.stanford.edu/#daemons

Oscar

On Sun, 23 Nov 2003, Tom Bartos wrote:

>  
>  
> Does anyone have any scripts to start and stop tomcat during system boot
> and shutdown?
>  
> Environment Solaris 8 sparc
> Tomcat 4.1.29
> Apache 1.3
>  
> Thanks
> -Tom
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat start and stopping

2003-11-23 Thread Tom Bartos
 
 
Does anyone have any scripts to start and stop tomcat during system boot
and shutdown?
 
Environment Solaris 8 sparc
Tomcat 4.1.29
Apache 1.3
 
Thanks
-Tom


RE: Regarding Tomcat Start

2003-09-28 Thread Shawn Zernik
Vishal:

go through the batch file (.bat) and add PAUSE followed by and enter after
the tomcat or java command to see their responces.  Batch filesare just a
series of DOS command made to run in order.  It has a GOTO statments and
enviorment vars for varibles.  The %1 %2 %3 represent the first command line
argument, the soncond, and the third.  It has if statments.  Just follow it
throug and add some pauses, that'll cuase it to wiat for you to press a key
alowing you to see the error messages.

The second command prompt window is called through the first batch fil
through the CMD command.  Look for the CMD or other betch files and add
pauses to those files.  It's calling another command prompt to free the one
you in when Tomcat starts.  This second command prompt is probably giving an
error like "Port already in use" or something else.  Adding the pause will
allow you to see these errors.

Shawn Zernik
Internetwork Consulting
www.internetworkconsulting.net

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 27, 2003 11:54 AM
To: Tomcat Users List
Subject: Regarding Tomcat Start


I have installed jakarta-tomcat-5.0.12. I set jdk and catalina path. I open
a
command prompt, move to the bin directory of tomcat. I run startup.bat. It
opens another prompt that vanishes in seconds. I dont see anything wrong
(warning or error message) at original command prompt.
I move to localhost in browser. Nothing loads up on browser !
How do i know whether tomcat has really started or not ? (I tried to look at
services running, it does not show up there)
I tried to see log floder, but it is just empty. I tried to run shutdown bat
file. It says, connection not found ! Does it help in answering my question?
I am using Windows XP Operating System.
Regards
~Vishal




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Regarding Tomcat Start

2003-09-27 Thread Vy Ho
open the startup.bat, and search for the start somewher near the bottom, 
change the "start" to "run" .  That will not open another window, and 
you can see the error.  chance is that the port is already in use or 
something like that.



Shawn Zernik wrote:

What version of windows are you running, and you might want to at the
"pause" command in the batch file so it6 does not disappear to keep the data
from eunning off the screen.
Shawn Zernik
Internetwork Consulting
www.internetworkconsulting.net
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 27, 2003 11:54 AM
To: Tomcat Users List
Subject: Regarding Tomcat Start
I have installed jakarta-tomcat-5.0.12. I set jdk and catalina path. I open
a
command prompt, move to the bin directory of tomcat. I run startup.bat. It
opens another prompt that vanishes in seconds. I dont see anything wrong
(warning or error message) at original command prompt.
I move to localhost in browser. Nothing loads up on browser !
How do i know whether tomcat has really started or not ? (I tried to look at
services running, it does not show up there)
I tried to see log floder, but it is just empty. I tried to run shutdown bat
file. It says, connection not found ! Does it help in answering my question?
I am using Windows XP Operating System.
Regards
~Vishal


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Regarding Tomcat Start

2003-09-27 Thread Aymeric Alibert
Your server failed to start.
You can see errors by opening a DOS prompt and run 'catalina.bat run'
from the
tomcat bin directory. This should start the server in the same window
instead of 
opening a new window that will closed itself if startup fails.
 
Aymeric.

>>> [EMAIL PROTECTED] 09/27/03 11:53AM >>>
I have installed jakarta-tomcat-5.0.12. I set jdk and catalina path. I
open a 
command prompt, move to the bin directory of tomcat. I run startup.bat.
It 
opens another prompt that vanishes in seconds. I dont see anything
wrong 
(warning or error message) at original command prompt.
I move to localhost in browser. Nothing loads up on browser !
How do i know whether tomcat has really started or not ? (I tried to
look at 
services running, it does not show up there)
I tried to see log floder, but it is just empty. I tried to run
shutdown bat 
file. It says, connection not found ! Does it help in answering my
question?
I am using Windows XP Operating System.
Regards
~Vishal




-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 




RE: Regarding Tomcat Start

2003-09-27 Thread Shawn Zernik
What version of windows are you running, and you might want to at the
"pause" command in the batch file so it6 does not disappear to keep the data
from eunning off the screen.

Shawn Zernik
Internetwork Consulting
www.internetworkconsulting.net

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 27, 2003 11:54 AM
To: Tomcat Users List
Subject: Regarding Tomcat Start


I have installed jakarta-tomcat-5.0.12. I set jdk and catalina path. I open
a
command prompt, move to the bin directory of tomcat. I run startup.bat. It
opens another prompt that vanishes in seconds. I dont see anything wrong
(warning or error message) at original command prompt.
I move to localhost in browser. Nothing loads up on browser !
How do i know whether tomcat has really started or not ? (I tried to look at
services running, it does not show up there)
I tried to see log floder, but it is just empty. I tried to run shutdown bat
file. It says, connection not found ! Does it help in answering my question?
I am using Windows XP Operating System.
Regards
~Vishal




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Regarding Tomcat Start

2003-09-27 Thread vsaxena
I have installed jakarta-tomcat-5.0.12. I set jdk and catalina path. I open a 
command prompt, move to the bin directory of tomcat. I run startup.bat. It 
opens another prompt that vanishes in seconds. I dont see anything wrong 
(warning or error message) at original command prompt.
I move to localhost in browser. Nothing loads up on browser !
How do i know whether tomcat has really started or not ? (I tried to look at 
services running, it does not show up there)
I tried to see log floder, but it is just empty. I tried to run shutdown bat 
file. It says, connection not found ! Does it help in answering my question?
I am using Windows XP Operating System.
Regards
~Vishal




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: invalidate all sessions on tomcat start

2003-03-26 Thread Koes, Derrick

Thanks.

This caused me to look a bit more closely.  The path was missing the
beginning "/".



-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 5:49 PM
To: Tomcat Users List
Subject: RE: invalidate all sessions on tomcat start

oops, 

try 

pathname=""

and set the debug="10" on your standardmanager to see what is going on,

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 2:44 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> 
>   
> Below is my configuration.  SESSIONS.ser is still written despite this
> configuration.
> 
> 
> 
>   
>className="org.apache.catalina.realm.JDBCRealm" connectionName="dora"
> connectionPassword="dora" connectionURL="jdbc:oracle:oci:@doradb"
> digest="MD5" driverName="oracle.jdbc.OracleDriver" 
> roleNameCol="D_RoleId"
> userCredCol="D_Password" userNameCol="D_Username" 
> userRoleTable="Dora_User"
> userTable="Dora_User"/>
>   
>appBase="webapps"
> unpackWARs="true" autoDeploy="true">
>className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true"
> forwardAll="false" noRoot="false"/>
>   
>className="org.apache.catalina.session.StandardManager" pathname="">
>   
>   
>   
>className="org.apache.catalina.logger.FileLogger" directory="logs"
> prefix="localhost_log." suffix=".txt" timestamp="true"/>
>   
>   
> 
> 
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 26, 2003 4:27 PM
> To: Tomcat Users List
> Subject: RE: invalidate all sessions on tomcat start
> 
> or use the persistence manager
> 
>   debug="0"
>  saveOnRestart="false"
>  maxActiveSessions="-1"
>  minIdleSwap="-1"
>  maxIdleSwap="-1"
>  maxIdleBackup="-1">
>    className="org.apache.catalina.session.FileStore"/>
> 
> 
> > -Original Message-
> > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 26, 2003 1:17 PM
> > To: 'Tomcat Users List'
> > Subject: RE: invalidate all sessions on tomcat start
> > 
> > 
> > 
> > Can this be done with a listener?
> > 
> > 
> > -Original Message-
> > From: Koes, Derrick 
> > Sent: Wednesday, March 26, 2003 4:14 PM
> > To: 'Tomcat Users List'
> > Subject: RE: invalidate all sessions on tomcat start
> > 
> > 
> > Either or.  I don't wish anything to timeout, yet I want them to be
> > invalidated when the server is restarted (at shutdown, or 
> at startup).
> > 
> > Thanks,
> > Derrick
> > 
> > -Original Message-
> > From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, March 26, 2003 4:03 PM
> > To: Tomcat Users List
> > Subject: RE: invalidate all sessions on tomcat start
> > 
> > what do mean you by "invalidating" on startup.
> > Startup an instance there are no sessions, unless they have 
> > been saved from
> > a previous run.
> > 
> > so are you really asking how to prevent them being saved on 
> shutdown?
> > 
> > Filip
> > 
> > > -Original Message-
> > > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, March 26, 2003 12:59 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: invalidate all sessions on tomcat start
> > > 
> > > 
> > > 
> > > Is there a way to invalidate all sessions on tomcat startup?
> > > Can someone provide an example?
> > > 
> > > Thanks,
> > > Derrick
> > > 
> > > 
> > > 
> > > This electronic transmission is strictly confidential to 
> > > Smith & Nephew and
> > > intended solely for the ad

RE: invalidate all sessions on tomcat start

2003-03-26 Thread Filip Hanik
oops, 

try 

pathname=""

and set the debug="10" on your standardmanager to see what is going on,

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 2:44 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> 
>   
> Below is my configuration.  SESSIONS.ser is still written despite this
> configuration.
> 
> 
> 
>   
>className="org.apache.catalina.realm.JDBCRealm" connectionName="dora"
> connectionPassword="dora" connectionURL="jdbc:oracle:oci:@doradb"
> digest="MD5" driverName="oracle.jdbc.OracleDriver" 
> roleNameCol="D_RoleId"
> userCredCol="D_Password" userNameCol="D_Username" 
> userRoleTable="Dora_User"
> userTable="Dora_User"/>
>   
>appBase="webapps"
> unpackWARs="true" autoDeploy="true">
>className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true"
> forwardAll="false" noRoot="false"/>
>   
>className="org.apache.catalina.session.StandardManager" pathname="">
>   
>   
>   
>className="org.apache.catalina.logger.FileLogger" directory="logs"
> prefix="localhost_log." suffix=".txt" timestamp="true"/>
>   
>   
> 
> 
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 26, 2003 4:27 PM
> To: Tomcat Users List
> Subject: RE: invalidate all sessions on tomcat start
> 
> or use the persistence manager
> 
>   debug="0"
>  saveOnRestart="false"
>      maxActiveSessions="-1"
>  minIdleSwap="-1"
>  maxIdleSwap="-1"
>  maxIdleBackup="-1">
>    className="org.apache.catalina.session.FileStore"/>
> 
> 
> > -Original Message-
> > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 26, 2003 1:17 PM
> > To: 'Tomcat Users List'
> > Subject: RE: invalidate all sessions on tomcat start
> > 
> > 
> > 
> > Can this be done with a listener?
> > 
> > 
> > -Original Message-
> > From: Koes, Derrick 
> > Sent: Wednesday, March 26, 2003 4:14 PM
> > To: 'Tomcat Users List'
> > Subject: RE: invalidate all sessions on tomcat start
> > 
> > 
> > Either or.  I don't wish anything to timeout, yet I want them to be
> > invalidated when the server is restarted (at shutdown, or 
> at startup).
> > 
> > Thanks,
> > Derrick
> > 
> > -Original Message-
> > From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, March 26, 2003 4:03 PM
> > To: Tomcat Users List
> > Subject: RE: invalidate all sessions on tomcat start
> > 
> > what do mean you by "invalidating" on startup.
> > Startup an instance there are no sessions, unless they have 
> > been saved from
> > a previous run.
> > 
> > so are you really asking how to prevent them being saved on 
> shutdown?
> > 
> > Filip
> > 
> > > -Original Message-
> > > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, March 26, 2003 12:59 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: invalidate all sessions on tomcat start
> > > 
> > > 
> > > 
> > > Is there a way to invalidate all sessions on tomcat startup?
> > > Can someone provide an example?
> > > 
> > > Thanks,
> > > Derrick
> > > 
> > > 
> > > 
> > > This electronic transmission is strictly confidential to 
> > > Smith & Nephew and
> > > intended solely for the addressee.  It may contain 
> > > information which is
> > > covered by legal, professional or other privilege.  If you 
> > are not the
> > > intended addressee, or someone authorized by the intended 
> > addressee to
> > > receive transmissions o

RE: invalidate all sessions on tomcat start

2003-03-26 Thread Koes, Derrick


Below is my configuration.  SESSIONS.ser is still written despite this
configuration.  








  
  
  
  







-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 4:27 PM
To: Tomcat Users List
Subject: RE: invalidate all sessions on tomcat start

or use the persistence manager


  


> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 1:17 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> 
> Can this be done with a listener?
> 
> 
> -Original Message-
> From: Koes, Derrick 
> Sent: Wednesday, March 26, 2003 4:14 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> Either or.  I don't wish anything to timeout, yet I want them to be
> invalidated when the server is restarted (at shutdown, or at startup).
> 
> Thanks,
> Derrick
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 26, 2003 4:03 PM
> To: Tomcat Users List
> Subject: RE: invalidate all sessions on tomcat start
> 
> what do mean you by "invalidating" on startup.
> Startup an instance there are no sessions, unless they have 
> been saved from
> a previous run.
> 
> so are you really asking how to prevent them being saved on shutdown?
> 
> Filip
> 
> > -Original Message-
> > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 26, 2003 12:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: invalidate all sessions on tomcat start
> > 
> > 
> > 
> > Is there a way to invalidate all sessions on tomcat startup?
> > Can someone provide an example?
> > 
> > Thanks,
> > Derrick
> > 
> > 
> > 
> > This electronic transmission is strictly confidential to 
> > Smith & Nephew and
> > intended solely for the addressee.  It may contain 
> > information which is
> > covered by legal, professional or other privilege.  If you 
> are not the
> > intended addressee, or someone authorized by the intended 
> addressee to
> > receive transmissions on behalf of the addressee, you must 
> not retain,
> > disclose in any form, copy or take any action in reliance on this
> > transmission.  If you have received this transmission in 
> error, please
> > notify the sender as soon as possible and destroy this message.
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMA

RE: invalidate all sessions on tomcat start

2003-03-26 Thread Filip Hanik
or use the persistence manager


  


> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 1:17 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> 
> Can this be done with a listener?
> 
> 
> -Original Message-
> From: Koes, Derrick 
> Sent: Wednesday, March 26, 2003 4:14 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> Either or.  I don't wish anything to timeout, yet I want them to be
> invalidated when the server is restarted (at shutdown, or at startup).
> 
> Thanks,
> Derrick
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 26, 2003 4:03 PM
> To: Tomcat Users List
> Subject: RE: invalidate all sessions on tomcat start
> 
> what do mean you by "invalidating" on startup.
> Startup an instance there are no sessions, unless they have 
> been saved from
> a previous run.
> 
> so are you really asking how to prevent them being saved on shutdown?
> 
> Filip
> 
> > -Original Message-
> > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 26, 2003 12:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: invalidate all sessions on tomcat start
> > 
> > 
> > 
> > Is there a way to invalidate all sessions on tomcat startup?
> > Can someone provide an example?
> > 
> > Thanks,
> > Derrick
> > 
> > 
> > 
> > This electronic transmission is strictly confidential to 
> > Smith & Nephew and
> > intended solely for the addressee.  It may contain 
> > information which is
> > covered by legal, professional or other privilege.  If you 
> are not the
> > intended addressee, or someone authorized by the intended 
> addressee to
> > receive transmissions on behalf of the addressee, you must 
> not retain,
> > disclose in any form, copy or take any action in reliance on this
> > transmission.  If you have received this transmission in 
> error, please
> > notify the sender as soon as possible and destroy this message.
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: invalidate all sessions on tomcat start

2003-03-26 Thread Filip Hanik
oops, sent the wrong link to you :)

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 1:17 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> 
> Can this be done with a listener?
> 
> 
> -Original Message-
> From: Koes, Derrick 
> Sent: Wednesday, March 26, 2003 4:14 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> Either or.  I don't wish anything to timeout, yet I want them to be
> invalidated when the server is restarted (at shutdown, or at startup).
> 
> Thanks,
> Derrick
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 26, 2003 4:03 PM
> To: Tomcat Users List
> Subject: RE: invalidate all sessions on tomcat start
> 
> what do mean you by "invalidating" on startup.
> Startup an instance there are no sessions, unless they have 
> been saved from
> a previous run.
> 
> so are you really asking how to prevent them being saved on shutdown?
> 
> Filip
> 
> > -Original Message-
> > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 26, 2003 12:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: invalidate all sessions on tomcat start
> > 
> > 
> > 
> > Is there a way to invalidate all sessions on tomcat startup?
> > Can someone provide an example?
> > 
> > Thanks,
> > Derrick
> > 
> > 
> > 
> > This electronic transmission is strictly confidential to 
> > Smith & Nephew and
> > intended solely for the addressee.  It may contain 
> > information which is
> > covered by legal, professional or other privilege.  If you 
> are not the
> > intended addressee, or someone authorized by the intended 
> addressee to
> > receive transmissions on behalf of the addressee, you must 
> not retain,
> > disclose in any form, copy or take any action in reliance on this
> > transmission.  If you have received this transmission in 
> error, please
> > notify the sender as soon as possible and destroy this message.
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: invalidate all sessions on tomcat start

2003-03-26 Thread Filip Hanik
still not sure what you are trying to achieve and why.

if you don't want sessions to be saved to disk on shutdown, just simply add the 
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 1:17 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> 
> Can this be done with a listener?
> 
> 
> -Original Message-
> From: Koes, Derrick 
> Sent: Wednesday, March 26, 2003 4:14 PM
> To: 'Tomcat Users List'
> Subject: RE: invalidate all sessions on tomcat start
> 
> 
> Either or.  I don't wish anything to timeout, yet I want them to be
> invalidated when the server is restarted (at shutdown, or at startup).
> 
> Thanks,
> Derrick
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 26, 2003 4:03 PM
> To: Tomcat Users List
> Subject: RE: invalidate all sessions on tomcat start
> 
> what do mean you by "invalidating" on startup.
> Startup an instance there are no sessions, unless they have 
> been saved from
> a previous run.
> 
> so are you really asking how to prevent them being saved on shutdown?
> 
> Filip
> 
> > -Original Message-
> > From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 26, 2003 12:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: invalidate all sessions on tomcat start
> > 
> > 
> > 
> > Is there a way to invalidate all sessions on tomcat startup?
> > Can someone provide an example?
> > 
> > Thanks,
> > Derrick
> > 
> > 
> > 
> > This electronic transmission is strictly confidential to 
> > Smith & Nephew and
> > intended solely for the addressee.  It may contain 
> > information which is
> > covered by legal, professional or other privilege.  If you 
> are not the
> > intended addressee, or someone authorized by the intended 
> addressee to
> > receive transmissions on behalf of the addressee, you must 
> not retain,
> > disclose in any form, copy or take any action in reliance on this
> > transmission.  If you have received this transmission in 
> error, please
> > notify the sender as soon as possible and destroy this message.
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: invalidate all sessions on tomcat start

2003-03-26 Thread Koes, Derrick

Can this be done with a listener?


-Original Message-
From: Koes, Derrick 
Sent: Wednesday, March 26, 2003 4:14 PM
To: 'Tomcat Users List'
Subject: RE: invalidate all sessions on tomcat start


Either or.  I don't wish anything to timeout, yet I want them to be
invalidated when the server is restarted (at shutdown, or at startup).

Thanks,
Derrick

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 4:03 PM
To: Tomcat Users List
Subject: RE: invalidate all sessions on tomcat start

what do mean you by "invalidating" on startup.
Startup an instance there are no sessions, unless they have been saved from
a previous run.

so are you really asking how to prevent them being saved on shutdown?

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: invalidate all sessions on tomcat start
> 
> 
> 
> Is there a way to invalidate all sessions on tomcat startup?
> Can someone provide an example?
> 
> Thanks,
> Derrick
> 
> 
> 
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: invalidate all sessions on tomcat start

2003-03-26 Thread Koes, Derrick

Either or.  I don't wish anything to timeout, yet I want them to be
invalidated when the server is restarted (at shutdown, or at startup).

Thanks,
Derrick

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 4:03 PM
To: Tomcat Users List
Subject: RE: invalidate all sessions on tomcat start

what do mean you by "invalidating" on startup.
Startup an instance there are no sessions, unless they have been saved from
a previous run.

so are you really asking how to prevent them being saved on shutdown?

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: invalidate all sessions on tomcat start
> 
> 
> 
> Is there a way to invalidate all sessions on tomcat startup?
> Can someone provide an example?
> 
> Thanks,
> Derrick
> 
> 
> 
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: invalidate all sessions on tomcat start

2003-03-26 Thread Filip Hanik
what do mean you by "invalidating" on startup.
Startup an instance there are no sessions, unless they have been saved from a previous 
run.

so are you really asking how to prevent them being saved on shutdown?

Filip

> -Original Message-
> From: Koes, Derrick [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: invalidate all sessions on tomcat start
> 
> 
> 
> Is there a way to invalidate all sessions on tomcat startup?
> Can someone provide an example?
> 
> Thanks,
> Derrick
> 
> 
> 
> This electronic transmission is strictly confidential to 
> Smith & Nephew and
> intended solely for the addressee.  It may contain 
> information which is
> covered by legal, professional or other privilege.  If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission.  If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



invalidate all sessions on tomcat start

2003-03-26 Thread Koes, Derrick

Is there a way to invalidate all sessions on tomcat startup?
Can someone provide an example?

Thanks,
Derrick



This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem when tomcat start

2003-03-21 Thread Yannis Avenel
Hi all,

I've got a problem runnig catalina after using the install.pl script.
I'm using jakarta-tomcat-4.1.18, j2sdk1.4.1_02 and opennms-1.0.2-1
I have put tomcat in /usr/local/tomcat , jdk in/usr/local/java and openNMS 
in /usr/local/openNMS.
I have make a link from /usr/local/openNMS/webapps/onpennms to 
/usr/local/tomcat/webapps/opennms

I put the line "$serverxml  = '/usr/local/tomcat/conf/server.xml';" in 
the install.pl" and here is my tomcat's server.xml lines for opennms:


   
   


(I try with homeDir="/usr/local/openNMS" and have the same result)

And i have the following output in my catalina.out :

20 mars 2003 10:43:00 org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
20 mars 2003 10:43:00 org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
20 mars 2003 10:43:01 org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
20 mars 2003 10:43:02 org.apache.commons.digester.Digester startElement
GRAVE: Begin event threw exception
java.lang.ClassNotFoundException: org.opennms.web.log.Log4JLogger
at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:992)
at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
at 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252)
at 
org.apache.commons.digester.Digester.startElement(Digester.java:1237)
at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221)
at 
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:595)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.start: java.lang.ClassNotFoundException: 
org.opennms.web.log.Log4JLogger
java.lang.ClassNotFoundException: org.opennms.web.log.Log4JLogger
at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)
at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)
at 
org.apache.commons.digester.Digester.startElement(Digester.java:1240)
at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221)
at 
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:595)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M

Tomcat Start

2003-01-21 Thread Ghershony, Arie
Starting Tomcat:

when I try to run from : %catalina_home%\bin\startup.bat  it will sytart and
then stop.
It only starts from the menu?  How can I fix that.?

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 4:55 PM
To: 'Ravindra K. Bhat '
Cc: 'Tomcat Users List '
Subject: RE: Web Pages Loads Slowly (fwd)


 
Define "slowly".  ;)  Are we talking milliseconds?  Seconds?


John

-Original Message-
From: Ravindra K. Bhat
To: Ravindra K. Bhat
Cc: Tomcat Users List
Sent: 1/21/03 3:11 PM
Subject: RE: Web Pages Loads Slowly (fwd)


hi:

I chkecked out all the directories..and log file paths..they all seem to
be in order...

My pages load smoothly when i use domain_name:8080/servlet but when I
use
just the domain name it still loads a little slower... 

Any ideas? I am running apache 2.1 w/ tomcat 4.0.6 w/ mod_jk
Ravi

-- Forwarded message --
Date: Tue, 21 Jan 2003 13:39:43 -0500
From: "Turner, John" <[EMAIL PROTECTED]>
Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
Subject: RE: Web Pages Loads Slowly


Something is messed up...probably DNS-related (host name lookup for log
entries, etc).  Apache serving HTML pages is, for the majority of
purposes,
instantaneous.  If there's a slow down, it's external to Apache or
something
in your config.

John

> -Original Message-
> From: Ravindra K. Bhat [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 1:33 PM
> To: Ravindra K. Bhat
> Cc: Tomcat Users List
> Subject: Web Pages Loads Slowly
> 
> 
> Hi:
> 
> Any ideas on how to increase the loading speed of 
> html(static) pages on
> Apache..I have integrated Apache 2.1 with tomcat 4.0.6..the 
> servelts/jsp
> loads fine but the html pages seem to be loading slowly..
> 
> Thanks..
> Ravi  
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Run Servlet on Tomcat Start-up.

2002-12-10 Thread Noel J. Bergman
See the load-on-startup element in the Servlet 2.3 specification.  There is
a commented out example in webapps/webdav/web-inf/web.xml.

--- Noel


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Run Servlet on Tomcat Start-up.

2002-12-10 Thread vim m

Hi:

I would like to automatically run a servlet everytime my Tomcat server is restarted. 
Is there any way that could be done? 

Any pointers appreciated.

Thanks.

 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Tomcat start detection

2002-10-07 Thread BARBERA Florian

Hi,

I launch Tomcat 3.2 as a thread in a java application. The tomcat logs
appear in a window of my application. My problem is that I need to launch an
action as soon as Tomcat is ready to receive requests and not before.

Is there a way to ask tomcat if he has ended to launch itself ? Or if he has
terminated on an error ? I would like to avoid to read the stdout and stderr
of tomcat and to look for a string indicating that it is the end.

Thanks in advance

Florian BARBERA
COFRAMI
à AIRBUS FRANCE - Guynemer
téléphone : 05 61 93 92 49


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: tomcat start up errors

2002-09-23 Thread Anthony Milbourne

Hi 

I had a problem involving errno = 146 (Connection refused).  It turned out
to be because I had an error in my workers.properties file.  Check that this
file only mentions connectors that you actually have.  Specifically: check
that there isn't config for the ajp14 connector in there.  Also check that
the port numbers in this file tally with the port numbers in server.xml.

Hope that helps,

Anthony.

> -Original Message-
> From: Kathleen Flores [SMTP:[EMAIL PROTECTED]]
> Sent: 20 September 2002 17:42
> To:   Tomcat Users List
> Subject:  tomcat start up errors
> 
> 
> 
> Hi All,
> 
> When I startup tomcat, I receive the following error multiple
> times...until
> what seems to be within 3 hours, tomcat stops running.  Hence, I need to
> restart tomcat every 3 hours - what a pai! =) Does anyone know what these
> error messages mean and how I can prevent this from happening ?
> 
> 
> [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
> NULL par
> ameter
> [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
> NULL p
> arameters
> [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
> NULL par
> ameter
> [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
> NULL par
> ameter
> [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
> NULL p
> arameters
> [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
> NULL par
> ameter
> [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
> NULL p
> arameters
> [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
> [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
> [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
> [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
> [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
> [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
> [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> 
> 
> Thanks,
> 
> Kat
> 
> 
> 
>  ERG Group --
>  The contents of this email and any attachments are confidential
>  and may only be read by the intended recipient.
> -
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: tomcat start up errors

2002-09-22 Thread Sexton, George

Look around for files named hs_err_pidN.log. This is the crash log the
JVM will write when it falls over.

-Original Message-
From: Kathleen Flores [mailto:[EMAIL PROTECTED]]
Sent: 20 September, 2002 1:29 PM
To: Tomcat Users List
Subject: RE: tomcat start up errors



Thank you for your reply...

When this happens, the java process is not running tomcat.  And I just
verified that the only connector in server.xml is the AJPconnector.


Thanks again,

Kat



:::
Ahh, but you didn't say what JVM...

Seriously, the more complete the initial message is the more likely you are
to get a quick, accurate answer.

It looks to me like these errors are coming from mod_jk trying to connect
to
Tomcat, so they appear to be a symptom of another problem. Is the Java
process still running Tomcat when this happens? Does Tomcat accept
connections on another connector like the HTTP 1.0 connector?

If the JVM is crashing, you need to find the crash logs and troubleshoot
it.




 ERG Group --
 The contents of this email and any attachments are confidential
 and may only be read by the intended recipient.
-


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: tomcat start up errors

2002-09-20 Thread Kathleen Flores


Thank you for your reply...

When this happens, the java process is not running tomcat.  And I just
verified that the only connector in server.xml is the AJPconnector.


Thanks again,

Kat


:::
Ahh, but you didn't say what JVM...

Seriously, the more complete the initial message is the more likely you are
to get a quick, accurate answer.

It looks to me like these errors are coming from mod_jk trying to connect
to
Tomcat, so they appear to be a symptom of another problem. Is the Java
process still running Tomcat when this happens? Does Tomcat accept
connections on another connector like the HTTP 1.0 connector?

If the JVM is crashing, you need to find the crash logs and troubleshoot
it.




 ERG Group --
 The contents of this email and any attachments are confidential
 and may only be read by the intended recipient.
-


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: tomcat start up errors

2002-09-20 Thread Sexton, George

Ahh, but you didn't say what JVM...

Seriously, the more complete the initial message is the more likely you are
to get a quick, accurate answer.

It looks to me like these errors are coming from mod_jk trying to connect to
Tomcat, so they appear to be a symptom of another problem. Is the Java
process still running Tomcat when this happens? Does Tomcat accept
connections on another connector like the HTTP 1.0 connector?

If the JVM is crashing, you need to find the crash logs and troubleshoot it.

George Sexton
MH Software, Inc.
Voice: 303 438 9585
http://www.mhsoftware.com


-Original Message-
From: Kathleen Flores [mailto:[EMAIL PROTECTED]]
Sent: 20 September, 2002 11:35 AM
To: Tomcat Users List
Subject: RE: tomcat start up errors



Okay, so to append to my original email -

my system environment is...

tomcat v3.2.3 and apache v.1.3.26 both running on one server - a sun box
with solaris 9 os.

I hope that's better...sorry!

Best Regards,

Kat


 ERG Group --
 The contents of this email and any attachments are confidential
 and may only be read by the intended recipient.
-


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: tomcat start up errors

2002-09-20 Thread Kathleen Flores


Okay, so to append to my original email -

my system environment is...

tomcat v3.2.3 and apache v.1.3.26 both running on one server - a sun box
with solaris 9 os.

I hope that's better...sorry!

Best Regards,

Kat


 ERG Group --
 The contents of this email and any attachments are confidential
 and may only be read by the intended recipient.
-


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: tomcat start up errors

2002-09-20 Thread Sexton, George

In order for you to get the help you would really like, it would be helpful
if you could read this article and repost your question.

http://www.tuxedo.org/~esr/faqs/smart-questions.html

George Sexton
MH Software, Inc.
Voice: 303 438 9585
http://www.mhsoftware.com


-Original Message-
From: Kathleen Flores [mailto:[EMAIL PROTECTED]]
Sent: 20 September, 2002 10:42 AM
To: Tomcat Users List
Subject: tomcat start up errors




Hi All,

When I startup tomcat, I receive the following error multiple times...until
what seems to be within 3 hours, tomcat stops running.  Hence, I need to
restart tomcat every 3 hours - what a pai! =) Does anyone know what these
error messages mean and how I can prevent this from happening ?


[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL par
ameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL p
arameters
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL par
ameter
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL par
ameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL p
arameters
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL par
ameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL p
arameters
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1


Thanks,

Kat



 ERG Group --
 The contents of this email and any attachments are confidential
 and may only be read by the intended recipient.
-


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




tomcat start up errors

2002-09-20 Thread Kathleen Flores



Hi All,

When I startup tomcat, I receive the following error multiple times...until
what seems to be within 3 hours, tomcat stops running.  Hence, I need to
restart tomcat every 3 hours - what a pai! =) Does anyone know what these
error messages mean and how I can prevent this from happening ?


[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL par
ameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL p
arameters
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL par
ameter
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL par
ameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL p
arameters
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL par
ameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL p
arameters
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1


Thanks,

Kat



 ERG Group --
 The contents of this email and any attachments are confidential
 and may only be read by the intended recipient.
-


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




tomcat start error

2002-09-09 Thread Halil AKINCI

Hi,

I've installed tomcat 3.3.1 and j2sdk1.4 on windows 98 machine. I have an application 
that includes following web.xml file. Tomcat is running, but before the running, some 
error lines display on DOS console, but tomcat is running correctly. This is the error 
lines;


2002-09-10 09:30:37 - Ctx(/VT) : web.xml : Error org.xml.sax.SAXParseException: 
Element type "session-timeout" is not declared.
2002-09-10 09:30:37 - Ctx(/VT) : Line 4 /web-app/
2002-09-10 09:30:37 - Ctx(/VT) : web.xml : Error org.xml.sax.SAXParseException: 
Element type "servlet" is not declared.
2002-09-10 09:30:37 - Ctx(/VT) : Line 6 /web-app/
2002-09-10 09:30:37 - Ctx(/VT) : web.xml : Error org.xml.sax.SAXParseException: 
Element type "servlet-name" is not declared.


2002-09-10 09:30:37 - Http10Interceptor: Starting on 8080
2002-09-10 09:30:37 - Ajp12Interceptor: Starting on 8007
2002-09-10 09:30:37 - Ajp13Interceptor: Starting on 8009
EmbededTomcat: Startup time 600


This is my web.xml file;


  Database App
  30
  
  
VT
VTServlet
  

  
 VT
 VTServlet
  



What is the problem? How can I eliminate this error line?



Tomcat Start Problems

2002-03-25 Thread Ryan Heaton

I'm on RedHat 7.1, and I've never been able to get Tomcat 4 to start listening for 
incoming connections.

I've installed both by RPM and by simply unpacking the binary distribution and I get 
the same problem.  I've got the jdk1.3.1_02 directory set correctly as $JAVA_HOME in 
the environment, I've got my $CLASSPATH set to servlet.jar (and nothing else), and 
I've got $JAVA_PATH set to jdk1.3.1_02/bin.

I run the standard init script in /etc/init.d/tomcat4 to start/stop/restart tomcat.  
Everything appears to run with no hitch whatsoever, but nothing listens on port 8180 
or any other standard tomcat port for that matter (according to netstat -a) after 
startup.  There's nothing in catalina.out--completely empty (making me assume no 
hitches).  There are no other logs in the 'logs' directory that are created after 
startup.

When I run the init script, I do so as root, but from what I can tell that's how I 
should start it up.

Anyone have any ideas here?  I'm stumped.



Windows/NT + ZoneAlarm + Apache Jakarta Tomcat - start/stop - 2nd time - failure

2001-08-28 Thread Rolf Sponsel

Hi All,

I've identified the following problem when starting and stopping
the Apache Jakarta Tomcat Application in stand-alone mode, under
control of the Software Firewall ZoneAlarm on Windows/NT and just
wanted to let you know about my findings.

This bug(?) has been reported to the Apache Bugzilla Database,
the Java Developer Connection's Bug Database, and to ZoneLabs.

Maybe it is the root of several of the problems being reported
by others for Tomcat.

Don't panic - yes, it is an awful lot of text, hmm, but ... ;-)

Rolf


Start of Bug Report:

Windows/NT + ZoneAlarm + Apache Jakarta Tomcat - start/stop - 2nd time

  =>java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
at java.net.Socket.(Socket.java:273)
at java.net.Socket.(Socket.java:100)
at org.apache.tomcat.task.StopTomcat.execute(StopTomcat.java:104)
at org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:267)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:174)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

  This exception is thrown, under the conditions described below, when
  trying to stop the Jakarta Tomcat Servlet Container, when running in
  standalone mode on Windows/NT 4.0 (build 1381, sp3) with ZoneAlarm 2.6
  (build 2.6.231) Software Firewall installed.

  Conditions:

*). (without quotes, at DOS command level in a Command Prompt window)

1). Install or make sure Java SDK v3.1 from Sun is installed.

2). Install or make sure ZoneAlarm Firewall Software is installed.
3). Make sure ZoneAlarm gives all right to JVM, under 'Programs' tab.
i.e. java.exe [Local:Allow connect {true}, Allow Server {true}]
  [Internet: Allow connect {true}, Allow Server {true}]

4). Make a default vanilla installation of Jakarta Tomcat v3.2.3,
by default running ajpv12 connection handler on port 8007,
and http connection handler on port 8080 (see logs).

5). Edit the 'Tomcat.bat' file in '\bin'
(let's not use the 'startup' and 'shutdown' scripts,
 as they only forward their resposibilities to the
 'tomcat.bat' script anyway). 

After the header rows append:

rem --- Explicitly Define Environment Variables ---

set CLASSPATH=
set JAVA_HOME=yourPathToJavaVirtualMachineGoesHere
set TOMCAT_HOME=yourPathToTomcatHomeGoesHere

... to clear the default system classpath, and
specifying the directory of where you have
installed your Java Virtual Machine and Tomcat.

Optionally, after the header rows append:

rem define all variables local to script only
setlocal

Optionally, after row ':finish' at the end of the file append:

rem end of locally defined variables
endlocal

Done.

6). Reboot (to ensure all ports and connections are closed, etc)

7). Change directory to , i.e. Tomcat install directory.
8). Look at status of ports by entering(*): 'netstat -an | find ":80"'
This will show an empty line as result (at least after a reboot,
    and unless another process opens anything on a port 80### )
9). Start Tomcat by entering(*): 'bin\tomcat start'
This will start up the Tomcat Server in another Command Window.
10) Now look at status of ports by entering: 'netstat -an | find ":80"'
=>  TCP 0.0.0.0:80070.0.0.0:0   LISTENING
TCP 0.0.0.0:80800.0.0.0:0   LISTENING
# ok - Tomcat started and ready! - see log files.   
11) Now, without even attempting to make any http access to Tomcat,
shut it down by entering(*): 'bin\tomcat stop'
This will stop the Tomcat Server and closing the Tomcat Window
and everyting seems to be okey. - Doesn't it? But.
12) Once again check the status of the ports, which will show
something like this:
=>  TCP 0.0.0.0:80070.0.0.0:0   LISTENING
TCP 127.0.0.1:1030  127.0.0.1:8007  TIME_WAIT
# Does this look okey? - No I don't think so. The connection
# handler seems still be listening for connections. Doesn't it?
13) If we re-check the statu

Re: How to make a connection pool when Tomcat start?

2001-08-21 Thread P.Miller

Hi,

create a connection pool in the init-method of a servlet.
In web.xml setup this servlet to .
Though the init()-method of the servlet will be executed during
tomcat-startup.

Hth
Peter

hongx wrote:
> 
> ¡¡How can I make a connection pool when Tomcat start?



How to make a connection pool when Tomcat start?

2001-08-21 Thread A.L.

This is just one possible way, but go to
http://www.Javaexchange.com there is a good example
there.



__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



How to make a connection pool when Tomcat start?

2001-08-21 Thread hongx

¡¡How can I make a connection pool when Tomcat start?




tomcat start

2001-07-05 Thread Mario Meisenberger

hi,


I am new to tomcat but not new to servlets and jserv.
but i cannot get my project to live with tomcat.


CONFIGURATION
=

Apache
==
htpd.conf
-
I added the following line
Include "G:/Programme/ApacheGroup/apache322/conf/mod_jk.conf"

mod_jk
--
I use the auto-conf generated file rename to mod_jk.conf

I only changed the AJP from 12 to 13 within the profiler servlet jkmount


JkMount /*.jsp ajp12
JkMount /servlet/* ajp12

#
# Auto configuration for the /profiler context starts.
#

#
# The following line makes apache aware of the location of the /profiler
context
#
Alias /profiler "G:/Programme/ApacheGroup/tomcat322/webapps/labor"

Options Indexes FollowSymLinks


#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /profiler/servlet/* ajp13
JkMount /profiler/*.jsp ajp12

#
# The following line prohibits users from directly accessing WEB-INF
#

AllowOverride None
deny from all

#
# Use Directory too. On Windows, Location doesn't work unless case matches
#

AllowOverride None
deny from all


#
# The following line prohibits users from directly accessing META-INF
#

AllowOverride None
deny from all

#
# Use Directory too. On Windows, Location doesn't work unless case matches
#

AllowOverride None
deny from all

--


Tomcat
==

Server.xml
--

I added the following connector






I added the following context




Web.xml
---

I changed nothing


MY SERVLET APPLICATION
==

I generated the following directories in /tomcat322/webapps

/profiler
subdirectories and files
index.html
hellol.html
/META-INF
/WEB-INF
/classes
/web.xml

by the way both static pages work fine when i type
http://localhost/profiler/
http://localhost/profiler/hello.html

my own web.xml
--




http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>




profiler


com/labor/profiler/iface/servlets/Pr_BE_Servlet.class


param1
value1








profiler


/profiler/*




  
 a
 /foo1/*
 /bar1/*
 GET
 POST
  

  
 a
 /foo2/*
 /bar2/*
  

  
 manager
 role1
  

  
 CONFIDENTIAL
  






yes thats it ;)

can anyone tell me where to change something to get the thing run?
or simply an error message that tells me anything ;))

thanks in advance

Mario






RE: tomcat start fails

2001-06-11 Thread Randy Layman


Are you getting any error messages?  Do you see a widnow appear and
disappear really quickly?

I would suggest trying "tomcat run" instead, which will launch to
the same DOS window and probably give you more information about your
problem.

Randy


> -Original Message-
> From: Valerie BARRAUD [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 08, 2001 10:16 PM
> To: [EMAIL PROTECTED]
> Subject: tomcat start fails
> 
> 
> Hi folks,
> 
> I've just finished to install Tomcat and launched
>tomcat start
> but the promised Tomcat window does not appear.
> 
> My file tomcat.bat (here after) seems to be ok. Any idea ?
> ---
> tomcat.bat
> ---
> @echo off
> rem A batch file to start/stop tomcat server.
> 
> rem This batch file written and tested under Windows NT
> rem Improvements to this file are welcome
> 
> rem Guess TOMCAT_HOME if it is not present
> 
> set TOMCAT_HOME=C:\jakarta-tomcat
> set JAVA_HOME=C:\jdk1.3
> 
> echo *TOMCAT_HOME  : %TOMCAT_HOME%
> echo *JAVA_HOME: %JAVA_HOME%
> 
> if not "%TOMCAT_HOME%" == "" goto gothome
> 
> SET TOMCAT_HOME=.
> if exist %TOMCAT_HOME%\bin\tomcat.bat goto gothome
> 
> SET TOMCAT_HOME=..
> if exist %TOMCAT_HOME%\bin\tomcat.bat goto gothome
> 
> SET TOMCAT_HOME=
> echo Unable to determine the value of TOMCAT_HOME.
> goto eof
> 
> :gothome
> 
> rem Set up the CLASSPATH that we need
> 
> set CLASSPATH=C:\jdk1.3\lib\tools.jar
> echo *Old classpath: %CLASSPATH%
> 
> set cp=%CLASSPATH%
> 
> rem set CLASSPATH=.
> set CLASSPATH=%TOMCAT_HOME%\classes
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\webserver.jar
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jasper.jar
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xml.jar
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\servlet.jar
> set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
> 
> echo *New classpath: %CLASSPATH%
> 
> rem echo cp   : %cp%
> if "%cp%" == "" goto next
> 
> rem else
> rem REM added:
> rem set CLASSPATH=%CLASSPATH%;%cp%
> 
> :next
> if "%1" == "start" goto startServer
> if "%1" == "stop" goto stopServer
> if "%1" == "run" goto runServer
> if "%1" == "env" goto setupEnv
> if "%1" == "ant" goto runAnt
> if "%1" == "jspc" goto runJspc
> 
> echo Usage:
> echo tomcat (start^|run^|env^|stop)
> echo start - start tomcat in a separate window
> echo run   - start tomcat in the current window
> echo env   - setup the environment for tomcat
> echo stop  - stop tomcat
> echo ant   - run ant with tomcat context
> echo jspc  - run jsp pre compiler
> goto cleanup
> 
> :startServer
> echo Starting tomcat in new window
> echo =>Using classpath: %CLASSPATH%
> start java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" 
> org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9
> goto cleanup
> 
> :runServer
> rem Start the Tomcat Server
> echo Using classpath: %CLASSPATH%
> java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" 
> org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9
> goto cleanup
> 
> :stopServer
> rem Stop the Tomcat Server
> echo Using classpath: %CLASSPATH%
> java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" 
> org.apache.tomcat.startup.Tomcat -stop %2 %3 %4 %5 %6 %7 %8 %9
> goto cleanup
> goto cleanup
> 
> :runAnt
> rem Run ant
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\ant.jar
> echo Using classpath: %CLASSPATH%
> java %ANT_OPTS% -Dant.home="%TOMCAT_HOME%" 
> -Dtomcat.home="%TOMCAT_HOME%" 
> org.apache.tools.ant.Main %2 %3 %4 %5 %6 %7 %8 %9
> goto cleanup
> 
> :runJspc
> rem Run ant
> echo Using classpath: %CLASSPATH%
> java %JSPC_OPTS% -Dtomcat.home="%TOMCAT_HOME%" 
> org.apache.jasper.JspC %2 
> %3 %4 %5 %6 %7 %8 %9
> goto cleanup
> 
> :setupEnv
> set cp=%CLASSPATH%
> 
> :cleanup
> rem clean up
> 
> set CLASSPATH=%cp%
> set port=
> set host=
> set test=
> set jsdkJars=
> set jspJars=
> set beanJars=
> set miscJars=
> set appJars=
> set appClassPath=
> set cp=
> 
> rem pause
> :eof
> ---
> 



Re: tomcat start fails

2001-06-10 Thread Stephane Meier

Hello,

If  you are on Windows 9x/ME, make sure to limit pathnames to <= 8
characters.

Better start with the basic file (tomcat.bat), and then add the missing
variables, which are typically :
(adapt for your own environment)
set JAVA_HOME=C:\jdk1.3
set TOMCAT_HOME=C:\jakarta-tomcat3.2.2 (or whatever)
set CLASSPATH=C:\jdk1.3\lib\tools.jar

The classpath does not need to explicitly include files from
TOMCAT_HOME/lib.

Another thing that can help is to modify server.xml and in the section
tc_log, add the filename
marked in comments, so you will get something in TOMCAT_HOME\logs\tomcat.log

This will force all messages that appear in the  DOS window to be written in
this file.
Otherwise the message is written so fast and the window is closed so fast
that you do not see any error message.

Stéphane







tomcat start fails

2001-06-08 Thread Valerie BARRAUD

Hi folks,

I've just finished to install Tomcat and launched
   tomcat start
but the promised Tomcat window does not appear.

My file tomcat.bat (here after) seems to be ok. Any idea ?
---
tomcat.bat
---
@echo off
rem A batch file to start/stop tomcat server.

rem This batch file written and tested under Windows NT
rem Improvements to this file are welcome

rem Guess TOMCAT_HOME if it is not present

set TOMCAT_HOME=C:\jakarta-tomcat
set JAVA_HOME=C:\jdk1.3

echo *TOMCAT_HOME  : %TOMCAT_HOME%
echo *JAVA_HOME: %JAVA_HOME%

if not "%TOMCAT_HOME%" == "" goto gothome

SET TOMCAT_HOME=.
if exist %TOMCAT_HOME%\bin\tomcat.bat goto gothome

SET TOMCAT_HOME=..
if exist %TOMCAT_HOME%\bin\tomcat.bat goto gothome

SET TOMCAT_HOME=
echo Unable to determine the value of TOMCAT_HOME.
goto eof

:gothome

rem Set up the CLASSPATH that we need

set CLASSPATH=C:\jdk1.3\lib\tools.jar
echo *Old classpath: %CLASSPATH%

set cp=%CLASSPATH%

rem set CLASSPATH=.
set CLASSPATH=%TOMCAT_HOME%\classes
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\webserver.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jasper.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xml.jar
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\servlet.jar
set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar

echo *New classpath: %CLASSPATH%

rem echo cp   : %cp%
if "%cp%" == "" goto next

rem else
rem REM added:
rem set CLASSPATH=%CLASSPATH%;%cp%

:next
if "%1" == "start" goto startServer
if "%1" == "stop" goto stopServer
if "%1" == "run" goto runServer
if "%1" == "env" goto setupEnv
if "%1" == "ant" goto runAnt
if "%1" == "jspc" goto runJspc

echo Usage:
echo tomcat (start^|run^|env^|stop)
echo start - start tomcat in a separate window
echo run   - start tomcat in the current window
echo env   - setup the environment for tomcat
echo stop  - stop tomcat
echo ant   - run ant with tomcat context
echo jspc  - run jsp pre compiler
goto cleanup

:startServer
echo Starting tomcat in new window
echo =>Using classpath: %CLASSPATH%
start java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" 
org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9
goto cleanup

:runServer
rem Start the Tomcat Server
echo Using classpath: %CLASSPATH%
java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" 
org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9
goto cleanup

:stopServer
rem Stop the Tomcat Server
echo Using classpath: %CLASSPATH%
java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" 
org.apache.tomcat.startup.Tomcat -stop %2 %3 %4 %5 %6 %7 %8 %9
goto cleanup
goto cleanup

:runAnt
rem Run ant
set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\ant.jar
echo Using classpath: %CLASSPATH%
java %ANT_OPTS% -Dant.home="%TOMCAT_HOME%" -Dtomcat.home="%TOMCAT_HOME%" 
org.apache.tools.ant.Main %2 %3 %4 %5 %6 %7 %8 %9
goto cleanup

:runJspc
rem Run ant
echo Using classpath: %CLASSPATH%
java %JSPC_OPTS% -Dtomcat.home="%TOMCAT_HOME%" org.apache.jasper.JspC %2 
%3 %4 %5 %6 %7 %8 %9
goto cleanup

:setupEnv
set cp=%CLASSPATH%

:cleanup
rem clean up

set CLASSPATH=%cp%
set port=
set host=
set test=
set jsdkJars=
set jspJars=
set beanJars=
set miscJars=
set appJars=
set appClassPath=
set cp=

rem pause
:eof
---




Re: Tomcat start error

2001-05-11 Thread Tony Karas

Just for completeness, to follow up my previous message - here's a link to 
my original message -

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg15227.html

I think I was getting the same problem - the NoClassDefFoundError.

Pain in the ass.

Hope this helps.

Tony


>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Tomcat start error
>Date: Fri, 11 May 2001 11:02:31 -0400
>
>I installed the tomcat 3.2.1 with jdk 1.3 in Win98. The enviroment setup is
>PATH=%PATH%;c:\jdk13\bin
>set JAVA_HOME=C:\jdk13
>set TOMCAT_HOME=C:\tomcat
>
>When I run "tomcat run", i just get an error message,
>Exception in thread "main" java.lang.NoClassDefFoundError:
>org/apache/tomcat/startup/Tomcat
>
>If I run "startup", it just say "start a new window" and the new window 
>just a
>blinking and disappear, as follwing message displayed,
>
>Including all jars in C:\TOMCAT\lib in your CLASSPATH.
>Using CLASSPATH:
>C:\TOMCAT\classes;C:\TOMCAT\lib\ANT.JAR;C:\TOMCAT\lib\JAXP.JAR;
>C:\TOMCAT\lib\SERVLET.JAR;C:\TOMCAT\lib\PARSER.JAR;C:\TOMCAT\lib\
>WEBSER~1.JAR;C:
>\TOMCAT\lib\JASPER.JAR;C:\TOMCAT\lib\webserver.jar;C:\JDK13
>\lib\tools.jar;
>Starting Tomcat in new window
>
>Your help is greatly apreciated.
>Thanks,
>Peter

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: Tomcat start error

2001-05-11 Thread Tony Karas

Make sure "servlet.jar" does not exist somewhere that would override the 
classpath like c:\jdk13\jre\lib\ext (I think this is the correct directory - 
just check it doesn't exist anywhere under c:\jdk13\jre).


>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Tomcat start error
>Date: Fri, 11 May 2001 11:02:31 -0400
>
>I installed the tomcat 3.2.1 with jdk 1.3 in Win98. The enviroment setup is
>PATH=%PATH%;c:\jdk13\bin
>set JAVA_HOME=C:\jdk13
>set TOMCAT_HOME=C:\tomcat
>
>When I run "tomcat run", i just get an error message,
>Exception in thread "main" java.lang.NoClassDefFoundError:
>org/apache/tomcat/startup/Tomcat
>
>If I run "startup", it just say "start a new window" and the new window 
>just a
>blinking and disappear, as follwing message displayed,
>
>Including all jars in C:\TOMCAT\lib in your CLASSPATH.
>Using CLASSPATH:
>C:\TOMCAT\classes;C:\TOMCAT\lib\ANT.JAR;C:\TOMCAT\lib\JAXP.JAR;
>C:\TOMCAT\lib\SERVLET.JAR;C:\TOMCAT\lib\PARSER.JAR;C:\TOMCAT\lib\
>WEBSER~1.JAR;C:
>\TOMCAT\lib\JASPER.JAR;C:\TOMCAT\lib\webserver.jar;C:\JDK13
>\lib\tools.jar;
>Starting Tomcat in new window
>
>Your help is greatly apreciated.
>Thanks,
>Peter

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




RE: Tomcat start error

2001-05-11 Thread dave . prout

Try putting C:\jdk13\lib\tools.jar in your Classpath

> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: 11 May 2001 16:03
> To:   [EMAIL PROTECTED]
> Subject:      Tomcat start error
> 
> I installed the tomcat 3.2.1 with jdk 1.3 in Win98. The enviroment setup
> is 
> PATH=%PATH%;c:\jdk13\bin 
> set JAVA_HOME=C:\jdk13 
> set TOMCAT_HOME=C:\tomcat 
> 
> When I run "tomcat run", i just get an error message, 
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/tomcat/startup/Tomcat 
> 
> If I run "startup", it just say "start a new window" and the new window
> just a
> blinking and disappear, as follwing message displayed, 
> 
> Including all jars in C:\TOMCAT\lib in your CLASSPATH. 
> Using CLASSPATH: 
> C:\TOMCAT\classes;C:\TOMCAT\lib\ANT.JAR;C:\TOMCAT\lib\JAXP.JAR; 
> C:\TOMCAT\lib\SERVLET.JAR;C:\TOMCAT\lib\PARSER.JAR;C:\TOMCAT\lib\
> WEBSER~1.JAR;C: 
> \TOMCAT\lib\JASPER.JAR;C:\TOMCAT\lib\webserver.jar;C:\JDK13 
> \lib\tools.jar; 
> Starting Tomcat in new window 
> 
> Your help is greatly apreciated. 
> Thanks, 
> Peter 



RE: Tomcat start error

2001-05-11 Thread Ronan Derby

if you edit the startup.bat file you'll find a line that starts with "start"
this is what opens the new window. if you just remove this word, tomcat will
start up
in the window that the startup.bat runs in


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 11 May 2001 16:03
To: [EMAIL PROTECTED]
Subject: Tomcat start error


I installed the tomcat 3.2.1 with jdk 1.3 in Win98. The enviroment setup is
PATH=%PATH%;c:\jdk13\bin
set JAVA_HOME=C:\jdk13
set TOMCAT_HOME=C:\tomcat

When I run "tomcat run", i just get an error message,
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tomcat/startup/Tomcat

If I run "startup", it just say "start a new window" and the new window just
a
blinking and disappear, as follwing message displayed,

Including all jars in C:\TOMCAT\lib in your CLASSPATH.
Using CLASSPATH:
C:\TOMCAT\classes;C:\TOMCAT\lib\ANT.JAR;C:\TOMCAT\lib\JAXP.JAR;
C:\TOMCAT\lib\SERVLET.JAR;C:\TOMCAT\lib\PARSER.JAR;C:\TOMCAT\lib\
WEBSER~1.JAR;C:
\TOMCAT\lib\JASPER.JAR;C:\TOMCAT\lib\webserver.jar;C:\JDK13
\lib\tools.jar;
Starting Tomcat in new window

Your help is greatly apreciated.
Thanks,
Peter




RE: Tomcat start error

2001-05-11 Thread William Kaufman

Don't start Tomcat in a new window.

In tomcat.bat, there's be a line like,

start "Tomcat" java org.apache.tomcat.startup.Tomcat ...

Strip everything before "java".  Then, when you run tomcat.bat, any errors
will show up in your current window.

-- Bill K.


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 11, 2001 8:03 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat start error
> 
> 
> I installed the tomcat 3.2.1 with jdk 1.3 in Win98. The 
> enviroment setup is 
> PATH=%PATH%;c:\jdk13\bin 
> set JAVA_HOME=C:\jdk13 
> set TOMCAT_HOME=C:\tomcat 
> 
> When I run "tomcat run", i just get an error message, 
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/tomcat/startup/Tomcat 
> 
> If I run "startup", it just say "start a new window" and the 
> new window just a
> blinking and disappear, as follwing message displayed, 
> 
> Including all jars in C:\TOMCAT\lib in your CLASSPATH. 
> Using CLASSPATH: 
> C:\TOMCAT\classes;C:\TOMCAT\lib\ANT.JAR;C:\TOMCAT\lib\JAXP.JAR; 
> C:\TOMCAT\lib\SERVLET.JAR;C:\TOMCAT\lib\PARSER.JAR;C:\TOMCAT\lib\
> WEBSER~1.JAR;C: 
> \TOMCAT\lib\JASPER.JAR;C:\TOMCAT\lib\webserver.jar;C:\JDK13 
> \lib\tools.jar; 
> Starting Tomcat in new window 
> 
> Your help is greatly apreciated. 
> Thanks, 
> Peter 
> 



Tomcat start error

2001-05-11 Thread Peter . Pan

I installed the tomcat 3.2.1 with jdk 1.3 in Win98. The enviroment setup is 
PATH=%PATH%;c:\jdk13\bin 
set JAVA_HOME=C:\jdk13 
set TOMCAT_HOME=C:\tomcat 

When I run "tomcat run", i just get an error message, 
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tomcat/startup/Tomcat 

If I run "startup", it just say "start a new window" and the new window just a
blinking and disappear, as follwing message displayed, 

Including all jars in C:\TOMCAT\lib in your CLASSPATH. 
Using CLASSPATH: 
C:\TOMCAT\classes;C:\TOMCAT\lib\ANT.JAR;C:\TOMCAT\lib\JAXP.JAR; 
C:\TOMCAT\lib\SERVLET.JAR;C:\TOMCAT\lib\PARSER.JAR;C:\TOMCAT\lib\
WEBSER~1.JAR;C: 
\TOMCAT\lib\JASPER.JAR;C:\TOMCAT\lib\webserver.jar;C:\JDK13 
\lib\tools.jar; 
Starting Tomcat in new window 

Your help is greatly apreciated. 
Thanks, 
Peter 



first getSession after tomcat start

2001-04-12 Thread Gerrit Schimpf

hi,

I've some problems with SessionHandling. The first time i call getSession
after i've started tomcat. I have to wait about 60 seconds until the page will
be shown. I have this problem im my own servlets, and in the examples from
tomcat!

sy
Gerrit

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net




RE: first getSession after tomcat start

2001-04-12 Thread William Kaufman

While I haven't seen anything this bad (it's more like 10 seconds for me),
JProbe said the servlet spent all the first-call time in
SecureRandom.getLong() (generating the session key, I think).

We're currently using Tomcat 3.2.1.  The readme for 3.2.2b3 says that
version has:

>  -  Better initialization of psuedo-random number generator improves
> response time for first request that generates a session.

I think this'll fix my problem, and possibly yours.

-- Bill K.


> -Original Message-
> From: Gerrit Schimpf [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 12, 2001 2:47 AM
> To: [EMAIL PROTECTED]
> Subject: first getSession after tomcat start
> 
> 
> hi,
> 
> I've some problems with SessionHandling. The first time i 
> call getSession
> after i've started tomcat. I have to wait about 60 seconds 
> until the page will
> be shown. I have this problem im my own servlets, and in the 
> examples from
> tomcat!
> 
> sy
> Gerrit
> 
> -- 
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
> 



first getSession after tomcat start

2001-04-12 Thread Gerrit Schimpf

hi,

I've some problems with SessionHandling. The first time i call getSession
after i've started tomcat. I have to wait about 60 seconds until the page will
be shown. I have this problem im my own servlets, and in the examples from
tomcat!

sy
Gerrit

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net




tomcat start error

2001-04-09 Thread Georges Boutros

hi everyone,

when i shutdown tomcat i get this error message

./tomcat.sh: line 164:   770 Segmentation fault  (core dumped) $JAVACMD
$TOMCAT_OPTS -Dtomcat.home=${TOMCAT_HOME} org.apache.tomcat.startup.Tomcat
-stop "$@"

does anyone know why???

thanks
Georges



Why won't tomcat start

2000-12-12 Thread jdunn

I had tomcat 3.1 running with Apache - then wiped tomcat out & down
loaded 3.2
Now it won't run. Not even stand alone -  The U.G is no help

i386 Linux Red hat 6.2   jdk1.2.2 from Blackdown (Sun) in
/usr/local/jdk1.2.2
tomcat in /usr/local/tomcat3.2
echo $TOMCAT_HOME  returns /usr/local/tomcat3.2
echo $JAVA_HOME  returns  /usr/local/jdk1.2.2
demo programs in jdk1.2.2 run OK from command line. Java is installed
and running OK.  as root - I execute  startup.sh  from
/usr/local/tomcat3.2/bin
It prints :
'Using classpath:  " and a string that contains corect paths to
ant.jar:jasper.jarjaxp.jar   parser.jar   servlet.jar  test
webserver.jar
and   tools.jar
then it prints
/usr/local/jdk1.2.2/bin/java :basename command not found
:uname command not found
:uname command not found
:ls  command not found
:expr command not found
:expr command not found
:dirname command not found
:dirname  command not found
Error: can't find libjava.so

However libjava.so is in the /usr/local/jdk1.2.2/jre/lib/i386
subdirectory
What gives ?






RE: tomcat start help

2000-12-07 Thread Speetjens Tim

I shure have. 

(In our case, the VM crashed right at the first page request)

The solution that worked for us is to move to JDK 1.3 provided by Sun. 
The 1.3 version from Blackdown was not yet available at that time, and 
the one from IBM did suffer the same error.
The solution as stated by RedHat is to upgrate glibc.

Have a look at 
http://www.redhat.com/support/errata/rh7-errata-bugfixes.html


I would also migrate to a final release, either 1.2.2 or 1.3

Tim

> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, December 05, 2000 9:43 PM
> To:   [EMAIL PROTECTED]
> Subject:      tomcat start help
> 
> 
> 
> When I try to start tomcat I get the following:
> 
> 2000-12-05 01:31:10 - ContextManager: Adding context Ctx( /examples )
> SIGSEGV   11*  segmentation violation
> si_signo [0]: no signal
> si_errno [0]: Success
> si_code [268545696]: unknown siginfo
>   stackpointer=0x7fffec58
> 
> Full thread dump Classic VM (Linux_JDK_1.2.2_RC4, native threads):
> "Thread-0" (TID:0x30cd6c60, sys_thread_t:0x10208938, state:CW, native
> ID:0x1005) prio=5
>   at java.lang.Object.wait(Native Method)
>   at java.lang.Object.wait(Object.java:424)
>   at org.apache.tomcat.util.Queue.pull(Queue.java:89)
>   at
> org.apache.tomcat.logging.LogDaemon$1.run(TomcatLogger.java:238)
>   at org.apache.tomcat.logging.LogDaemon.run(TomcatLogger.java:254)
> "Finalizer" (TID:0x30cc0320, sys_thread_t:0x100985f0, state:CW, native
> ID:0xc04) prio=8
>   at java.lang.Object.wait(Native Method)
>   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112)
>   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
>   at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
> "Reference Handler" (TID:0x30cc03b0, sys_thread_t:0x10090fb0,
> state:CW, native ID:0x803) prio=10
>   at java.lang.Object.wait(Native Method)
>   at java.lang.Object.wait(Object.java:424)
>   at
> java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
> "SIGQUIT handler" (TID:0x30cc03e0, sys_thread_t:0x10097ab8, state:R,
> native ID:0x402) prio=5
> "main" (TID:0x30cc01e0, sys_thread_t:0x1001af20, state:R, native
> ID:0x400) prio=5
> at
> org.apache.tomcat.util.xml.SetProperties.setProperty(XmlMapper.java:631)
>   at 
> org.apache.tomcat.util.xml.SetProperties.start(XmlMapper.java:611)
>   at
> org.apache.tomcat.util.xml.XmlMapper.matchStart(XmlMapper.java:384)
>   at
> org.apache.tomcat.util.xml.XmlMapper.startElement(XmlMapper.java:81)
>   at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
>   at com.sun.xml.parser.Parser.content(Parser.java:1499)
>   at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
>   at com.sun.xml.parser.Parser.content(Parser.java:1499)
>   at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
>   at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
>   at com.sun.xml.parser.Parser.parse(Parser.java:284)
>   at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
>   at javax.xml.parsers.SAXParser.parse(SAXParser.java:126)
>   at
> org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214)
>   at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
>   at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
> Monitor Cache Dump:
> org.apache.tomcat.util.Queue@30CD6CB0/30D5D4D0: 
>   Waiting to be notified:
>   "Thread-0" (0x10208938)
> java.lang.ref.Reference$Lock@30CC03C0/30CF58A8: 
>   Waiting to be notified:
>   "Reference Handler" (0x10090fb0)
> java.lang.ref.ReferenceQueue$Lock@30CC0338/30CF5B90: 
>   Waiting to be notified:
>   "Finalizer" (0x100985f0)
> Registered Monitor Dump:
> utf8 hash table: 
> JNI pinning lock: 
> JNI global reference lock: 
> BinClass lock: 
> Class linking lock: 
> System class loader lock: 
> Code rewrite lock: 
> Heap lock: 
> Monitor cache lock: owner "main" (0x1001af20) 1 entry
> Thread queue lock: owner "main" (0x1001af20) 1 entry
> Monitor registry: owner "main" (0x1001af20) 1 entry
> 
> 
> 
> 
> That doesn't seem good.  Any ideas?
> 
> ACS



tomcat start help

2000-12-06 Thread acshafer



When I try to start tomcat I get the following:

2000-12-05 01:31:10 - ContextManager: Adding context Ctx( /examples )
SIGSEGV   11*  segmentation violation
si_signo [0]: no signal
si_errno [0]: Success
si_code [268545696]: unknown siginfo
stackpointer=0x7fffec58

Full thread dump Classic VM (Linux_JDK_1.2.2_RC4, native threads):
"Thread-0" (TID:0x30cd6c60, sys_thread_t:0x10208938, state:CW, native
ID:0x1005) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:424)
at org.apache.tomcat.util.Queue.pull(Queue.java:89)
at
org.apache.tomcat.logging.LogDaemon$1.run(TomcatLogger.java:238)
at org.apache.tomcat.logging.LogDaemon.run(TomcatLogger.java:254)
"Finalizer" (TID:0x30cc0320, sys_thread_t:0x100985f0, state:CW, native
ID:0xc04) prio=8
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
"Reference Handler" (TID:0x30cc03b0, sys_thread_t:0x10090fb0,
state:CW, native ID:0x803) prio=10
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:424)
at
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
"SIGQUIT handler" (TID:0x30cc03e0, sys_thread_t:0x10097ab8, state:R,
native ID:0x402) prio=5
"main" (TID:0x30cc01e0, sys_thread_t:0x1001af20, state:R, native
ID:0x400) prio=5
at org.apache.tomcat.util.xml.SetProperties.setProperty(XmlMapper.java:631)
at 
org.apache.tomcat.util.xml.SetProperties.start(XmlMapper.java:611)
at
org.apache.tomcat.util.xml.XmlMapper.matchStart(XmlMapper.java:384)
at
org.apache.tomcat.util.xml.XmlMapper.startElement(XmlMapper.java:81)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
at com.sun.xml.parser.Parser.content(Parser.java:1499)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
at com.sun.xml.parser.Parser.content(Parser.java:1499)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
at com.sun.xml.parser.Parser.parse(Parser.java:284)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:126)
at
org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
Monitor Cache Dump:
org.apache.tomcat.util.Queue@30CD6CB0/30D5D4D0: 
Waiting to be notified:
"Thread-0" (0x10208938)
java.lang.ref.Reference$Lock@30CC03C0/30CF58A8: 
Waiting to be notified:
"Reference Handler" (0x10090fb0)
java.lang.ref.ReferenceQueue$Lock@30CC0338/30CF5B90: 
Waiting to be notified:
"Finalizer" (0x100985f0)
Registered Monitor Dump:
utf8 hash table: 
JNI pinning lock: 
JNI global reference lock: 
BinClass lock: 
Class linking lock: 
System class loader lock: 
Code rewrite lock: 
Heap lock: 
Monitor cache lock: owner "main" (0x1001af20) 1 entry
Thread queue lock: owner "main" (0x1001af20) 1 entry
Monitor registry: owner "main" (0x1001af20) 1 entry




That doesn't seem good.  Any ideas?

ACS




Re: Making Tomcat start first

2000-11-28 Thread Scott Jones

Hi,

I've attached the script that I place in my /etc/rc.d/init.d directory for
use with starting/stopping/restarting tomcat.

>  For RedHat, you'll already have
> an entry in /etc/rc.d/init.d for apache (I think it's
> /etc/rc.d/init.d/httpd?).

This is correct.

On my installations, there are "start" links in rc.{2-5} and "kill" links in
rc.{0,1,6} to the httpd script mentioned above.  These are named S85httpd
(start) and K15httpd (kill).  On my machine, I set up S84tomcat and
K16tomcat in each of those respective directories (so that Tomcat would be
started before apache, and killed after apache when entering a lower
run-level or restarting)...

BTW, to create a symbolic link, use the "ln -s [target] [link-name]"
command.

Cheers,

Scott


 tomcat


Re: Making Tomcat start first

2000-11-28 Thread Michael J. Suzio

Matt Becker wrote:
> I was wondering if there
> was a way to modify Linux so that Tomcat started first when my machine
> starts up?

Yes.

Oh, you want to know how? :-).

OK, this has pretty much nothing to do with Tomcat or Apache in
particular...  the order in which services start up is determined
by the files in /etc/rc.d/rc{2,3}.d/.  For RedHat, you'll already have
an entry in /etc/rc.d/init.d for apache (I think it's
/etc/rc.d/init.d/httpd?).  Then there are entries in the rc2.d and rc3.d
directories that are symlinks to that file.  Notice that the symlinks
have numbers in the name?  Something like S99httpd?  Services are
started in the order of those numbers... so just make sure the symlink
to the Tomcat startup script has a number *lower* than the number for
Apache.

-- 
Michael J. Suzio
Lead Software Engineer -- ISS Southfield
[EMAIL PROTECTED]



RE: Making Tomcat start first

2000-11-28 Thread Servais, Pascal-Eric

For my part, I made the following alias within the "/etc/rc3.d" directory :
"S49tomcat -> /usr/tomcat/bin/tomcat.sh"

where "49" is a number lower than the one for the Apache startup script and
"/usr/tomcat/bin/tomcat.sh" is the script installed with Tomcat. I just had
to add these line at the beginning of the "tomcat.sh" script :

JAVA_HOME=/usr/java
TOMCAT_HOME=/usr/tomcat
export JAVA_HOME TOMCAT_HOME

Pascal-Eric Servais ( http://pages.infinit.net/denethor ) 
Cognicase ( division Web )
--- 
PGP Fingerprint : 8D0C FB66 CAF0 B9B3 E925  8D2E 7BDB 1D47 DC0B 4AEA 
"Engagez-vous qu'ils disaient, vous allez voir du pays...", Anonyme



RE: Making Tomcat start first

2000-11-28 Thread Servais, Pascal-Eric

You should start looking around the command "man init.d" !
This is basic UNIX administration.  =;-)

Pascal-Eric Servais ( http://pages.infinit.net/denethor ) 
Cognicase ( division Web )
--- 
PGP Fingerprint : 8D0C FB66 CAF0 B9B3 E925  8D2E 7BDB 1D47 DC0B 4AEA 
"Engagez-vous qu'ils disaient, vous allez voir du pays...", Anonyme 

-Original Message-
From: Matt Becker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 28, 2000 2:24 PM
To: tomcat mailing list
Subject: Making Tomcat start first


Hi I'm using Red Hat 7.0 Linux which already has Apache installed. Tomcat is
supposed to start before Apache and I was wondering if there was a way to
modify Linux so that Tomcat started first when my machine starts up?
 
Thanks for your help!
 
 
Matt Becker



Making Tomcat start first

2000-11-28 Thread Matt Becker



Hi I'm using Red Hat 7.0 Linux which already has 
Apache installed. Tomcat is supposed to start before Apache and I was wondering 
if there was a way to modify Linux so that Tomcat started first when my machine 
starts up?
 
Thanks for your help!
 
 
Matt Becker