Detecting client-side socket/connection close from Tomcat server

2005-08-22 Thread gh9
Hi all,

I have a scenario in which multiple time-critical clients call a Tomcat 
servlet. The read timeout on a client-server connection is set to 100ms, so if 
the servlet has not responded within that time, the connection is closed and 
the client continues with other work.

I want to count the number of times clients close their connections to the 
Tomcat servlet due to the 100ms read timeout, and I want to do this from within 
Tomcat itself. If this possible? If so, how would I do it?

If I were using a simple (Java) HTTP server, I could presumably just catch the 
IOException caused by the client's closing the underlying socket/connection, 
and increment a counter. However, with servlets in Tomcat, the underlying 
connection is abstracted over through the use of HttpServletRequest and 
HttpServletResponse objects...

Any suggestions would be greatly appreciated!

I apologise if there is an obvious solution to this that I've overlooked, but 
I'm very new to Tomcat, and have been happily living within the abstraction of 
jsps and servlets so far :-)

Thanks

Greg



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



tomcat server mode and client mode

2005-07-18 Thread Peddireddy Srikanth
Hi all,
I have a basic doubt in tomcat configuration .
Though Iam not new java development Iam new to tomcat configuration.
can any one can tellme about diff between tomcat's server mode and client mode.
Or atleast give some pointers to the related resources

thank you

regards
Srikanth

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



Tomcat server memory optimization

2005-05-04 Thread =?iso-8859-1?Q?Ac=E1cio_Furtado_Costa?=
I read an article about Considering the server VM. 
 
In this article I realize the JVM (Sun´s) actually contains different VM inside 
the binary that´s executed to start up Java applications: the Client and The 
Server VM.
 
The server VM trades priorities for emphasis on greater scalability for 
server-type apllications and the Client VM priorize startup time and minimizing 
latency of GC. 
 
BY default, Java uses the client VM and It recommends  to passing the  - 
server command-line option to the java VM on startup.
 
Does anyone used and know, how to pass this parameter to use with Tomcat 5.0.x 
? and what´s result reached? 
 
TIA
 

Acacio Furtado Costa
Pesquisa e Tecnologia

GIA - Magnesita S/A
*  [EMAIL PROTECTED]

 


error on tomcat 5.0.28 after tomcat server reboot

2005-04-03 Thread Anselmo, John
I saw this tomcat error below after we rebooted the two suse linux servers. Has 
anyboy seen this ? and figured out a fix, and what is this error meanse  BAD 
PACKET SIGNATURE  THANKS


JA



[-02 Apr 2005 09:20:21 EST-] [-ERROR-] 
[-org.apache.tomcat.util.threads.ThreadPool-] - Caught exception 
(java.lang.NullPointerException) executing [EMAIL PROTECTED], terminating thread
[-02 Apr 2005 09:20:30 EST-] [-ERROR-] 
[-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid 
header
[-02 Apr 2005 09:20:55 EST-] [-ERROR-] 
[-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid 
header
[-02 Apr 2005 09:20:55 EST-] [-ERROR-] 
[-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid 
header
[-02 Apr 2005 09:20:55 EST-] [-ERROR-] 
[-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid 
header
[-02 Apr 2005 09:20:55 EST-] [-ERROR-] 
[-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid 
header
[-02 Apr 2005 09:20:55 EST-] [-ERROR-] 
[-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid 
header
[-02 Apr 2005 09:20:55 EST-] [-ERROR-] 
[-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid 
header
[-02 Apr 2005 09:20:55 EST-] [-ERROR-] 
[-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid 
header
[-02 Apr 2005 09:21:03 EST-] [-ERROR-] 
[-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid 
header
[-02 Apr 2005 09:21:03 EST-] [-ERROR-] 
[-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid 
header
[-02 Apr 2005 09:21:03 EST-] [-ERROR-] 
[-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid 
header
[-02 Apr 2005 09:21:04 EST-] [-ERROR-] 
[-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid 
header
[-02 Apr 2005 09:21:04 EST-] [-ERROR-] 
[-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid 
header
[-02 Apr 2005 09:21:04 EST-] [-ERROR-] 
[-org.apache.catalina.cluster.io.XByteBuffer-] - Discarded the package, invalid 
header
[-02 Apr 2005 09:21:16 EST-] [-ERROR-] [-org.apache.jk.common.MsgAjp-] - BAD 
packet signature 200
00 c8 00 00  | .ï¿..
[-02 Apr 2005 09:21:16 EST-] [-ERROR-] [-org.apache.jk.common.MsgAjp-] - BAD 
packet signature 18245
47 45 54 20 00 00 00 00 00 00 00 00 00 00 00 00  | GET 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 



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



how to fire up the tomcat server?!

2005-03-25 Thread Tamer Higazi
Hi people! 
I have installed on a Gentoo Linux System the ANT and builded from the
source (in the root directory where the build.xml file is located) the
tomcat server. Now...  what do I do now? How can I start the Tomcat
server? 

For any help to make my stupid brain smarter, thank you


Tamer Higazi


Re: how to fire up the tomcat server?!

2005-03-25 Thread Angel Cervera Claudio
catalina.sh start

Tamer Higazi wrote:

Hi people! 
I have installed on a Gentoo Linux System the ANT and builded from the
source (in the root directory where the build.xml file is located) the
tomcat server. Now...  what do I do now? How can I start the Tomcat
server? 

For any help to make my stupid brain smarter, thank you


Tamer Higazi

  



-- 
Ángel Cervera Claudio
Freelance / desarrollos j2ee
web: http://www.acervera.com
tlf: 670819234 / 916058546
email: [EMAIL PROTECTED]
msn: [EMAIL PROTECTED]
yahoo: angelcervera
aol: angelcervera
jabber: angelcervera en jabber.org


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



Re: how to fire up the tomcat server?!

2005-03-25 Thread Tamer Higazi
Thank you

It works!

On Fri, 2005-03-25 at 11:00 +0100, Angel Cervera Claudio wrote:

 catalina.sh start
 
 Tamer Higazi wrote:
 
 Hi people! 
 I have installed on a Gentoo Linux System the ANT and builded from the
 source (in the root directory where the build.xml file is located) the
 tomcat server. Now...  what do I do now? How can I start the Tomcat
 server? 
 
 For any help to make my stupid brain smarter, thank you
 
 
 Tamer Higazi
 
   
 
 
 


Re: TC 5.0.28 AdminTool -- nodes under Tomcat Server throwing exceptions

2005-02-15 Thread Robert Hunt
!-- Jakarta-Tomcat DEVELOPMENT Server Configuration File --
Server port=21043 shutdown=shutdown debug=3
 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener 
debug=0/
 Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener 
debug=0/

 Service name=Catalina
   Connector port=20041
  maxThreads=50
  minSpareThreads=5
  maxSpareThreads=20
  enableLookups=false
  redirectPort=20051
  acceptCount=10
  debug=9
  connectionTimeout=3
  disableUploadTimeout=true
  /
   Engine name=Catalina defaultHost=localhost debug=0
 Valve className=org.apache.catalina.valves.RequestDumperValve/
 Logger className=org.apache.catalina.logger.FileLogger
 verbosity=3
 directory=logs
 prefix=engine.
 suffix=.log
 timestamp=true
 /
 !-- Default virtual host --
 Host name=localhost
   debug=9
   appBase=\localhost\default
   unpackWARs=false
   autoDeploy=false
   deployOnStartup=false
   workDir=work/localhost
   xmlValidation=false
 xmlNamespaceAware=false
   
   Logger className=org.apache.catalina.logger.FileLogger
   verbosity=4
   directory=logs/localhost
   prefix=filelog.
   suffix=.log
   timestamp=true/
   Valve className=org.apache.catalina.valves.AccessLogValve
  directory=logs/localhost
  prefix=accesslog.
  suffix=.log
  resolveHosts=false
  pattern=%t|%a|%S|%s|%B|%r|/
   Context path=
docBase=\localhost\default
reloadable=true
debug=true
swallowOutput=false
workDir=work/default
/
   Context path=/Admin
docBase=\tomcat\5.0.28\server\webapps\admin
debug=99
privileged=true

 Realm className=...realm.MyDBAuthRealm/
   /Context
 /Host!-- localhost --
   /Engine
 /Service
/Server
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: TC 5.0.28 AdminTool -- nodes under Tomcat Server throwing exceptions

2005-02-15 Thread sven morales
Hi,
   You have not modified the admin webapp at all? 
This is a struts based application.  If you click on
that Service (Catalina) node, the mapping should be
something  like:


admin/treeControlTest.do?tree=Catalina?type:Service,serviceName=Catalina
 

The define tag is defined at struts-bean.tld as
such:
tagclassorg.apache.struts.taglib.bean.DefineTag/tagclass
 So figure out which jsp uses this tag and why it is
null. 


aka_sergio

--- Robert Hunt [EMAIL PROTECTED] wrote:

 !-- Jakarta-Tomcat DEVELOPMENT Server Configuration
 File --
 Server port=21043 shutdown=shutdown debug=3
 
   Listener

className=org.apache.catalina.mbeans.ServerLifecycleListener
 
 debug=0/
   Listener 

className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
 
 debug=0/
 
   Service name=Catalina
 
 Connector port=20041
maxThreads=50
minSpareThreads=5
maxSpareThreads=20
enableLookups=false
redirectPort=20051
acceptCount=10
debug=9
connectionTimeout=3
disableUploadTimeout=true
/
 
 Engine name=Catalina defaultHost=localhost
 debug=0
 
   Valve

className=org.apache.catalina.valves.RequestDumperValve/
 
   Logger
 className=org.apache.catalina.logger.FileLogger
   verbosity=3
   directory=logs
   prefix=engine.
   suffix=.log
   timestamp=true
   /
 
 
   !-- Default virtual host --
   Host name=localhost
 debug=9
 appBase=\localhost\default
 unpackWARs=false
 autoDeploy=false
 deployOnStartup=false
 workDir=work/localhost
 xmlValidation=false
   xmlNamespaceAware=false
 
 
 Logger
 className=org.apache.catalina.logger.FileLogger
 verbosity=4
 directory=logs/localhost
 prefix=filelog.
 suffix=.log
 timestamp=true/
 
 Valve

className=org.apache.catalina.valves.AccessLogValve
directory=logs/localhost
prefix=accesslog.
suffix=.log
resolveHosts=false
pattern=%t|%a|%S|%s|%B|%r|/
 
 Context path=
  docBase=\localhost\default
  reloadable=true
  debug=true
  swallowOutput=false
  workDir=work/default
  /
 
 Context path=/Admin
 
 docBase=\tomcat\5.0.28\server\webapps\admin
  debug=99
  privileged=true
  
   Realm
 className=...realm.MyDBAuthRealm/
 /Context
 
   /Host!-- localhost --
 /Engine
   /Service
 /Server
 
 

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




__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

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



TC 5.0.28 AdminTool -- nodes under Tomcat Server throwing exceptions

2005-02-14 Thread Robert Hunt
TC 5.0.28 running out of the box, the admin tool works fine; tree view 
expands and all nodes are accessible.


Trying to run the admin tool with my own (pared down) server.xml generates the 
following when clicking the Service (Catalina) node:
javax.servlet.ServletException: Define tag cannot set a null value

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
admin.service.service_jsp._jspService(service_jsp.java:848)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause 
javax.servlet.jsp.JspException: Define tag cannot set a null value
org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:272)
admin.service.service_jsp._jspService(service_jsp.java:237)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

==

I can click the handle and have the tree view expand ok, but clicking the node 
triggers the exception.  

The Logger and Valve nodes work OK.  However, the Host (localhost) node and 
each Context (/xxx) node also kick:

Host:
java.lang.NullPointerException

org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.java:179)

org.apache.struts.taglib.logic.NotEqualTag.condition(NotEqualTag.java:90)

org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTagBase.java:218)
admin.host.host_jsp._jspService(host_jsp.java:440)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Context:
 Error retrieving attribute debug 





Re: TC 5.0.28 AdminTool -- nodes under Tomcat Server throwing exceptions

2005-02-14 Thread sven morales
Hi,
   Can you post the pared down server.xml?  The stock
server.xml is mostly comments anyways, so which
elements did you remove to cause these exceptions?

aka_sergio


--- Robert Hunt [EMAIL PROTECTED] wrote:

 TC 5.0.28 running out of the box, the admin tool
 works fine; tree view expands and all nodes are
 accessible.
 
 
 Trying to run the admin tool with my own (pared
 down) server.xml generates the following when
 clicking the Service (Catalina) node:
 javax.servlet.ServletException: Define tag cannot
 set a null value
 

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
 

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
 

admin.service.service_jsp._jspService(service_jsp.java:848)
 

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
 

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
 

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
 

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 

org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 root cause 
 javax.servlet.jsp.JspException: Define tag cannot
 set a null value
 

org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:272)
 

admin.service.service_jsp._jspService(service_jsp.java:237)
 

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 ==
 
 I can click the handle and have the tree view expand
 ok, but clicking the node triggers the exception.  
 
 The Logger and Valve nodes work OK.  However, the
 Host (localhost) node and each Context (/xxx)
 node also kick:
 
 Host:
 java.lang.NullPointerException
 

org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.java:179)
 

org.apache.struts.taglib.logic.NotEqualTag.condition(NotEqualTag.java:90)
 

org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTagBase.java:218)
   admin.host.host_jsp._jspService(host_jsp.java:440)
 

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
 

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
 

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
 

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 

org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 Context:
  Error retrieving attribute debug 
 
 
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Tomcat server - Strange problem - stuck like anything

2004-12-21 Thread Manisha Sathe
On my local m/c I had installed Tomcat and it was running properly. I tested 
servlet-examples / jsp-example.
 
Yesterday I tried to create new application inside Tomcat (trying to put the 
directory structure - web.xml, also tried to put Context... inside server.xml 
(later removed as seems not required)
 
Yesterday I also installed struts and ant. Created many test applications. Many 
times i shut down the tomcat and restarted and every time it was ok, many my 
test application ran properly too.
 
Today morning when i started  my computer everything seems to be stopped. When 
I tried to start Tomcat server, it gave  lots of error msgs. At the end said 
started in 180ms (which is too small compare to normal time). When i tried 
http://localhost:8080/ i could not open.
Further more i can not delete any folder inside /webapp/ , can not rename any 
folder. 
 
When i tried to see Control Panel-System-Advance-Environment Variables I am 
unable to edit PATH / CLASSPATH variables.
 
What i did : in different directory i re-installed Tomcat server, seems to be 
working. I tried to delete old TomCat directory - but i am getting following 
error 
 
Can not delete bootstrap.jar : Access is denied. The source file may be in use.
 
I do not know what to do, i need to modify the PATH variable to compile few 
java files. Pls pls help me i am really stuck
 
regards
Manisha
 
 
 


-
Do you Yahoo!?
 Yahoo! Mail - now with 250MB free storage. Learn more.

RE: Tomcat server - Strange problem - stuck like anything

2004-12-21 Thread John Najarian
This sounds like you have a process or user locking things.  I would restart
the entire machine.  Then try everything again.

-Original Message-
From: Manisha Sathe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 21, 2004 5:56 PM
To: [EMAIL PROTECTED]
Subject: Tomcat server - Strange problem - stuck like anything

On my local m/c I had installed Tomcat and it was running properly. I tested
servlet-examples / jsp-example.
 
Yesterday I tried to create new application inside Tomcat (trying to put the
directory structure - web.xml, also tried to put Context... inside
server.xml (later removed as seems not required)
 
Yesterday I also installed struts and ant. Created many test applications.
Many times i shut down the tomcat and restarted and every time it was ok,
many my test application ran properly too.
 
Today morning when i started  my computer everything seems to be stopped.
When I tried to start Tomcat server, it gave  lots of error msgs. At the end
said started in 180ms (which is too small compare to normal time). When i
tried http://localhost:8080/ i could not open.
Further more i can not delete any folder inside /webapp/ , can not rename
any folder. 
 
When i tried to see Control Panel-System-Advance-Environment Variables I
am unable to edit PATH / CLASSPATH variables.
 
What i did : in different directory i re-installed Tomcat server, seems to
be working. I tried to delete old TomCat directory - but i am getting
following error 
 
Can not delete bootstrap.jar : Access is denied. The source file may be in
use.
 
I do not know what to do, i need to modify the PATH variable to compile few
java files. Pls pls help me i am really stuck
 
regards
Manisha
 
 
 


-
Do you Yahoo!?
 Yahoo! Mail - now with 250MB free storage. Learn more.



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



RE: Tomcat server - Strange problem - stuck like anything

2004-12-21 Thread Manisha Sathe
yes i restarted many many times to see whether i can delete the old TomCat, but 
still the same. How to check user locking things btw?
 
regards
Mansiha

John Najarian [EMAIL PROTECTED] wrote:
This sounds like you have a process or user locking things. I would restart
the entire machine. Then try everything again.

-Original Message-
From: Manisha Sathe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 21, 2004 5:56 PM
To: [EMAIL PROTECTED]
Subject: Tomcat server - Strange problem - stuck like anything

On my local m/c I had installed Tomcat and it was running properly. I tested
servlet-examples / jsp-example.

Yesterday I tried to create new application inside Tomcat (trying to put the
directory structure - web.xml, also tried to put inside
server.xml (later removed as seems not required)

Yesterday I also installed struts and ant. Created many test applications.
Many times i shut down the tomcat and restarted and every time it was ok,
many my test application ran properly too.

Today morning when i started my computer everything seems to be stopped.
When I tried to start Tomcat server, it gave lots of error msgs. At the end
said started in 180ms (which is too small compare to normal time). When i
tried http://localhost:8080/ i could not open.
Further more i can not delete any folder inside /webapp/ , can not rename
any folder. 

When i tried to see Control Panel-System-Advance-Environment Variables I
am unable to edit PATH / CLASSPATH variables.

What i did : in different directory i re-installed Tomcat server, seems to
be working. I tried to delete old TomCat directory - but i am getting
following error 

Can not delete bootstrap.jar : Access is denied. The source file may be in
use.

I do not know what to do, i need to modify the PATH variable to compile few
java files. Pls pls help me i am really stuck

regards
Manisha





-
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.



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



-
Do you Yahoo!?
 The all-new My Yahoo! – Get yours free!

RE: Tomcat server - Strange problem - stuck like anything

2004-12-21 Thread Manisha Sathe
One more thing i noticed, my projects inside Eclipse IDE  also not getting 
deleted. Then i had crated one directory to test Ant - that is also not getting 
deleted. It gives error saying build.xml is in use
 
I am totally confused now, pls pls help me
 
regards
Manisha
 

Manisha Sathe [EMAIL PROTECTED] wrote:
yes i restarted many many times to see whether i can delete the old TomCat, but 
still the same. How to check user locking things btw?

regards
Mansiha

John Najarian wrote:
This sounds like you have a process or user locking things. I would restart
the entire machine. Then try everything again.

-Original Message-
From: Manisha Sathe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 21, 2004 5:56 PM
To: [EMAIL PROTECTED]
Subject: Tomcat server - Strange problem - stuck like anything

On my local m/c I had installed Tomcat and it was running properly. I tested
servlet-examples / jsp-example.

Yesterday I tried to create new application inside Tomcat (trying to put the
directory structure - web.xml, also tried to put inside
server.xml (later removed as seems not required)

Yesterday I also installed struts and ant. Created many test applications.
Many times i shut down the tomcat and restarted and every time it was ok,
many my test application ran properly too.

Today morning when i started my computer everything seems to be stopped.
When I tried to start Tomcat server, it gave lots of error msgs. At the end
said started in 180ms (which is too small compare to normal time). When i
tried http://localhost:8080/ i could not open.
Further more i can not delete any folder inside /webapp/ , can not rename
any folder. 

When i tried to see Control Panel-System-Advance-Environment Variables I
am unable to edit PATH / CLASSPATH variables.

What i did : in different directory i re-installed Tomcat server, seems to
be working. I tried to delete old TomCat directory - but i am getting
following error 

Can not delete bootstrap.jar : Access is denied. The source file may be in
use.

I do not know what to do, i need to modify the PATH variable to compile few
java files. Pls pls help me i am really stuck

regards
Manisha





-
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.



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



-
Do you Yahoo!?
The all-new My Yahoo! – Get yours free! 

-
Do you Yahoo!?
 Yahoo! Mail - Easier than ever with enhanced search. Learn more.

Re: Re: Chirag: Can Tomcat Server be surfed from the Machine where the Server it is running

2004-12-11 Thread Chirag
I checked as per your instructions
 
Compare:
http://203.192.197.197:8080  throws above exception
http://127.0.0.1:8080  The page cannot be displayed(because it has been set to 
IP of 203.192.197.197) as per address attribute
http://localhost:8080 The page cannot be displayed(because it has been set to 
IP of 203.192.197.197) as per address attribute
http://www.yoururl.com:8080  throws above exception(by using subdomain)
 
These were checked in JDK 1.5
 
I think tomcat-5.5.2 cannot work in JDK1.4 Am I correct
I mean as per this page 
http://apache.mirrors.hoobly.com/jakarta/tomcat-5/v5.5.4/README.html
 
It says though it is of version 5.5.4 that it requires Tomcat 5.5 requires JRE 
5.0 by default
 
Thanks in advance
 
CSJakharia


 Subscribe to bermudaEmail:  [input]  [input]  Browse Archives at 
groups-beta.google.com 



-
Do you Yahoo!?
 Meet the all-new My Yahoo! – Try it today! 

Re: Chirag: Can Tomcat Server be surfed from the Machine where the Server it is running

2004-12-11 Thread Christoph Kutzinski
Chirag wrote:
 
I think tomcat-5.5.2 cannot work in JDK1.4 Am I correct
I mean as per this page http://apache.mirrors.hoobly.com/jakarta/tomcat-5/v5.5.4/README.html
 
It says though it is of version 5.5.4 that it requires Tomcat 5.5 requires JRE 5.0 by default
You can install a compatibility package to make it run on JDK 1.4
See:
http://apache.mirrors.hoobly.com/jakarta/tomcat-5/v5.5.4/RELEASE-NOTES
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Re: Chirag: Can Tomcat Server be surfed from the Machine where the Server it is running

2004-12-11 Thread Parsons Technical Services
Before you make the changes to go to JDK 1.4 try removing the address 
attribute. This will require that you have IP addresses assigned to all 
adapters. If you still have the second adapter enabled, go into network from 
control panel and assign it a static IP(you may want to do this anyway).

Doug
- Original Message - 
From: Chirag [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, December 11, 2004 9:09 AM
Subject: Re: Re: Chirag: Can Tomcat Server be surfed from the Machine where 
the Server it is running


I checked as per your instructions
Compare:
http://203.192.197.197:8080  throws above exception
http://127.0.0.1:8080  The page cannot be displayed(because it has been 
set to IP of 203.192.197.197) as per address attribute
http://localhost:8080 The page cannot be displayed(because it has been set 
to IP of 203.192.197.197) as per address attribute
http://www.yoururl.com:8080  throws above exception(by using subdomain)

These were checked in JDK 1.5
I think tomcat-5.5.2 cannot work in JDK1.4 Am I correct
I mean as per this page 
http://apache.mirrors.hoobly.com/jakarta/tomcat-5/v5.5.4/README.html

It says though it is of version 5.5.4 that it requires Tomcat 5.5 requires 
JRE 5.0 by default

Thanks in advance
CSJakharia
Subscribe to bermudaEmail:  [input]  [input]  Browse Archives at 
groups-beta.google.com


-
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today! 

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


Re: [OT]Internal Netbeans Tomcat server

2004-12-10 Thread Peng Tuck Kwok
It says you have attempted to forward after a response has been commited. 
Can you post some code related to this error ? 

On Thu, 9 Dec 2004 12:15:12 -0700, Chris Cherrett
[EMAIL PROTECTED] wrote:
 java.lang.IllegalStateException: Cannot forward after response has been
 committed
  is the error message in the console. Why do I get this error in the internal
 server and not in the external tomcat server?
 
 
 
 On December 9, 2004 11:57 am, Chris Cherrett wrote:
  I am trying to test my webapp under the tomcat server in netbeans. after
  logging on the the app I am recieving 404 errors. It seems to find the
  uinitial pages but wont redirect to any other pages.
 
  Any help?
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 --
 Chris Cherrett
 Tracking Solutions International
 1-877-TSIWARE
 www.tsiware.com
 
 
 
 -
 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: Chirag: Can Tomcat Server be surfed from the Machine where the Server it is running

2004-12-10 Thread Parsons Technical Services
Following a few post about being off topic, I leaning towards that this may 
end up OT.

Try a few test:
Compare:
http://203.192.197.197:8080
http://127.0.0.1:8080
http://localhost:8080
http://www.yoururl.com:8080If you have a url.
You might also try back stepping to a 1.4 JDK as a test.
Are all the updates applied to the OS?
At this point I don't have a clue but want to narrow it down so that we can 
point you in the right direction. I am leaning towards an issue with the JDK 
running on Win98.

I don't know how many on the list are running W98, but I think it may be 
fairly small. And with JDK 1.5 even less.

Doug
- Original Message - 
From: Chirag [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 10, 2004 10:20 AM
Subject: Chirag: Can Tomcat Server be surfed from the Machine where the 
Server it is running


Software Installed
--
jakarta-tomcat-5.5.2
Windows 98SE
IE6.0SP1
Requirement
---
I have a Tomcat Server
It is running properly.
I mean if it is surfed from the machine where the
Server is running
If I access this website from other machine in the
Internet then there is no problem
But if I try to access the Server from the machine
where the Server is installed then it throws the
following Exception
Dec 9, 2004 11:37:44 AM
org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket¤
SEVERE: Endpoint
ServerSocket[addr=/203.192.197.197,port=0,localport=8080]
ignored exception: java.net.SocketException: socket
closed
java.net.SocketException: socket closed
   at
java.net.PlainSocketImpl.socketAccept(Native Method)
   at
java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
   at
java.net.ServerSocket.implAccept(ServerSocket.java:450)
   at
java.net.ServerSocket.accept(ServerSocket.java:421)
   at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60)
   at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:368)
   at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)
Dec 9, 2004 11:37:45 AM
org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
WARNING: Reinitializing ServerSocket
Dec 9, 2004 11:37:45 AM
org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
SEVERE: Endpoint null ignored exception:
java.net.BindException: Address already in use:
JVM_Bind:8080
java.net.BindException: Address already in use:
JVM_Bind:8080
   at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:264)
   at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:429)
   at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)
Dec 9, 2004 11:37:45 AM
org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
WARNING: Restarting endpoint
Dec 9, 2004 11:37:45 AM
org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
SEVERE: Endpoint null shutdown due to exception:
java.net.BindException: Address already in use:
JVM_Bind:8080
java.net.BindException: Address already in use:
JVM_Bind:8080
   at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:264)
   at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:441)
   at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)
Dec 9, 2004 11:37:45 AM
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable
run
SEVERE: Caught exception (java.lang.ThreadDeath)
executing
[EMAIL PROTECTED],
terminating thread

Is it a rule that it cannot be surfed from the machine
where the server is installed.If not then what is the
Exception
Thanks in advance
CSJakharia
=
Subscribe to bermudaEmail:  [input]  [input]  Browse Archives at 
groups-beta.google.com



__
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
-
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: [OT]Internal Netbeans Tomcat server

2004-12-10 Thread D. McMillan
On Fri, 10 Dec 2004 08:22:12 -0400, Peng Tuck Kwok
[EMAIL PROTECTED] wrote:
It says you have attempted to forward after a response has been commited. 
Can you post some code related to this error ? 

yes here's the code involved with the problem (at least this is the code 
that's giving the error.  It's inside a controller class.

RequestDispatcher showDispatcher =
  req.getRequestDispatcher(showService);
 
if (showDispatcher != null) 
{
System.out.println(before crash);
showDispatcher.forward(req, res);
System.out.println(after crash);
}
 
the error is occuring on the showDispatcher.forward(req, res); line.

What's weird if it was already forwarded then the taskDispatcher should be 
null.  In which case this code should not fire at all.  When Tomcat is run 
from commandline this is exactly what happens, and no errors.  But when it's 
run from within Netbeans  the following error is outputted to the browser 
window.
type Status report

message /Profiler_Test/servlet/TSIController.TSIController

description The requested resource 
(/Profiler_Test/servlet/TSIController.TSIController) is not available.

and the console output has this error
java.lang.IllegalStateException: Cannot forward after response has been 
committed

I find it odd that it works fine from commandline, but fails inside of 
netbeans.  

Dan McMillan
 

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



Chirag: Can Tomcat Server be surfed from the Machine where the Server it is running

2004-12-10 Thread Chirag
Software Installed
--
jakarta-tomcat-5.5.2
Windows 98SE
IE6.0SP1

Requirement
---
I have a Tomcat Server
It is running properly.
I mean if it is surfed from the machine where the
Server is running

If I access this website from other machine in the
Internet then there is no problem

But if I try to access the Server from the machine
where the Server is installed then it throws the
following Exception

Dec 9, 2004 11:37:44 AM
org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket¤
SEVERE: Endpoint
ServerSocket[addr=/203.192.197.197,port=0,localport=8080]
ignored exception: java.net.SocketException: socket
closed
java.net.SocketException: socket closed
at
java.net.PlainSocketImpl.socketAccept(Native Method)
at
java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
at
java.net.ServerSocket.implAccept(ServerSocket.java:450)
at
java.net.ServerSocket.accept(ServerSocket.java:421)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:368)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Dec 9, 2004 11:37:45 AM
org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
WARNING: Reinitializing ServerSocket
Dec 9, 2004 11:37:45 AM
org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
SEVERE: Endpoint null ignored exception:
java.net.BindException: Address already in use:
JVM_Bind:8080
java.net.BindException: Address already in use:
JVM_Bind:8080
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:264)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:429)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Dec 9, 2004 11:37:45 AM
org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
WARNING: Restarting endpoint
Dec 9, 2004 11:37:45 AM
org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
SEVERE: Endpoint null shutdown due to exception:
java.net.BindException: Address already in use:
JVM_Bind:8080
java.net.BindException: Address already in use:
JVM_Bind:8080
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:264)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:441)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Dec 9, 2004 11:37:45 AM
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable
run
SEVERE: Caught exception (java.lang.ThreadDeath)
executing
[EMAIL PROTECTED],
terminating thread



Is it a rule that it cannot be surfed from the machine
where the server is installed.If not then what is the
Exception

Thanks in advance

CSJakharia

=
 Subscribe to bermudaEmail:  [input]  [input]  Browse Archives at 
groups-beta.google.com 





__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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


[OT]Internal Netbeans Tomcat server

2004-12-09 Thread Chris Cherrett
I am trying to test my webapp under the tomcat server in netbeans. after 
logging on the the app I am recieving 404 errors. It seems to find the 
uinitial pages but wont redirect to any other pages. 

Any help?

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



Re: [OT]Internal Netbeans Tomcat server

2004-12-09 Thread Chris Cherrett
java.lang.IllegalStateException: Cannot forward after response has been 
committed
 is the error message in the console. Why do I get this error in the internal 
server and not in the external tomcat server?

On December 9, 2004 11:57 am, Chris Cherrett wrote:
 I am trying to test my webapp under the tomcat server in netbeans. after
 logging on the the app I am recieving 404 errors. It seems to find the
 uinitial pages but wont redirect to any other pages.

 Any help?

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

-- 
Chris Cherrett
Tracking Solutions International
1-877-TSIWARE
www.tsiware.com

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



Re: [OT]Internal Netbeans Tomcat server

2004-12-09 Thread Laconia Data Systems
Stuff
Im assuming you have Proxy Forward and Reverse already configured for your
webapp within Apache HTTP Server HTTPD.conf?
Once you have reached $TOMCAT_HOME/YourWebapp you will need to relatively
path to your classes either by
$TOMCAT_HOME/YourWebApp/WEB-INF/classes/PackageName/*.class
or jar everything up and place in
$TOMCAT_HOME/YourWebApp/WEB-INF/lib/NameOfWebAppClassesJar.jar
Hope that helps,
Martin-
- Original Message - 
From: Chris Cherrett [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, December 09, 2004 1:57 PM
Subject: [OT]Internal Netbeans Tomcat server


 I am trying to test my webapp under the tomcat server in netbeans. after
 logging on the the app I am recieving 404 errors. It seems to find the
 uinitial pages but wont redirect to any other pages.

 Any help?

 -
 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: [OT]Internal Netbeans Tomcat server

2004-12-09 Thread Chris Cherrett
I am not using HTTPD.conf. I am only using tomcat.

On December 9, 2004 12:45 pm, Laconia Data Systems wrote:
 Stuff
 Im assuming you have Proxy Forward and Reverse already configured for your
 webapp within Apache HTTP Server HTTPD.conf?
 Once you have reached $TOMCAT_HOME/YourWebapp you will need to relatively
 path to your classes either by
 $TOMCAT_HOME/YourWebApp/WEB-INF/classes/PackageName/*.class
 or jar everything up and place in
 $TOMCAT_HOME/YourWebApp/WEB-INF/lib/NameOfWebAppClassesJar.jar
 Hope that helps,
 Martin-
 - Original Message -
 From: Chris Cherrett [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, December 09, 2004 1:57 PM
 Subject: [OT]Internal Netbeans Tomcat server

  I am trying to test my webapp under the tomcat server in netbeans. after
  logging on the the app I am recieving 404 errors. It seems to find the
  uinitial pages but wont redirect to any other pages.
 
  Any help?
 
  -
  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]

-- 
Chris Cherrett
Tracking Solutions International
1-877-TSIWARE
www.tsiware.com

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



Re: Queries on Embedded Tomcat Server

2004-12-01 Thread Jean-Francois Arcand

Mohamed Rafi S wrote:
Hi Jean,
Jeanfrancois ;-)
There is no exception getting thrown, verified this. Immediately after 
appLoader.startTomcat(), if I give a Thread.sleep(1), then till that 
duration, I am able to access http://localhost:8080/ successfully 
without any issue.

So, any pointers on how to make this always available ?

I recommend you start a Thread that start Tomcat and lock on an object. 
When you stop you app, just unlock thin thread.

Hope that help
-- Jeanfrancois

Thanks,
Mohamed Rafi S

Mohamed Rafi S wrote:
Hi All,
I need to run a Embedded Tomcat server in my application. For this, I 
checked the sample code and docs, and did the needful.
My application's main class is ApplicationLoader.java, and in the 
main() method of my   ApplicationLoader.java, I am doing a 
appLoader.startTomcat(). However, the server which comes up 
terminates once the main method is complete. How do I make the server 
run continously ?
Any pointers into this ?

How do you start the Emnbedded Tomcat? Are you sure there is no 
swallowed exception?

-- Jeanfrancois

Thanks,
Rafi SM
-
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]

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


Re: Queries on Embedded Tomcat Server

2004-12-01 Thread Mohamed Rafi S
Hi,
Even when I dont do a appLoader.stopTomcat();, it goes down and is no  
longer accessible.

Thanks,
Mohamed Rafi S

Hi,
  Just my silly guess,
  Did you do this:
  tomcat.startTomcat();
   ...
  Thread.sleep(1);
  tomcat.stopTomcat();
  That is you call stopTomcat() right after you sleep ?

On Tue, 30 Nov 2004 17:47:26 -0800, Mohamed Rafi S
[EMAIL PROTECTED] wrote:
Hi Jean,
There is no exception getting thrown, verified this. Immediately after
appLoader.startTomcat(), if I give a Thread.sleep(1), then till
that duration, I am able to access http://localhost:8080/ successfully
without any issue.
So, any pointers on how to make this always available ?
Thanks,
Mohamed Rafi S


Mohamed Rafi S wrote:
Hi All,
I need to run a Embedded Tomcat server in my application. For this,  
I
checked the sample code and docs, and did the needful.
My application's main class is ApplicationLoader.java, and in the
main() method of my   ApplicationLoader.java, I am doing a
appLoader.startTomcat(). However, the server which comes up
terminates once the main method is complete. How do I make the  
server
run continously ?
Any pointers into this ?
How do you start the Emnbedded Tomcat? Are you sure there is no
swallowed exception?
-- Jeanfrancois

Thanks,
Rafi SM
 
-
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]


--
Regards,
Peik Feng
-
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: Queries on Embedded Tomcat Server

2004-12-01 Thread DJohnson
My guess is that when running Tomcat embedded within your application, 
Tomcat provides no non-daemon Threads.  The JVM will shut down when the 
last non-daemon Thread exits, so when your Main method completes, the JVM 
shuts down.  This makes sense, when you consider that embedding Tomcat in 
an application implies that the application is up and running also. 

If your simple class is only for testing purposes, then you may want to 
sleep long enough to do your testing, or read from the console, so it will 
be alive waiting on console input, until you respond, which puts the 
timeframe under your control.  If this simple class is your whole 
application, then I'd suggest you run Tomcat standalone. 



Please respond to Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: Queries on Embedded Tomcat Server



Hi,

Even when I dont do a appLoader.stopTomcat();, it goes down and is no
longer accessible.

Thanks,
Mohamed Rafi S




Queries on Embedded Tomcat Server

2004-11-30 Thread Mohamed Rafi S
Hi All,
I need to run a Embedded Tomcat server in my application. For this, I 
checked the sample code and docs, and did the needful.

My application's main class is ApplicationLoader.java, and in the 
main() method of my   ApplicationLoader.java, I am doing a 
appLoader.startTomcat(). However, the server which comes up terminates 
once the main method is complete. How do I make the server run 
continously ?

Any pointers into this ?
Thanks,
Rafi SM

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


Re: Queries on Embedded Tomcat Server

2004-11-30 Thread Jeanfrancois Arcand

Mohamed Rafi S wrote:
Hi All,
I need to run a Embedded Tomcat server in my application. For this, I 
checked the sample code and docs, and did the needful.

My application's main class is ApplicationLoader.java, and in the main() 
method of my   ApplicationLoader.java, I am doing a 
appLoader.startTomcat(). However, the server which comes up terminates 
once the main method is complete. How do I make the server run 
continously ?

Any pointers into this ?
How do you start the Emnbedded Tomcat? Are you sure there is no 
swallowed exception?

-- Jeanfrancois

Thanks,
Rafi SM

-
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: Queries on Embedded Tomcat Server

2004-11-30 Thread Mohamed Rafi S
Hi Jean,
There is no exception getting thrown, verified this. Immediately after 
appLoader.startTomcat(), if I give a Thread.sleep(1), then till 
that duration, I am able to access http://localhost:8080/ successfully 
without any issue.

So, any pointers on how to make this always available ?
Thanks,
Mohamed Rafi S

Mohamed Rafi S wrote:
Hi All,
I need to run a Embedded Tomcat server in my application. For this, I 
checked the sample code and docs, and did the needful.
My application's main class is ApplicationLoader.java, and in the 
main() method of my   ApplicationLoader.java, I am doing a 
appLoader.startTomcat(). However, the server which comes up 
terminates once the main method is complete. How do I make the server 
run continously ?
Any pointers into this ?
How do you start the Emnbedded Tomcat? Are you sure there is no 
swallowed exception?

-- Jeanfrancois

Thanks,
Rafi SM
-
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: Queries on Embedded Tomcat Server

2004-11-30 Thread Peik Feng
Hi,
  Just my silly guess,
  Did you do this:

  tomcat.startTomcat();
   ...
  Thread.sleep(1);
  tomcat.stopTomcat();

  That is you call stopTomcat() right after you sleep ?



On Tue, 30 Nov 2004 17:47:26 -0800, Mohamed Rafi S
[EMAIL PROTECTED] wrote:
 
 Hi Jean,
 
 There is no exception getting thrown, verified this. Immediately after
 appLoader.startTomcat(), if I give a Thread.sleep(1), then till
 that duration, I am able to access http://localhost:8080/ successfully
 without any issue.
 
 So, any pointers on how to make this always available ?
 
 Thanks,
 Mohamed Rafi S
 
 
 
 
 
  Mohamed Rafi S wrote:
  Hi All,
  I need to run a Embedded Tomcat server in my application. For this, I
  checked the sample code and docs, and did the needful.
  My application's main class is ApplicationLoader.java, and in the
  main() method of my   ApplicationLoader.java, I am doing a
  appLoader.startTomcat(). However, the server which comes up
  terminates once the main method is complete. How do I make the server
  run continously ?
  Any pointers into this ?
 
  How do you start the Emnbedded Tomcat? Are you sure there is no
  swallowed exception?
 
  -- Jeanfrancois
 
 
  Thanks,
  Rafi SM
  -
  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]
 
 


-- 
Regards,
Peik Feng

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



xml pages on Tomcat server???

2004-11-29 Thread Kashif Siddiqui
Hi all,

I want to host some xml pages for WAP. Please guide me
that is it possible to host these pages on Tomcat
server? and how can I host these pages in Tomcat
server? and what changes I have to made in server.xml
file?

Thanks in advance...





__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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



RE: xml pages on Tomcat server???

2004-11-29 Thread Allistair Crossley
this is not really a tomcat question. you can configure your web server (or 
tomcat I suppose in the global web.xml) to handle MIME extensions for wap 
files. but most importantly your JSP/Servlet code would need to set the 
response content type to the appropriate WAP types which is not a question for 
this list.

lookup MIME types for your web server, or tomcat.

Allistair.

 -Original Message-
 From: Kashif Siddiqui [mailto:[EMAIL PROTECTED]
 Sent: 29 November 2004 13:20
 To: Tomcat Users List
 Subject: xml pages on Tomcat server???
 
 
 Hi all,
 
 I want to host some xml pages for WAP. Please guide me
 that is it possible to host these pages on Tomcat
 server? and how can I host these pages in Tomcat
 server? and what changes I have to made in server.xml
 file?
 
 Thanks in advance...
 
 
 
 
   
 __ 
 Do you Yahoo!? 
 Yahoo! Mail - Helps protect you from nasty viruses. 
 http://promotions.yahoo.com/new_mail
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: xml pages on Tomcat server???

2004-11-29 Thread sven morales
Hi,
   For the unaware, there is a top level Apache
project  called Cocoon that can facilitate output
formats to just about anything. As starting point,
here are several links:

http://wiki.apache.org/cocoon/HowTos
http://marc.theaimsgroup.com/?l=xml-cocoon-usersr=1w=4
http://cocoon.apache.org/2.1/developing/deliquick.html
http://cocoon.apache.org/2.1/developing/portal/portal-block.html#Configuring+Coplets

Get hold of a Cocoon source, compile this, run the
samples on Tomcat and have fun.   Intructions to
download is on one of the links above.
Warning, this is a complex framework and can be
difficult to learn. Knowledge of XML technologies is a
basic requirement.

--- Allistair Crossley [EMAIL PROTECTED]
wrote:

 this is not really a tomcat question. you can
 configure your web server (or tomcat I suppose in
 the global web.xml) to handle MIME extensions for
 wap files. but most importantly your JSP/Servlet
 code would need to set the response content type to
 the appropriate WAP types which is not a question
 for this list.
 
 lookup MIME types for your web server, or tomcat.
 
 Allistair.
 
  -Original Message-
  From: Kashif Siddiqui
 [mailto:[EMAIL PROTECTED]
  Sent: 29 November 2004 13:20
  To: Tomcat Users List
  Subject: xml pages on Tomcat server???
  
  
  Hi all,
  
  I want to host some xml pages for WAP. Please
 guide me
  that is it possible to host these pages on Tomcat
  server? and how can I host these pages in Tomcat
  server? and what changes I have to made in
 server.xml
  file?
  
  Thanks in advance...
  
  
  
  
  
  __ 
  Do you Yahoo!? 
  Yahoo! Mail - Helps protect you from nasty
 viruses. 
  http://promotions.yahoo.com/new_mail
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 

---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474

---
 /FONT
 
 

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




__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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



Error while starting up Embedded tomcat server

2004-11-19 Thread Mohamed Rafi S
Hi,
I am getting an error while  try to bring up my Embedded Tomcat server.  
Following is given as the root cause of the Exception:

at EmbeddedTomcat.main(EmbeddedTomcat.java:126)
Caused by: java.util.MissingResourceException: Can't find bundle for  
base name org.apache.catalina.servlets.LocalStrings, locale en_US
at  
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.ja 
va:804)
at  
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:511)

I have included all the required jars in the classpath, and verified  
this too. Also, when I start the Tomcat server through  
~/bin/startserver.sh, it comes up without any issue.

Any idea on why the error gets thrown while starting through Embedded ?
Thanks and Regards
Mohamed Rafi S
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Error while trying to start the Embedded Tomcat Server:

2004-11-18 Thread Mohamed Rafi S
Hi All,
I am trying to have a Embedded Tomcat Server. I got the examples to do  
so from the web, and modified the code, so that my Tomcat server is  
embedded along with the Web Application.

However, when I run the Embedded Tomcat class, it, I am getting the  
following error:

StandardManager[/TestApp]: Seeding of random number generator has been  
completed
StandardWrapper[/TestApp:default]: Loading container servlet default
StandardWrapper[/TestApp:default]: Marking servlet default as  
unavailable
StandardContext[/TestApp]: Servlet /TestApp threw load() exception
javax.servlet.ServletException: Error instantiating servlet class  
org.apache.catalina.servlets.DefaultServlet
at  
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav 
a:865)
at  
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:776)
at  
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j 
ava:3363)

I have attached the Embedded Tomcat java source file as well.
What am I missing in this ? Any solution or pointers to why this is  
occurring are most welcome.

Thanks and Regards,
Mohamed Rafi S
//package com.apple.pos;

import java.net.URL;
import org.apache.catalina.Connector;
import org.apache.catalina.Context;
import org.apache.catalina.Deployer;
import org.apache.catalina.Engine;
import org.apache.catalina.Host;
import org.apache.catalina.logger.SystemOutLogger;
import org.apache.catalina.startup.Embedded;
import org.apache.catalina.Container;


public class EmbeddedTomcat {


public static int tesss = 0;

  private String path = null;
  private Embedded embedded = null;
  private Host host = null;

  public EmbeddedTomcat() {
tesss = ;
  }


  public void setPath(String path) {

this.path = path;
  }


  public String getPath() {

return path;
  }


  public void startTomcat() throws Exception {

Engine engine = null;
System.setProperty(catalina.home, getPath());

embedded = new Embedded();
embedded.setDebug(0);
embedded.setLogger(new SystemOutLogger());

engine = embedded.createEngine();
engine.setDefaultHost(localhost);

host = embedded.createHost(localhost, getPath() + /webapps);
engine.addChild(host);

Context context1 = embedded.createContext(/TestApp, getPath() + 
/webapps/TestAppp);
host.addChild(context1);

embedded.addEngine(engine);

Connector connector = embedded.createConnector(null, 8080, false);

embedded.addConnector(connector);
embedded.start();
  }

  public void stopTomcat() throws Exception {

embedded.stop();
  }

  public void registerWAR(String contextPath, URL warFile)
throws Exception {

if ( contextPath == null ) {

  throw new Exception(Invalid Path :  + contextPath);
}
if( contextPath.equals(/) ) {

  contextPath = ;
}
if ( warFile == null ) {

  throw new Exception(Invalid WAR :  + warFile);
}

Deployer deployer = (Deployer)host;
Context context = deployer.findDeployedApp(contextPath);

if (context != null) {

  throw new
Exception(Context  + contextPath +  Already Exists!);
}
deployer.install(contextPath, warFile);
  }

  public void unregisterWAR(String contextPath)
throws   Exception {

Context context = host.map(contextPath);
if ( context != null ) {

  embedded.removeContext(context);
}
else {

  throw new
Exception(Context does not exist for named path :   + contextPath);
}
  }

  public static void main(String args[]) {

try {

  EmbeddedTomcat tomcat = new EmbeddedTomcat();
  
tomcat.setPath(/Users/rafi/Desktop/Tomcat_Research/jakarta-tomcat-4.1.31/);
  tomcat.startTomcat();
  Thread.sleep(100);

  tomcat.stopTomcat();

  System.exit(0);
}
catch( Exception e ) {

  e.printStackTrace();
}
  }


}




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

RE: Error while trying to start the Embedded Tomcat Server:

2004-11-18 Thread Shapira, Yoav

Hi,

org.apache.catalina.servlets.DefaultServlet
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja
v
a:865)
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:776)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.
j

Is there a root cause further down the stack trace?

Yoav



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]



Re: Error while trying to start the Embedded Tomcat Server:

2004-11-18 Thread Mohamed Rafi S
Yes, following is the root cause given from the exception logs...:
- Root Cause -
java.lang.ExceptionInInitializerError
at  
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at  
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA 
ccessorImpl.java:39)
at  
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons 
tructorAccessorImpl.java:27)
at  
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at  
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav 
a:856)
at  
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:776)
at  
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j 
ava:3363)
at  
org.apache.catalina.core.StandardContext.start(StandardContext.java: 
3586)
at  
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at  
org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
at  
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at  
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
at org.apache.catalina.startup.Embedded.start(Embedded.java:945)
at EmbeddedTomcat.startTomcat(EmbeddedTomcat.java:70)
at EmbeddedTomcat.main(EmbeddedTomcat.java:126)
Caused by: java.util.MissingResourceException: Can't find bundle for  
base name org.apache.catalina.servlets.LocalStrings, locale en_US
at  
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.ja 
va:804)
at  
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:511)
at  
org.apache.catalina.util.StringManager.init(StringManager.java:68)
at  
org.apache.catalina.util.StringManager.getManager(StringManager.java: 
213)
at  
org.apache.catalina.servlets.DefaultServlet.clinit(DefaultServlet.java 
:186)
... 17 more

Thanks,
Mohamed Rafi S

Hi,
org.apache.catalina.servlets.DefaultServlet
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.j 
a
v
a:865)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java: 
776)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext 
.
j
Is there a root cause further down the stack trace?
Yoav

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: Help on tomcat server path set up

2004-09-22 Thread Antony Paul
This may be due to having 2 or more servlet.jar files in the class path.
Check that WEB-INF\lib dont have this jar file. This jar file is provided by
the container.
Also no need to set up classpath for running Tomcat. The Tomcat start up
scripts does this. The classpath you set cannot be seen by the applications
you deploy in Tomcat

rgds
Antony Paul

- Original Message -
From: Shanti Priya [EMAIL PROTECTED]
To: Tomcat-User [EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 11:24 AM
Subject: Help on tomcat server path set up


 Hi !!
 I am using tomcat 4.1.18 version.Whenever i startup my
 tomcat it throws the  following error .I have actually set up the paths
 properly.


 The server message is as follows.

 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.18
 WebappClassLoader: validateJarFile(C:\Program Files\Apache Group\Tomcat
 4.1\bin\
 ..\webapps\AS-IT\WEB-INF\lib\servlet_2_3.jar) - jar not loaded. See
Servlet
 Spec
  2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
 WebappClassLoader: validateJarFile(C:\Program Files\Apache Group\Tomcat
 4.1\weba
 pps\AS-IT\WEB-INF\lib\servlet_2_3.jar) - jar not loaded. See Servlet Spec
 2.3, s
 ection 9.7.2. Offending class: javax/servlet/Servlet.class
 Sep 22, 2004 10:43:53 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on port 8080
 Sep 22, 2004 10:43:54 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Sep 22, 2004 10:43:54 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=32/94  config=C:\Program Files\Apache
 Group\Tomcat 4.
 1\bin\..\conf\jk2.properties



 My classpath(Env variables) is as follows

 %CLASSPATH%;D:\tomcat\common\lib\tools.jar;
 C:\Program Files\Apache Group\Tomcat 4.1\common\lib;
 C:\Program Files\Apache Group\Tomcat 4.1\webapps\AS-IT\WEB-INF\lib\*.jar;
 C:\Program Files\Apache Group\Tomcat 4.1\webapps\AS-IT\WEB-INF\lib\*.jar;
 C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet_2_3.jar;

 And i do have this servlet_2_3.jar in the following path
 C:\Program Files\Apache Group\Tomcat 4.1\common\lib


 Thanks  Regards,
 Shanti Priya Sunkara

 Location: Pune, India
 Email   : [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: Help on tomcat server path set up

2004-09-22 Thread Shanti Priya
)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:550)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
at java.lang.Thread.run(Thread.java:534)










-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 11:38 AM
To: Tomcat Users List
Subject: Re: Help on tomcat server path set up


This may be due to having 2 or more servlet.jar files in the class path.
Check that WEB-INF\lib dont have this jar file. This jar file is provided by
the container.
Also no need to set up classpath for running Tomcat. The Tomcat start up
scripts does this. The classpath you set cannot be seen by the applications
you deploy in Tomcat

rgds
Antony Paul


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



Re: Unable to start tomcat server

2004-09-21 Thread Suresh Akula
It was a typo and CATALINA_HOME is actually set to C:\Tomcat.
I actually installed tomcat onto folder named
C:\softwares\tomcat\jakarta-tomcat-5.0.27 In this folder i have all bin, 
common and other folders.
But while i am setting class path it is taking lot of place so i moved all 
the folders from above folder structure and into C:\Tomcat and i think that 
should be OK.
For more information i am using windows XP professional OS.
Thanks a lot for reply but i am still unable to start the server.Any help is 
highly appreciated.


From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Suggestion: A dedicated TOMCAT forum!
Date: Tue, 21 Sep 2004 11:54:24 +0800 (WST)
Hi Suresh,
Just by looking at your startup output it seems to be that you have set
your environment variable CATALINA_HOME to C:\Tomca and NOT C:\Tomcat as
it should be. Also ensure that your SDK installation exists in C:\Java as
this is what your JAVA_HOME environment variable is set to. Try doing this
and re-run your server and in theory you shouldn't have any problems.
Kindest Regards,
Matt Anderson
 Hi
 I have downloaded and installed Tomcat 5.0.27 version onto C:\Tomcat and
 set
 the ENV variable
 CATALINA_HOME and JAVA_HOME and also included all the jars available in
 C:\Tomcat\Common\lib folder in the classpath. But when i go to command
 prompt C:\Tomcat\bin and execute startup.bat a black window comes up and
 disappears but my server never starts.On the command window where i
 executed
 startup there appears 4 lines as follows
 Using CATALINA_BASE:   C:\Tomca
 Using CATALINA_HOME:   C:\Tomca
 Using CATALINA_TMPDIR: C:\Tomca
 Using JAVA_HOME:   C:\Java
 but am not able to start the server
 Can anyone please help me on this.


 Thanks
 Suresh Akula

From: nyhgan [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED],  Peng Tuck Kwok
[EMAIL PROTECTED]
Subject: Re: Suggestion: A dedicated TOMCAT forum!
Date: Mon, 20 Sep 2004 20:10:56 -0700 (PDT)

Hi,

I didn't know that there is already a TOMCAT forum.  It is sad to see
 that
the activity is so low there. Maybe that is because no one knows about
 its
existence. I hope the tomcat team can publish the forum url in the
 release
note and also on the tomcat website.

thanks!

nyhgan




Peng Tuck Kwok [EMAIL PROTECTED] wrote:
You mean like the one here : http://nagoya.apache.org/jive/index.jsp ?
Activity seems low if you ask me. Don't know what the plans are for the
forum.


On Mon, 20 Sep 2004 16:14:23 -0500, QM wrote:
  On Mon, Sep 20, 2004 at 02:00:37PM -0700, nyhgan wrote:
  : I believe that having an open discussion forum is the first step
toward such a goal as it will attract a vast number of new users to the
tomcat world.
 
  [EMAIL PROTECTED]
 
  ??
 
  -QM
 
  --
 
  software -- http://www.brandxdev.net
  tech news -- http://www.RoarNetworX.com
 
  -
  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]



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



 -
 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: Unable to start tomcat server

2004-09-21 Thread Ben Souther
  Using JAVA_HOME:   C:\Java..

What is the name of your java installation?




On Tue, 2004-09-21 at 09:01, Suresh Akula wrote:
 It was a typo and CATALINA_HOME is actually set to C:\Tomcat.
 I actually installed tomcat onto folder named
 C:\softwares\tomcat\jakarta-tomcat-5.0.27 In this folder i have all bin, 
 common and other folders.
 But while i am setting class path it is taking lot of place so i moved all 
 the folders from above folder structure and into C:\Tomcat and i think that 
 should be OK.
 For more information i am using windows XP professional OS.
 Thanks a lot for reply but i am still unable to start the server.Any help is 
 highly appreciated.
 
 
 From: [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Suggestion: A dedicated TOMCAT forum!
 Date: Tue, 21 Sep 2004 11:54:24 +0800 (WST)
 
 Hi Suresh,
 
 Just by looking at your startup output it seems to be that you have set
 your environment variable CATALINA_HOME to C:\Tomca and NOT C:\Tomcat as
 it should be. Also ensure that your SDK installation exists in C:\Java as
 this is what your JAVA_HOME environment variable is set to. Try doing this
 and re-run your server and in theory you shouldn't have any problems.
 
 Kindest Regards,
 Matt Anderson
 
   Hi
   I have downloaded and installed Tomcat 5.0.27 version onto C:\Tomcat and
   set
   the ENV variable
   CATALINA_HOME and JAVA_HOME and also included all the jars available in
   C:\Tomcat\Common\lib folder in the classpath. But when i go to command
   prompt C:\Tomcat\bin and execute startup.bat a black window comes up and
   disappears but my server never starts.On the command window where i
   executed
   startup there appears 4 lines as follows
   Using CATALINA_BASE:   C:\Tomca
   Using CATALINA_HOME:   C:\Tomca
   Using CATALINA_TMPDIR: C:\Tomca
   Using JAVA_HOME:   C:\Java
   but am not able to start the server
   Can anyone please help me on this.
  
  
   Thanks
   Suresh Akula
  
  From: nyhgan [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED],  Peng Tuck Kwok
  [EMAIL PROTECTED]
  Subject: Re: Suggestion: A dedicated TOMCAT forum!
  Date: Mon, 20 Sep 2004 20:10:56 -0700 (PDT)
  
  Hi,
  
  I didn't know that there is already a TOMCAT forum.  It is sad to see
   that
  the activity is so low there. Maybe that is because no one knows about
   its
  existence. I hope the tomcat team can publish the forum url in the
   release
  note and also on the tomcat website.
  
  thanks!
  
  nyhgan
  
  
  
  
  Peng Tuck Kwok [EMAIL PROTECTED] wrote:
  You mean like the one here : http://nagoya.apache.org/jive/index.jsp ?
  Activity seems low if you ask me. Don't know what the plans are for the
  forum.
  
  
  On Mon, 20 Sep 2004 16:14:23 -0500, QM wrote:
On Mon, Sep 20, 2004 at 02:00:37PM -0700, nyhgan wrote:
: I believe that having an open discussion forum is the first step
  toward such a goal as it will attract a vast number of new users to the
  tomcat world.
   
[EMAIL PROTECTED]
   
??
   
-QM
   
--
   
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
   
-
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]
  
  
  
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com
  
  
  
   -
   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]
 
 


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



Re: Unable to start tomcat server

2004-09-21 Thread Suresh Akula
What do you mean by name of the java installation. I installed java in the 
folder C:\Java and hence using that for JAVA_HOME?? Any thoughts. Please 
help. I already spent couple of days. Issues looks trivial but am not able 
to start the server. Your help is highly appreciated.

Thanks in advance

From: Ben Souther [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Unable to start tomcat server
Date: Tue, 21 Sep 2004 09:13:35 -0400
  Using JAVA_HOME:   C:\Java..
What is the name of your java installation?

On Tue, 2004-09-21 at 09:01, Suresh Akula wrote:
 It was a typo and CATALINA_HOME is actually set to C:\Tomcat.
 I actually installed tomcat onto folder named
 C:\softwares\tomcat\jakarta-tomcat-5.0.27 In this folder i have all bin,
 common and other folders.
 But while i am setting class path it is taking lot of place so i moved 
all
 the folders from above folder structure and into C:\Tomcat and i think 
that
 should be OK.
 For more information i am using windows XP professional OS.
 Thanks a lot for reply but i am still unable to start the server.Any 
help is
 highly appreciated.


 From: [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Suggestion: A dedicated TOMCAT forum!
 Date: Tue, 21 Sep 2004 11:54:24 +0800 (WST)
 
 Hi Suresh,
 
 Just by looking at your startup output it seems to be that you have set
 your environment variable CATALINA_HOME to C:\Tomca and NOT C:\Tomcat 
as
 it should be. Also ensure that your SDK installation exists in C:\Java 
as
 this is what your JAVA_HOME environment variable is set to. Try doing 
this
 and re-run your server and in theory you shouldn't have any problems.
 
 Kindest Regards,
 Matt Anderson
 
   Hi
   I have downloaded and installed Tomcat 5.0.27 version onto C:\Tomcat 
and
   set
   the ENV variable
   CATALINA_HOME and JAVA_HOME and also included all the jars available 
in
   C:\Tomcat\Common\lib folder in the classpath. But when i go to 
command
   prompt C:\Tomcat\bin and execute startup.bat a black window comes up 
and
   disappears but my server never starts.On the command window where i
   executed
   startup there appears 4 lines as follows
   Using CATALINA_BASE:   C:\Tomca
   Using CATALINA_HOME:   C:\Tomca
   Using CATALINA_TMPDIR: C:\Tomca
   Using JAVA_HOME:   C:\Java
   but am not able to start the server
   Can anyone please help me on this.
  
  
   Thanks
   Suresh Akula
  
  From: nyhgan [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED],  Peng Tuck 
Kwok
  [EMAIL PROTECTED]
  Subject: Re: Suggestion: A dedicated TOMCAT forum!
  Date: Mon, 20 Sep 2004 20:10:56 -0700 (PDT)
  
  Hi,
  
  I didn't know that there is already a TOMCAT forum.  It is sad to 
see
   that
  the activity is so low there. Maybe that is because no one knows 
about
   its
  existence. I hope the tomcat team can publish the forum url in the
   release
  note and also on the tomcat website.
  
  thanks!
  
  nyhgan
  
  
  
  
  Peng Tuck Kwok [EMAIL PROTECTED] wrote:
  You mean like the one here : http://nagoya.apache.org/jive/index.jsp 
?
  Activity seems low if you ask me. Don't know what the plans are for 
the
  forum.
  
  
  On Mon, 20 Sep 2004 16:14:23 -0500, QM wrote:
On Mon, Sep 20, 2004 at 02:00:37PM -0700, nyhgan wrote:
: I believe that having an open discussion forum is the first 
step
  toward such a goal as it will attract a vast number of new users to 
the
  tomcat world.
   
[EMAIL PROTECTED]
   
??
   
-QM
   
--
   
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
   

-
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]
  
  
  
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com
  
  
  
   
-
   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]



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

Re: Unable to start tomcat server

2004-09-21 Thread Hassan Schroeder
Suresh Akula wrote:
 CATALINA_HOME and JAVA_HOME and also included all the jars available in
 C:\Tomcat\Common\lib folder in the classpath. But when i go to command
 prompt C:\Tomcat\bin and execute startup.bat a black window comes up 
and
 disappears but my server never starts.On the command window where i
 executed
 startup there appears 4 lines as follows
 Using CATALINA_BASE:   C:\Tomca
 Using CATALINA_HOME:   C:\Tomca
 Using CATALINA_TMPDIR: C:\Tomca
 Using JAVA_HOME:   C:\Java
 but am not able to start the server
No, it's started, it just ended prematurely. :-)
So it appears that the JAVA_HOME and CATALINA_HOME are probably set
properly; what you need to do is use `.\bin\catalina.bat run` in a
command (cmd.exe) window to start the server so that that window
doesn't disappear on exit along with the error messages that will
*tell you what's wrong*.
HTH,
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: Unable to start tomcat server

2004-09-21 Thread Suresh Akula
)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
   at org.apache.xerces.parsers.XML11Configuration.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.Catalina.load(Catalina.java:489)
   at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
   at java.lang.reflect.Method.invoke(Native Method)
   at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:421)

Thanks
Suresh Akula

From: Hassan Schroeder [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Unable to start tomcat server
Date: Tue, 21 Sep 2004 07:46:09 -0700
Suresh Akula wrote:
 CATALINA_HOME and JAVA_HOME and also included all the jars available 
in
 C:\Tomcat\Common\lib folder in the classpath. But when i go to command
 prompt C:\Tomcat\bin and execute startup.bat a black window comes up 
and
 disappears but my server never starts.On the command window where i
 executed
 startup there appears 4 lines as follows
 Using CATALINA_BASE:   C:\Tomca
 Using CATALINA_HOME:   C:\Tomca
 Using CATALINA_TMPDIR: C:\Tomca
 Using JAVA_HOME:   C:\Java
 but am not able to start the server
No, it's started, it just ended prematurely. :-)
So it appears that the JAVA_HOME and CATALINA_HOME are probably set
properly; what you need to do is use `.\bin\catalina.bat run` in a
command (cmd.exe) window to start the server so that that window
doesn't disappear on exit along with the error messages that will
*tell you what's wrong*.
HTH,
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

-
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: Unable to start tomcat server

2004-09-21 Thread Suresh Akula
I am trying to run my tomcat server but am not able to do. I am struggling 
on this for past 2 days.
I will really appreciate if anyone can help me on this. I am mentioning 
below the message which i get when i run the startup.bat..I already posted 
this message but no one replied. Waiting for response. Thanks much in 
advance...

C:\Tomcat\binstartup.bat
Using CATALINA_BASE:   C:\Tomcat
Using CATALINA_HOME:   C:\Tomcat
Using CATALINA_TMPDIR: C:\Tomcat\temp
Using JAVA_HOME:   C:\Java
[ERROR] Digester - Begin event threw error 
java.lang.ExceptionInInitializerErro
rjava.lang.ExceptionInInitializerError: sun.misc.InvalidJarIndexException: 
Inva
lid index!
  at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594)
  at sun.misc.URLClassPath.getResource(URLClassPath.java:134)
  at java.net.URLClassLoader$2.run(URLClassLoader.java:349)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findResource(URLClassLoader.java:346)
  at 
org.apache.catalina.loader.StandardClassLoader.findResource(StandardC
lassLoader.java:527)
  at 
org.apache.catalina.loader.StandardClassLoader.getResource(StandardCl
assLoader.java:603)
  at 
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:895
)
  at 
org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:
1602)
  at 
org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:107)
  at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(
GlobalResourcesLifecycleListener.java:65)
  at java.lang.Class.newInstance0(Native Method)
  at java.lang.Class.newInstance(Class.java:237)
  at 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.j
ava:253)
  at org.apache.commons.digester.Rule.begin(Rule.java:200)
  at 
org.apache.commons.digester.Digester.startElement(Digester.java:1273)

  at 
org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigest
er.java:65)
  at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Sour
ce)
  at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
  at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(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.XML11Configuration.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.Catalina.load(Catalina.java:489)
  at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
  at java.lang.reflect.Method.invoke(Native Method)
  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:421)

java.lang.reflect.InvocationTargetException: 
java.lang.ExceptionInInitializerErr
or: sun.misc.InvalidJarIndexException: Invalid index!
  at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594)
  at sun.misc.URLClassPath.getResource(URLClassPath.java:134)
  at java.net.URLClassLoader$2.run(URLClassLoader.java:349)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findResource(URLClassLoader.java:346)
  at 
org.apache.catalina.loader.StandardClassLoader.findResource(StandardC
lassLoader.java:527)
  at 
org.apache.catalina.loader.StandardClassLoader.getResource(StandardCl
assLoader.java:603)
  at 
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:895
)
  at 
org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:
1602)
  at 
org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:107)
  at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(
GlobalResourcesLifecycleListener.java:65)
  at java.lang.Class.newInstance0(Native Method)
  at java.lang.Class.newInstance(Class.java:237)
  at 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.j
ava:253)
  at org.apache.commons.digester.Rule.begin(Rule.java:200)
  at 
org.apache.commons.digester.Digester.startElement(Digester.java:1273)

  at 
org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigest
er.java:65)
  at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Sour
ce)
  at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
  at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(Unknown Source

Re: Unable to start tomcat server

2004-09-21 Thread Hassan Schroeder
Suresh Akula wrote:
I am trying to run my tomcat server but am not able to do. I am 
struggling on this for past 2 days.
Earlier you said:
I actually installed tomcat onto folder named
C:\softwares\tomcat\jakarta-tomcat-5.0.27 In this folder i have 
 all bin, common and other folders.
But while i am setting class path it is taking lot of place so i 
 moved all the folders from above folder structure and into
 C:\Tomcat and i think that should be OK.
..think that should be OK? I think that's probably the root of
your problem. Suggestion: delete all the Tomcat stuff you can find
and reinstall from scratch, preferably from a tar file, but at the
least install directly into C:\tomcat. Don't move *anything*. *Do*
remove all the classpath settings you made. You don't need them if
CATALINA_HOME and JAVA_HOME are set correctly.
Then try -- again -- running *catalina.bat run* from a cmd window
and see what happens.
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


RE: Unable to start tomcat server

2004-09-21 Thread John Najarian
Hi Suresh,

   I installed Tomcat in C:\Tomcat
   My Catalina_home environment variable is: c:\tomcat

   Java is installed at C:\j2sdk1.4.2_03
   My Catalina_home environment variable is: C:\j2sdk1.4.2_03

   This more or less corresponds to yours.  Let's check a few other
environment variables.

   The 'Path' variable should include C:\j2sdk1.4.2_03\bin
   My CLASSPATH includes the following: (although I'm not sure if both are
required but it won't hurt)

   c:\j2sdk1.4.2_03;
   c:\Tomcat\common\lib\servlet-api.jar;
   c:\Tomcat\common\lib\jsp-api.jar;
   c:\Tomcat\common\lib\tools.jar;

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 21, 2004 3:16 PM
To: Tomcat Users List
Subject: Re: Unable to start tomcat server

Suresh Akula wrote:

 I am trying to run my tomcat server but am not able to do. I am 
 struggling on this for past 2 days.

Earlier you said:

 I actually installed tomcat onto folder named
 C:\softwares\tomcat\jakarta-tomcat-5.0.27 In this folder i have 
  all bin, common and other folders.
 But while i am setting class path it is taking lot of place so i 
  moved all the folders from above folder structure and into
  C:\Tomcat and i think that should be OK.

..think that should be OK? I think that's probably the root of
your problem. Suggestion: delete all the Tomcat stuff you can find
and reinstall from scratch, preferably from a tar file, but at the
least install directly into C:\tomcat. Don't move *anything*. *Do*
remove all the classpath settings you made. You don't need them if
CATALINA_HOME and JAVA_HOME are set correctly.

Then try -- again -- running *catalina.bat run* from a cmd window
and see what happens.

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

   dream.  code.



-
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: Unable to start tomcat server

2004-09-21 Thread John Najarian
Sorry Suresh, I forgot to put this in the last reply.

   Does the user you are trying to start Tomcat have admin privs?  You might
be trying to access something the account isn't permissioned for.  Real
basic, no wonder I didn't think of it before.  Try doing this as the
administrator.

   If this doesn't resolve your problem, as administrator I suggest the
following if after you change your environment variables and it still
doesn't work.  This may seem redundant but I've gotten downloads messed up
before.

1) Remove the current C:\Tomcat directory.
2) Download a Tomcat binary.
3) Reinstall Tomcat.
4) From the add/remove programs remove the j2sdk.
5) Download another j2sdk and install it.
6) Try starting Tomcat.

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 21, 2004 3:16 PM
To: Tomcat Users List
Subject: Re: Unable to start tomcat server

Suresh Akula wrote:

 I am trying to run my tomcat server but am not able to do. I am 
 struggling on this for past 2 days.

Earlier you said:

 I actually installed tomcat onto folder named
 C:\softwares\tomcat\jakarta-tomcat-5.0.27 In this folder i have 
  all bin, common and other folders.
 But while i am setting class path it is taking lot of place so i 
  moved all the folders from above folder structure and into
  C:\Tomcat and i think that should be OK.

..think that should be OK? I think that's probably the root of
your problem. Suggestion: delete all the Tomcat stuff you can find
and reinstall from scratch, preferably from a tar file, but at the
least install directly into C:\tomcat. Don't move *anything*. *Do*
remove all the classpath settings you made. You don't need them if
CATALINA_HOME and JAVA_HOME are set correctly.

Then try -- again -- running *catalina.bat run* from a cmd window
and see what happens.

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

   dream.  code.



-
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: Unable to start tomcat server

2004-09-21 Thread Brian Roberts
Hi everyone
I too was having trouble starting the server and thanks everyone for your 
help but what I found was that with the latest tomcat server you need to 
have the latest java JRE version 5. Try installing the latest from 
http://java.sun.com/j2se version 5 or later and set an environment variable 
named JAVA_HOME to the pathname of the directory into which you installed 
the JRE. Full instructions are with the tomcat server package on RUNNING.txt

Bye for now and thanks everyone for your help
Brian Roberts
At 06:01 AM 21/09/2004 -0700, you wrote:
It was a typo and CATALINA_HOME is actually set to C:\Tomcat.
I actually installed tomcat onto folder named
C:\softwares\tomcat\jakarta-tomcat-5.0.27 In this folder i have all bin, 
common and other folders.
But while i am setting class path it is taking lot of place so i moved all 
the folders from above folder structure and into C:\Tomcat and i think 
that should be OK.
For more information i am using windows XP professional OS.
Thanks a lot for reply but i am still unable to start the server.Any help 
is highly appreciated.


From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Suggestion: A dedicated TOMCAT forum!
Date: Tue, 21 Sep 2004 11:54:24 +0800 (WST)
Hi Suresh,
Just by looking at your startup output it seems to be that you have set
your environment variable CATALINA_HOME to C:\Tomca and NOT C:\Tomcat as
it should be. Also ensure that your SDK installation exists in C:\Java as
this is what your JAVA_HOME environment variable is set to. Try doing this
and re-run your server and in theory you shouldn't have any problems.
Kindest Regards,
Matt Anderson
 Hi
 I have downloaded and installed Tomcat 5.0.27 version onto C:\Tomcat and
 set
 the ENV variable
 CATALINA_HOME and JAVA_HOME and also included all the jars available in
 C:\Tomcat\Common\lib folder in the classpath. But when i go to command
 prompt C:\Tomcat\bin and execute startup.bat a black window comes up and
 disappears but my server never starts.On the command window where i
 executed
 startup there appears 4 lines as follows
 Using CATALINA_BASE:   C:\Tomca
 Using CATALINA_HOME:   C:\Tomca
 Using CATALINA_TMPDIR: C:\Tomca
 Using JAVA_HOME:   C:\Java
 but am not able to start the server
 Can anyone please help me on this.


 Thanks
 Suresh Akula

From: nyhgan [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED],  Peng Tuck Kwok
[EMAIL PROTECTED]
Subject: Re: Suggestion: A dedicated TOMCAT forum!
Date: Mon, 20 Sep 2004 20:10:56 -0700 (PDT)

Hi,

I didn't know that there is already a TOMCAT forum.  It is sad to see
 that
the activity is so low there. Maybe that is because no one knows about
 its
existence. I hope the tomcat team can publish the forum url in the
 release
note and also on the tomcat website.

thanks!

nyhgan




Peng Tuck Kwok [EMAIL PROTECTED] wrote:
You mean like the one here : http://nagoya.apache.org/jive/index.jsp ?
Activity seems low if you ask me. Don't know what the plans are for the
forum.


On Mon, 20 Sep 2004 16:14:23 -0500, QM wrote:
  On Mon, Sep 20, 2004 at 02:00:37PM -0700, nyhgan wrote:
  : I believe that having an open discussion forum is the first step
toward such a goal as it will attract a vast number of new users to the
tomcat world.
 
  [EMAIL PROTECTED]
 
  ??
 
  -QM
 
  --
 
  software -- http://www.brandxdev.net
  tech news -- http://www.RoarNetworX.com
 
  -
  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]



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



 -
 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]
See you later,
Brian Roberts



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


Re: Unable to start tomcat server

2004-09-21 Thread Cary Conover
Brian,
 
One point to ponder is you were also using both %CATALINA_HOME% and %CATALINA_BASE%.
 
%CATALINA_HOME% is for where the main Jakarta Tomcat bin, conf, common and server 
directories reside.  These are Shared Directories between the Base Directories for 
other instances of Tomcat that run from the Home Directory Structure.  This structure 
allows you to have multiple Base Directories.
 
%CATALINA_BASE% is where the respective configuration, delivered apps, logs and work 
directories are located.  Such conf, logs, webapps, and work.  This is what is unique 
to each of the particular Base Directories.  There are a couple additional with 
directories in the 4.1.30 release and quite possibly more differences in the 5.0/5.5 
Releases.
 
You will see a server.xml and web.xml and a couple other files in the respective base 
directory structure under conf.  You will also see another web.xml located at 
%CATALINA_BASE%\webapps\ROOT\WEB-INF as well.
 
Your particular apps likely will reside in the %CATALINA_BASE%\webapps directory.
 
All of the log files for tomcat in each base configuration usually reside in the 
respective %CATALINA_BASE%\logs.
 
The reason for defining %CATALINA_BASE% is so that you can have more than one instance 
of Tomcat running from %CATALINA_HOME% at the same time sharing the Jakarta Tomcat 
Code.
 
Beware when doing this that the ports defined in the server.xml in the conf 
directories so that they do not overlap.  If they overlap Tomcat will not start.  You 
will get errors in the logs and it will just shut right back down.
 
There is a way to have Tomcat also setup as a service using a dll so that it will 
automatically start and can be interfaced via ISAPI configuration to IIS as well.

Brian Roberts [EMAIL PROTECTED] wrote:
Hi everyone

I too was having trouble starting the server and thanks everyone for your 
help but what I found was that with the latest tomcat server you need to 
have the latest java JRE version 5. Try installing the latest from 
http://java.sun.com/j2se version 5 or later and set an environment variable 
named JAVA_HOME to the pathname of the directory into which you installed 
the JRE. Full instructions are with the tomcat server package on RUNNING.txt

Bye for now and thanks everyone for your help

Brian Roberts

At 06:01 AM 21/09/2004 -0700, you wrote:
It was a typo and CATALINA_HOME is actually set to C:\Tomcat.
I actually installed tomcat onto folder named
C:\softwares\tomcat\jakarta-tomcat-5.0.27 In this folder i have all bin, 
common and other folders.
But while i am setting class path it is taking lot of place so i moved all 
the folders from above folder structure and into C:\Tomcat and i think 
that should be OK.
For more information i am using windows XP professional OS.
Thanks a lot for reply but i am still unable to start the server.Any help 
is highly appreciated.


From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List 
To: Tomcat Users List 
Subject: Re: Suggestion: A dedicated TOMCAT forum!
Date: Tue, 21 Sep 2004 11:54:24 +0800 (WST)

Hi Suresh,

Just by looking at your startup output it seems to be that you have set
your environment variable CATALINA_HOME to C:\Tomca and NOT C:\Tomcat as
it should be. Also ensure that your SDK installation exists in C:\Java as
this is what your JAVA_HOME environment variable is set to. Try doing this
and re-run your server and in theory you shouldn't have any problems.

Kindest Regards,
Matt Anderson

  Hi
  I have downloaded and installed Tomcat 5.0.27 version onto C:\Tomcat and
  set
  the ENV variable
  CATALINA_HOME and JAVA_HOME and also included all the jars available in
  C:\Tomcat\Common\lib folder in the classpath. But when i go to command
  prompt C:\Tomcat\bin and execute startup.bat a black window comes up and
  disappears but my server never starts.On the command window where i
  executed
  startup there appears 4 lines as follows
  Using CATALINA_BASE: C:\Tomca
  Using CATALINA_HOME: C:\Tomca
  Using CATALINA_TMPDIR: C:\Tomca
  Using JAVA_HOME: C:\Java
  but am not able to start the server
  Can anyone please help me on this.
 
 
  Thanks
  Suresh Akula
 
 From: nyhgan 
 Reply-To: Tomcat Users List 
 To: Tomcat Users List , Peng Tuck Kwok
 

 Subject: Re: Suggestion: A dedicated TOMCAT forum!
 Date: Mon, 20 Sep 2004 20:10:56 -0700 (PDT)
 
 Hi,
 
 I didn't know that there is already a TOMCAT forum. It is sad to see
  that
 the activity is so low there. Maybe that is because no one knows about
  its
 existence. I hope the tomcat team can publish the forum url in the
  release
 note and also on the tomcat website.
 
 thanks!
 
 nyhgan
 
 
 
 
 Peng Tuck Kwok 
wrote:
 You mean like the one here : http://nagoya.apache.org/jive/index.jsp ?
 Activity seems low if you ask me. Don't know what the plans are for the
 forum.
 
 
 On Mon, 20 Sep 2004 16:14:23 -0500, QM wrote:
   On Mon, Sep 20, 2004 at 02:00:37PM -0700, nyhgan wrote:
   : I believe that having an open discussion forum is the first step

RE: Unable to start tomcat server

2004-09-21 Thread John Najarian
Great point Cary, I overlooked  forgot that.
Because we run separate servers for all our different apps we don't use that
functionality.

-Original Message-
From: Cary Conover [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 21, 2004 6:45 PM
To: Tomcat Users List
Subject: Re: Unable to start tomcat server

Brian,
 
One point to ponder is you were also using both %CATALINA_HOME% and
%CATALINA_BASE%.
 
%CATALINA_HOME% is for where the main Jakarta Tomcat bin, conf, common and
server directories reside.  These are Shared Directories between the Base
Directories for other instances of Tomcat that run from the Home Directory
Structure.  This structure allows you to have multiple Base Directories.
 
%CATALINA_BASE% is where the respective configuration, delivered apps, logs
and work directories are located.  Such conf, logs, webapps, and work.  This
is what is unique to each of the particular Base Directories.  There are a
couple additional with directories in the 4.1.30 release and quite possibly
more differences in the 5.0/5.5 Releases.
 
You will see a server.xml and web.xml and a couple other files in the
respective base directory structure under conf.  You will also see another
web.xml located at %CATALINA_BASE%\webapps\ROOT\WEB-INF as well.
 
Your particular apps likely will reside in the %CATALINA_BASE%\webapps
directory.
 
All of the log files for tomcat in each base configuration usually reside in
the respective %CATALINA_BASE%\logs.
 
The reason for defining %CATALINA_BASE% is so that you can have more than
one instance of Tomcat running from %CATALINA_HOME% at the same time sharing
the Jakarta Tomcat Code.
 
Beware when doing this that the ports defined in the server.xml in the conf
directories so that they do not overlap.  If they overlap Tomcat will not
start.  You will get errors in the logs and it will just shut right back
down.
 
There is a way to have Tomcat also setup as a service using a dll so that it
will automatically start and can be interfaced via ISAPI configuration to
IIS as well.

Brian Roberts [EMAIL PROTECTED] wrote:
Hi everyone

I too was having trouble starting the server and thanks everyone for your 
help but what I found was that with the latest tomcat server you need to 
have the latest java JRE version 5. Try installing the latest from 
http://java.sun.com/j2se version 5 or later and set an environment variable 
named JAVA_HOME to the pathname of the directory into which you installed 
the JRE. Full instructions are with the tomcat server package on RUNNING.txt

Bye for now and thanks everyone for your help

Brian Roberts

At 06:01 AM 21/09/2004 -0700, you wrote:
It was a typo and CATALINA_HOME is actually set to C:\Tomcat.
I actually installed tomcat onto folder named
C:\softwares\tomcat\jakarta-tomcat-5.0.27 In this folder i have all bin, 
common and other folders.
But while i am setting class path it is taking lot of place so i moved all 
the folders from above folder structure and into C:\Tomcat and i think 
that should be OK.
For more information i am using windows XP professional OS.
Thanks a lot for reply but i am still unable to start the server.Any help 
is highly appreciated.


From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List 
To: Tomcat Users List 
Subject: Re: Suggestion: A dedicated TOMCAT forum!
Date: Tue, 21 Sep 2004 11:54:24 +0800 (WST)

Hi Suresh,

Just by looking at your startup output it seems to be that you have set
your environment variable CATALINA_HOME to C:\Tomca and NOT C:\Tomcat as
it should be. Also ensure that your SDK installation exists in C:\Java as
this is what your JAVA_HOME environment variable is set to. Try doing this
and re-run your server and in theory you shouldn't have any problems.

Kindest Regards,
Matt Anderson

  Hi
  I have downloaded and installed Tomcat 5.0.27 version onto C:\Tomcat
and
  set
  the ENV variable
  CATALINA_HOME and JAVA_HOME and also included all the jars available in
  C:\Tomcat\Common\lib folder in the classpath. But when i go to command
  prompt C:\Tomcat\bin and execute startup.bat a black window comes up
and
  disappears but my server never starts.On the command window where i
  executed
  startup there appears 4 lines as follows
  Using CATALINA_BASE: C:\Tomca
  Using CATALINA_HOME: C:\Tomca
  Using CATALINA_TMPDIR: C:\Tomca
  Using JAVA_HOME: C:\Java
  but am not able to start the server
  Can anyone please help me on this.
 
 
  Thanks
  Suresh Akula
 
 From: nyhgan 
 Reply-To: Tomcat Users List 
 To: Tomcat Users List , Peng Tuck Kwok
 

 Subject: Re: Suggestion: A dedicated TOMCAT forum!
 Date: Mon, 20 Sep 2004 20:10:56 -0700 (PDT)
 
 Hi,
 
 I didn't know that there is already a TOMCAT forum. It is sad to see
  that
 the activity is so low there. Maybe that is because no one knows about
  its
 existence. I hope the tomcat team can publish the forum url in the
  release
 note and also on the tomcat website.
 
 thanks!
 
 nyhgan
 
 
 
 
 Peng Tuck Kwok 
wrote:
 You mean like the one here

RE: Unable to start tomcat server

2004-09-21 Thread Cary Conover
John,
 
See below:

John Najarian [EMAIL PROTECTED] wrote:

Hi Suresh,

I installed Tomcat in C:\Tomcat
My Catalina_home environment variable is: c:\tomcat

Java is installed at C:\j2sdk1.4.2_03
My Catalina_home environment variable is: C:\j2sdk1.4.2_03

  Are you sure you do not mean your JAVA_HOME vs CATALINA_HOME as you already have 
 declared that?




-
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!

Help on tomcat server path set up

2004-09-21 Thread Shanti Priya
Hi !!
I am using tomcat 4.1.18 version.Whenever i startup my
tomcat it throws the  following error .I have actually set up the paths
properly.


The server message is as follows.

Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
WebappClassLoader: validateJarFile(C:\Program Files\Apache Group\Tomcat
4.1\bin\
..\webapps\AS-IT\WEB-INF\lib\servlet_2_3.jar) - jar not loaded. See Servlet
Spec
 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
WebappClassLoader: validateJarFile(C:\Program Files\Apache Group\Tomcat
4.1\weba
pps\AS-IT\WEB-INF\lib\servlet_2_3.jar) - jar not loaded. See Servlet Spec
2.3, s
ection 9.7.2. Offending class: javax/servlet/Servlet.class
Sep 22, 2004 10:43:53 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Sep 22, 2004 10:43:54 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Sep 22, 2004 10:43:54 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=32/94  config=C:\Program Files\Apache
Group\Tomcat 4.
1\bin\..\conf\jk2.properties



My classpath(Env variables) is as follows

%CLASSPATH%;D:\tomcat\common\lib\tools.jar;
C:\Program Files\Apache Group\Tomcat 4.1\common\lib;
C:\Program Files\Apache Group\Tomcat 4.1\webapps\AS-IT\WEB-INF\lib\*.jar;
C:\Program Files\Apache Group\Tomcat 4.1\webapps\AS-IT\WEB-INF\lib\*.jar;
C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet_2_3.jar;

And i do have this servlet_2_3.jar in the following path
C:\Program Files\Apache Group\Tomcat 4.1\common\lib


Thanks  Regards,
Shanti Priya Sunkara

Location: Pune, India
Email   : [EMAIL PROTECTED]


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



RE: Tomcat server (4.1.29) unable to handle GERMAN characters ; Please help

2004-09-15 Thread Mark Thomas
Add the following to your connector in server.xml

URIEncoding=UTF-8 

Mark

 -Original Message-
 From: koney krishna [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 15, 2004 5:49 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat server (4.1.29) unable to handle GERMAN 
 characters ; Please help 
 
 Hi,
  
 I am sending a URL request to Tomcat server (4.1.29) which 
 contains some German Characters.
  
 ex:
 http://localhost:8080/manager/C.html
  
 The Request to Tomcat comes as
 http://localhost:8080/manager/%C3%FC.html
  
 Tomcat then decodes does not decode 
 the %FC  and looks for a file %C3%FC , which of course 
 does not exist and causes a 404 error. 
  
 I am unable to resolve this issue from last week.
 Please help me in resolving this issue 
  
 thanks
 kris
 
   
 -
 Do you Yahoo!?
 vote.yahoo.com - Register online to vote today!
 



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



RE: Tomcat server (4.1.29) unable to handle GERMAN characters ; Please help

2004-09-15 Thread koney krishna
Hi MArk,
 
My Problem is solved.
I was struck up because of this from last week

 
Thanking You very very much.
krishna

Mark Thomas [EMAIL PROTECTED] wrote:
Add the following to your connector in server.xml

URIEncoding=UTF-8 

Mark

 -Original Message-
 From: koney krishna [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 15, 2004 5:49 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat server (4.1.29) unable to handle GERMAN 
 characters ; Please help 
 
 Hi,
 
 I am sending a URL request to Tomcat server (4.1.29) which 
 contains some German Characters.
 
 ex:
 http://localhost:8080/manager/C.html
 
 The Request to Tomcat comes as
 http://localhost:8080/manager/%C3%FC.html
 
 Tomcat then decodes does not decode 
 the %FC  and looks for a file %C3%FC , which of course 
 does not exist and causes a 404 error. 
 
 I am unable to resolve this issue from last week.
 Please help me in resolving this issue 
 
 thanks
 kris
 
 
 -
 Do you Yahoo!?
 vote.yahoo.com - Register online to vote today!
 



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



-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

RE: Tomcat server (4.1.29) unable to handle GERMAN characters ; Please help

2004-09-15 Thread koney krishna
Hi Mark,
 
My Problem is solved.
I was struck up because of this from last week

 
Thanking You very very much.
krishna

Mark Thomas [EMAIL PROTECTED] wrote:
Add the following to your connector in server.xml

URIEncoding=UTF-8 

Mark

 -Original Message-
 From: koney krishna [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 15, 2004 5:49 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat server (4.1.29) unable to handle GERMAN 
 characters ; Please help 
 
 Hi,
 
 I am sending a URL request to Tomcat server (4.1.29) which 
 contains some German Characters.
 
 ex:
 http://localhost:8080/manager/C.html
 
 The Request to Tomcat comes as
 http://localhost:8080/manager/%C3%FC.html
 
 Tomcat then decodes does not decode 
 the %FC  and looks for a file %C3%FC , which of course 
 does not exist and causes a 404 error. 
 
 I am unable to resolve this issue from last week.
 Please help me in resolving this issue 
 
 thanks
 kris
 
 
 -
 Do you Yahoo!?
 vote.yahoo.com - Register online to vote today!
 



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



-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

Tomcat server (4.1.29) unable to handle GERMAN characters ; Please help

2004-09-14 Thread koney krishna
Hi,
 
I am sending a URL request to Tomcat server (4.1.29) which contains some German 
Characters.
 
ex:
http://localhost:8080/manager/C.html
 
The Request to Tomcat comes as
http://localhost:8080/manager/%C3%FC.html
 
Tomcat then decodes does not decode 
the %FC  and looks for a file %C3%FC , which of course 
does not exist and causes a 404 error. 
 
I am unable to resolve this issue from last week.
Please help me in resolving this issue 
 
thanks
kris


-
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!

Re: RAM usage of Linux-based Tomcat server

2004-08-31 Thread Jacob Kjome
At 10:57 PM 8/30/2004 -0700, you wrote:
I'm not worried about the transient memory used by the
Tomcat instance for it to serve servlets.
But I'm worried about the memory permanently allocated
for a Tomcat instance. Eg. A servlet in a particular
Tomcat instance, may load the entire database into the
memory for efficiency reasons. Now this Tomcat
instance requires X amount of memory to keep the
database and all the stuff related to that Tomcat
instance (except transient memory) to keep them in
memory. And it requires additional variable amount of
transient memory to serve it, that depends on the
demand for that Tomcat instance.
What I need to know is can I restrict the size of X?
If the memory allocated permanently to a particular
Tomcat instance cannot be restricted, Can I restrict
the total memory allocation (ie. permanent + transient
memory) for that Tomcat instance?
The VM starts up with a default of 64 meg of RAM Max regardless of physical 
memory.  You can increase this using -Xmx (with the Sun VM).  For 
example...  java -Xmx 256m

Any out of memory errors you get are because the amount of memory needed by 
the application exceeds the maximum memory barrier of the VM.  The only way 
around this is to get rid of memory leaks and/or increase the maximum 
memory for the VM.

look up -Xmx on Google for more info
Jake 

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


RAM usage of Linux-based Tomcat server PART2

2004-08-31 Thread pete
Adding a question to this note:

I have a maximum heap size of 768mb, and for a freshly started server, it
sits at 65mb. Throughout the day, it works itself near the max. Users
finish at 7pm, and first thing in the morning the server has not reclaimed
*any* memory - i.e. if I want to stop Tomcat running out of memory and
crashing, I need to restart the server every morning.
Is this solely down to the app or what? I am running Tomcat 5.0.18,
(shortly to be upgraded to 5.0.27) could issues with Tomcat .18 be causing
this (there are some memory related notes in the Tomcat CHANGELOG).
Thanks,
Pete.



 At 10:57 PM 8/30/2004 -0700, you wrote:
I'm not worried about the transient memory used by the
Tomcat instance for it to serve servlets.

But I'm worried about the memory permanently allocated
for a Tomcat instance. Eg. A servlet in a particular
Tomcat instance, may load the entire database into the
memory for efficiency reasons. Now this Tomcat
instance requires X amount of memory to keep the
database and all the stuff related to that Tomcat
instance (except transient memory) to keep them in
memory. And it requires additional variable amount of
transient memory to serve it, that depends on the
demand for that Tomcat instance.

What I need to know is can I restrict the size of X?

If the memory allocated permanently to a particular
Tomcat instance cannot be restricted, Can I restrict
the total memory allocation (ie. permanent + transient
memory) for that Tomcat instance?

 The VM starts up with a default of 64 meg of RAM Max regardless of
 physical  memory.  You can increase this using -Xmx (with the Sun VM).
 For  example...  java -Xmx 256m

 Any out of memory errors you get are because the amount of memory
 needed by  the application exceeds the maximum memory barrier of the
 VM.  The only way  around this is to get rid of memory leaks and/or
 increase the maximum  memory for the VM.

 look up -Xmx on Google for more info

 Jake


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


==
This email was sent by Ethicalwebsites.co.uk.
   Ethicalwebsites.co.uk - Internet Solutions for the UK
http://www.ethicalwebsites.co.uk/



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



Tomcat Server Status

2004-08-31 Thread Kashif Siddiqui
Hi all, 

I am sucessfully running Tomcat server, now I want to
know that is there any way to get Tomcat server's

1. Server's Status
2. Start Time 
3. Server uptime
4. Current requests on server

Thanks in advance...



__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



Re: Tomcat Server Status

2004-08-31 Thread Ronald Klop
Look at the http://your-hostname/manager/html webapp.
See also: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html
Ronald.
On Tue Aug 31 12:54:51 CEST 2004 Kashif Siddiqui [EMAIL PROTECTED] wrote:
Hi all, 

I am sucessfully running Tomcat server, now I want to
know that is there any way to get Tomcat server's
1. Server's Status
2. Start Time 
3. Server uptime
4. Current requests on server

Thanks in advance...

__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



Re: Tomcat Server Status

2004-08-31 Thread Kashif Siddiqui
Thank you very much for guidance,

but this page don't show StartTime/UpTime of Tomcat
Server...

http://localhost:/manager/html

Is there any way to get it.


--- Ronald Klop [EMAIL PROTECTED] wrote:

 Look at the http://your-hostname/manager/html
 webapp.
 
 See also:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html
 
 Ronald.
 
 On Tue Aug 31 12:54:51 CEST 2004 Kashif Siddiqui
 [EMAIL PROTECTED] wrote:
  Hi all, 
  
  I am sucessfully running Tomcat server, now I want
 to
  know that is there any way to get Tomcat server's
  
  1. Server's Status
  2. Start Time 
  3. Server uptime
  4. Current requests on server
  
  Thanks in advance...
  
  
  
  __
  Do you Yahoo!?
  New and Improved Yahoo! Mail - Send 10MB messages!
  http://promotions.yahoo.com/new_mail 
  
 

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




__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

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



Re: Tomcat Server Status

2004-08-31 Thread Tim Funk
We actually wrote a JSP to do this. Since we utilize the CATALINA_PID 
environment variable, on startup - a file with tomcat's pid is written.

Then we have a JSP which queries the last modify time of this file.
-Tim
Kashif Siddiqui wrote:
Thank you very much for guidance,
but this page don't show StartTime/UpTime of Tomcat
Server...
http://localhost:/manager/html
Is there any way to get it.
--- Ronald Klop [EMAIL PROTECTED] wrote:

Look at the http://your-hostname/manager/html
webapp.
See also:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html
Ronald.
On Tue Aug 31 12:54:51 CEST 2004 Kashif Siddiqui
[EMAIL PROTECTED] wrote:
Hi all, 

I am sucessfully running Tomcat server, now I want
to
know that is there any way to get Tomcat server's
1. Server's Status
2. Start Time 
3. Server uptime
4. Current requests on server

Thanks in advance...

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


RE: Tomcat Server Status

2004-08-31 Thread Shakeel Ahmad
How to set CATALINA_PID for this purpose, I mean can you give some details
and correct settings.

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 4:23 PM
To: Tomcat Users List
Subject: Re: Tomcat Server Status


We actually wrote a JSP to do this. Since we utilize the CATALINA_PID
environment variable, on startup - a file with tomcat's pid is written.

Then we have a JSP which queries the last modify time of this file.

-Tim

Kashif Siddiqui wrote:

 Thank you very much for guidance,

 but this page don't show StartTime/UpTime of Tomcat
 Server...

 http://localhost:/manager/html

 Is there any way to get it.


 --- Ronald Klop [EMAIL PROTECTED] wrote:


Look at the http://your-hostname/manager/html
webapp.

See also:


 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html

Ronald.

On Tue Aug 31 12:54:51 CEST 2004 Kashif Siddiqui
[EMAIL PROTECTED] wrote:

Hi all,

I am sucessfully running Tomcat server, now I want

to

know that is there any way to get Tomcat server's

1. Server's Status
2. Start Time
3. Server uptime
4. Current requests on server

Thanks in advance...



-
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: RAM usage of Linux-based Tomcat server

2004-08-31 Thread Sagara Wijetunga

--- Jacob Kjome [EMAIL PROTECTED] wrote:

 At 10:57 PM 8/30/2004 -0700, you wrote:
 I'm not worried about the transient memory used by
 the
 Tomcat instance for it to serve servlets.
 
 But I'm worried about the memory permanently
 allocated
 for a Tomcat instance. Eg. A servlet in a
 particular
 Tomcat instance, may load the entire database into
 the
 memory for efficiency reasons. Now this Tomcat
 instance requires X amount of memory to keep the
 database and all the stuff related to that Tomcat
 instance (except transient memory) to keep them in
 memory. And it requires additional variable amount
 of
 transient memory to serve it, that depends on the
 demand for that Tomcat instance.
 
 What I need to know is can I restrict the size of
 X?
 
 If the memory allocated permanently to a particular
 Tomcat instance cannot be restricted, Can I
 restrict
 the total memory allocation (ie. permanent +
 transient
 memory) for that Tomcat instance?
 
 The VM starts up with a default of 64 meg of RAM Max
 regardless of physical 
 memory.  You can increase this using -Xmx (with the
 Sun VM).  For 
 example...  java -Xmx 256m
 
 Any out of memory errors you get are because the
 amount of memory needed by 
 the application exceeds the maximum memory barrier
 of the VM.  The only way 
 around this is to get rid of memory leaks and/or
 increase the maximum 
 memory for the VM.
 
 look up -Xmx on Google for more info
 
 Jake 
 

Limiting memory for the JVM looks like solves my
issue. Can I run different JVM per Tomcat instance on
a single server?

Sagara



___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

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



Re: Tomcat Server Status

2004-08-31 Thread Tim Funk
1) must be using unix
2) export CATALINA_PID=/some_dir/tomcat.pid
3) run startup.sh (in the tomcat installation to start tomcat)
Done. There should be a file called /some_dir/tomcat.pid that contains the 
process id of the JVM that is running tomcat.

-Tim
Shakeel Ahmad wrote:
How to set CATALINA_PID for this purpose, I mean can you give some details
and correct settings.
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 4:23 PM
To: Tomcat Users List
Subject: Re: Tomcat Server Status
We actually wrote a JSP to do this. Since we utilize the CATALINA_PID
environment variable, on startup - a file with tomcat's pid is written.
Then we have a JSP which queries the last modify time of this file.
-Tim
Kashif Siddiqui wrote:

Thank you very much for guidance,
but this page don't show StartTime/UpTime of Tomcat
Server...
http://localhost:/manager/html
Is there any way to get it.
--- Ronald Klop [EMAIL PROTECTED] wrote:

Look at the http://your-hostname/manager/html
webapp.
See also:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html

Ronald.
On Tue Aug 31 12:54:51 CEST 2004 Kashif Siddiqui
[EMAIL PROTECTED] wrote:

Hi all,
I am sucessfully running Tomcat server, now I want
to

know that is there any way to get Tomcat server's
1. Server's Status
2. Start Time
3. Server uptime
4. Current requests on server
Thanks in advance...

-
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: Tomcat Server Status

2004-08-31 Thread Remy Maucherat
If you also want the StartTime/UpTime, you could contribute a patch.
This doesn't sound terribly useful overall, but I suppose it wouldn't
hurt.

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



Re: Tomcat Server Status

2004-08-31 Thread Ronald Klop
On Tue Aug 31 13:14:22 CEST 2004 Kashif Siddiqui [EMAIL PROTECTED] wrote:
Thank you very much for guidance,
but this page don't show StartTime/UpTime of Tomcat
Server...
http://localhost:/manager/html
Is there any way to get it.

I use a ServletContextListener for this. It has a 'static long startTime = 
System.currentTimeMillis();' or something like that. I can query this from a jsp or 
servlet.
Ronald.



Re: Tomcat Server Status

2004-08-31 Thread sergio ulloa
On tomcat index.jsp click on status.  To login you must create a user with
manager rol. After this is done you will see the status of your server
- Original Message - 
From: Kashif Siddiqui [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 6:54 AM
Subject: Tomcat Server Status


 Hi all,

 I am sucessfully running Tomcat server, now I want to
 know that is there any way to get Tomcat server's

 1. Server's Status
 2. Start Time
 3. Server uptime
 4. Current requests on server

 Thanks in advance...



 __
 Do you Yahoo!?
 New and Improved Yahoo! Mail - Send 10MB messages!
 http://promotions.yahoo.com/new_mail

 -
 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: RAM usage of Linux-based Tomcat server

2004-08-30 Thread Sagara Wijetunga

--- Shapira, Yoav [EMAIL PROTECTED] wrote:

 
 Hi,
 
 1. Is it possible to know how much RAM is used by
 servlets by per domain basis?
 
 2. Is it possible to specify the maximum RAM could
 be
 used by per domain basis?
 
 The domain is as example.com, my-domain.com, etc.
 
 Pretty much no to both questions if you have them
 within the same Tomcat
 instances (e.g. two Host elements), yes to both
 questions if you have
 separate Tomcat instances for your domains.  And
 it's not a Tomcat
 limitation or feature, it's a JVM memory tracking
 issue.
 

Hi, Yoav, thanks for the reply.

I'm sorry I was not detailed enough.

I'm not using Tomcat yet, but thinking to use Tomcat
to offer Java/Servlets facility for couple of
different domains hosted on one Linux-based physical
server.

Since the servlet resides in the RAM once it is
loaded, the memory consumption and possible abuse is
my concern. Therefore, allocating RAM and limiting to
the allocated amount for different domain is what I'm
interested. Thereby, I can install sufficient physical
RAM in the server.

I'm interested to know more about the Tomcat instances
method you suggested. I have following queries
regarding it and could you help me to understand it
further?

1. Is it possible to run multiple Tomcat instances on
the same machine?

2. How much RAM (in roughly) is required for a single
or additional Tomcat instance without any servlet
loaded? Assume we use latest SUN Javasoft JVM and
latest Tomcat. 

3. Once the RAM limit is specified to a particular
Tomcat instance, what happens if they exceed the
limit? Does it still continue to allocate RAM or does
it give a run-time error?

4. Could you kindly explain (in very brief) where and
how do I specify the RAM limit?

5. What are the issues I should be aware of and keep
in mind when having multiple Tomcat instances on the
same server? 

Kind regards
Sagara








___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

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



Re: RAM usage of Linux-based Tomcat server

2004-08-30 Thread QM
On Mon, Aug 30, 2004 at 08:37:24PM -0700, Sagara Wijetunga wrote:
: Since the servlet resides in the RAM once it is
: loaded, the memory consumption and possible abuse is
: my concern.

There's much more to memory in a Java webapp than just the servlets.
Read on:


: 1. Is it possible to run multiple Tomcat instances on
: the same machine?

Yes.  Please refer to the Tomcat docs on how to do this.


: 2. How much RAM (in roughly) is required for a single
: or additional Tomcat instance without any servlet
: loaded? Assume we use latest SUN Javasoft JVM and
: latest Tomcat. 

Try not to think of individual servlets; think of the webapp as a whole.
You must load-test and profile your app to see how much memory it will
use in a peak situation because no two webapps are the same.  (i.e.
there's no way someone who's never seen your app can give reliable
numbers.  It's all up to you.)


: 3. Once the RAM limit is specified to a particular
: Tomcat instance, what happens if they exceed the
: limit? Does it still continue to allocate RAM or does
: it give a run-time error?

This has more to do with the JVM than with Tomcat.  (Tomcat runs within
the JVM.)  You'd do well to read up on the specifics, but usually the
JVM will throw an OutOfMemoryException, in which case it's up to you to
repeat step 2 and profile/size.


: 4. Could you kindly explain (in very brief) where and
: how do I specify the RAM limit?

Please see the Tomcat docs, or review the archives.  This comes up a
*lot*.


: 5. What are the issues I should be aware of and keep
: in mind when having multiple Tomcat instances on the
: same server? 

The same considerations as with any other app: CPU and memory resources.
Disk space isn't an issue (webapps, not counting the logs, don't change
size at runtime) and it's a very, very rare event for a rogue JVM call
to take out other processes on the machine or cause a hard crash.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: RAM usage of Linux-based Tomcat server

2004-08-30 Thread Sagara Wijetunga
--- QM [EMAIL PROTECTED] wrote:

 On Mon, Aug 30, 2004 at 08:37:24PM -0700, Sagara
 Wijetunga wrote:
 : Since the servlet resides in the RAM once it is
 : loaded, the memory consumption and possible abuse
 is
 : my concern.
 
 There's much more to memory in a Java webapp than
 just the servlets.
 Read on:
 
 
 : 1. Is it possible to run multiple Tomcat instances
 on
 : the same machine?
 
 Yes.  Please refer to the Tomcat docs on how to do
 this.
 
 
 : 2. How much RAM (in roughly) is required for a
 single
 : or additional Tomcat instance without any servlet
 : loaded? Assume we use latest SUN Javasoft JVM and
 : latest Tomcat. 
 
 Try not to think of individual servlets; think of
 the webapp as a whole.
 You must load-test and profile your app to see how
 much memory it will
 use in a peak situation because no two webapps are
 the same.  (i.e.
 there's no way someone who's never seen your app can
 give reliable
 numbers.  It's all up to you.)
 
I'm not thinking at servlet level, not even at web-app
level. I'm thinking at Tomcat instance (Tomcat sever)
level. I understand each Tomcat instance can have
multiple web-apps and each web-app can have multiple
servlets? Am I wrong?

I'm not worried about the transient memory used by the
Tomcat instance for it to serve servlets.

But I'm worried about the memory permanently allocated
for a Tomcat instance. Eg. A servlet in a particular
Tomcat instance, may load the entire database into the
memory for efficiency reasons. Now this Tomcat
instance requires X amount of memory to keep the
database and all the stuff related to that Tomcat
instance (except transient memory) to keep them in
memory. And it requires additional variable amount of
transient memory to serve it, that depends on the
demand for that Tomcat instance.

What I need to know is can I restrict the size of X?

If the memory allocated permanently to a particular
Tomcat instance cannot be restricted, Can I restrict
the total memory allocation (ie. permanent + transient
memory) for that Tomcat instance?

 : 3. Once the RAM limit is specified to a particular
 : Tomcat instance, what happens if they exceed the
 : limit? Does it still continue to allocate RAM or
 does
 : it give a run-time error?
 
 This has more to do with the JVM than with Tomcat. 
 (Tomcat runs within
 the JVM.)  You'd do well to read up on the
 specifics, but usually the
 JVM will throw an OutOfMemoryException, in which
 case it's up to you to
 repeat step 2 and profile/size.
 

Does this OutOfMemoryException means it ran out of
physical memory or there are still lot more physical
memory available but the limit specified to the Tomcat
instance exceeded? 
 
Kind regards
Sagara




__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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



Error on Tomcat server

2004-08-23 Thread Jitesh Sinha
Hello All,

Any ideas why the following error will come


VBJ ThreadPool Worker daemon prio=5 tid=0x00c59538 nid=0x5ae8 waiting for
monitor entry [e677d000..e677fc30]
at
org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool
.java:111)
- waiting to lock 0xef1266e8 (a
org.apache.commons.dbcp.AbandonedObjectPool)
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
va:110)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
12)



Thanks,
-Jitesh


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



RE: Error on Tomcat server

2004-08-23 Thread Shapira, Yoav

Hi,
This is not an error, it's what a thread is doing.  And it's not a
Tomcat question at that, it's DBCP, so please ask on the proper list.
Thanks,

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 8:07 AM
To: [EMAIL PROTECTED]
Subject: Error on Tomcat server

Hello All,

Any ideas why the following error will come


VBJ ThreadPool Worker daemon prio=5 tid=0x00c59538 nid=0x5ae8 waiting
for
monitor entry [e677d000..e677fc30]
   at
org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjec
tPoo
l
.java:111)
   - waiting to lock 0xef1266e8 (a
org.apache.commons.dbcp.AbandonedObjectPool)
   at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSour
ce.j
a
va:110)
   at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j
ava:
3
12)



Thanks,
-Jitesh


-
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]



RE: Error on Tomcat server

2004-08-23 Thread Shakeel
This is not an exception message , some one has pressed (Ctrl+Break) key on
Tomcat server console. Doing this dumpts the threads information on the
console which is extremly helpful at times.

S H A K E E L   A H M A D
(EE, SCJP, SCWCD  SCBCD)

Northstar Technologies, Inc.



-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 5:07 PM
To: [EMAIL PROTECTED]
Subject: Error on Tomcat server


Hello All,

Any ideas why the following error will come


VBJ ThreadPool Worker daemon prio=5 tid=0x00c59538 nid=0x5ae8 waiting for
monitor entry [e677d000..e677fc30]
at
org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool
.java:111)
- waiting to lock 0xef1266e8 (a
org.apache.commons.dbcp.AbandonedObjectPool)
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
va:110)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
12)



Thanks,
-Jitesh


-
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]



Connection and Tomcat server

2004-08-16 Thread Rajesh
Hai guys
   am still fasing same problem with my struts,tomcat with mysql.
am working in the environment of tomcat,struts,dbcp,JP2, mysql..
i developed a site of round 20-50 actions which accesses db through DBCP 
to MySQL

i completely debugged my site theroughly, there is no but in my code.
i uploaded the site to net, after a using the site successfully suddenly 
my connections is not working .

i found this by my index page where i am using 2 message board which 
takes top 5 records from db and displays it in text scrolling javascript

where ever am connection to mysql through getDataSource(request)  am not 
gettign connection properly.

i am properly closing connection in my program
but when i restart my tomcat then my program start working properlty 
then after a day or so the same problem arrice.

can anybody help me to overcome this.
am fasing the same problem for many days.
thanks  you
Rajesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Connection and Tomcat server

2004-08-16 Thread David Smith
Sounds like the connections in the pool are timing out.  The mysql 
server will only keep them around for about 8 hours or so before closing 
them.  Have you tried tacking the following onto the end of your 
database url:

?autoReconnect=true
--David
Rajesh wrote:
Hai guys
   am still fasing same problem with my struts,tomcat with mysql.
am working in the environment of tomcat,struts,dbcp,JP2, mysql..
i developed a site of round 20-50 actions which accesses db through 
DBCP to MySQL

i completely debugged my site theroughly, there is no but in my code.
i uploaded the site to net, after a using the site successfully 
suddenly my connections is not working .

i found this by my index page where i am using 2 message board which 
takes top 5 records from db and displays it in text scrolling javascript

where ever am connection to mysql through getDataSource(request)  am 
not gettign connection properly.

i am properly closing connection in my program
but when i restart my tomcat then my program start working properlty 
then after a day or so the same problem arrice.

can anybody help me to overcome this.
am fasing the same problem for many days.
thanks  you
Rajesh
-
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: Connection and Tomcat server

2004-08-16 Thread Jignesh Patel
I can say, this is purely a connection closing problem.

That's the reason when you restart the tomcat it works fine till the
time all the connection in the connection pool utilize and then after it
hangs.

Are u closing your connection in finally block?

-Jignesh
On Mon, 2004-08-16 at 02:14, Rajesh wrote:
 Hai guys
 
 am still fasing same problem with my struts,tomcat with mysql.
 
 am working in the environment of tomcat,struts,dbcp,JP2, mysql..
 
 i developed a site of round 20-50 actions which accesses db through DBCP 
 to MySQL
 
 i completely debugged my site theroughly, there is no but in my code.
 
 i uploaded the site to net, after a using the site successfully suddenly 
 my connections is not working .
 
 i found this by my index page where i am using 2 message board which 
 takes top 5 records from db and displays it in text scrolling javascript
 
 where ever am connection to mysql through getDataSource(request)  am not 
 gettign connection properly.
 
 i am properly closing connection in my program
 
 but when i restart my tomcat then my program start working properlty 
 then after a day or so the same problem arrice.
 
 can anybody help me to overcome this.
 
 am fasing the same problem for many days.
 
 thanks  you
 Rajesh
 
 -
 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: Problem in inserting word document into database as a blob object under tomcat server

2004-06-08 Thread Thangamani, Elanjchezhiyan (Cognizant)

These is a document  object, Actually inserting the document into databale file.
//text = dbBlob.getSubString(1,((intdbBlob.length()));
it will write the object not string you understand?


-Original Message-
From: Tom K [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 11:13 AM
To: 'Tomcat Users List'
Subject: RE: Problem in inserting word document into database as a blob
object under tomcat server


I see you are using an Oracle database.
String text;
while(re.next(){
dbBlob = (oracle.sql.BLOB)rs.getBlob(1)
}
text = dbBlob.getSubString(1,((intdbBlob.length()));

Why not use a CLOB if it's text.
Now you are my wife.

Tom K.



-Original Message-
From: Thangamani, Elanjchezhiyan (Cognizant)
[mailto:[EMAIL PROTECTED]
Sent: Monday, June 07, 2004 11:11 PM
To: [EMAIL PROTECTED]
Subject: Problem in inserting word document into database as a blob
object under tomcat server


 Hi,
 I am inserting word document into database as a blob. It is inserting
successfully but we try to download it is not downloading. The insertion
itself having some problem



 //code listed below


 StringBuffer query = new StringBuffer(Insert into
PMS_Documents(DOCUMENTID, DOCUMENT_NAME, DOCUMENT_TYPE_ID,
DOCUMENT_DESCRIPTION, DOCUMENT_CTYPE,CREATED_BY,
CREATED_DATE,DOCUMENT_BLOB) values();
 pmskey =getSequence(Document.nextval);
 query.append(pmskey);
 query.append(,');
 query.append(form.getDocumentName());
 query.append(',);
 query.append(Integer.parseInt(getLookUPId(document,
form.getDocumentType(;
 query.append(,');
 query.append(form.getDocumentDescription().trim());
 query.append(',');
 query.append(form.getDocumentBlob().getContentType());
 query.append(',');
 query.append(form.getDocumentCreatedBy());
 query.append(',sysdate,EMPTY_BLOB()));
 query.toString();
 .
 conn = getConnection();
 conn.setAutoCommit(false);
 stat = conn.createStatement();
 stat.execute(query);
 stat.execute(commit);
 String SQL_GET_BY_PK =select document_blob from PMS_Documents where
documentId=+ pmskey + for update nowait ;
 rs = stat.executeQuery(SQL_GET_BY_PK);
 rs.next();
 ResourceBundle resBun = ResourceBundle.getBundle(pms);
 String server = resBun.getString(server);
 if (server.equals(tomcat)) {
 dbBlob = (oracle.sql.BLOB)rs.getBlob(1); //problem occurs here only

 }
 else {
 weblogic.jdbc.rmi.SerialOracleBlob cast1 =
(weblogic.jdbc.rmi.SerialOracleBlob)rs.getBlob(1);
 weblogic.jdbc.rmi.internal.OracleTBlobImpl cast2 =
(weblogic.jdbc.rmi.internal.OracleTBlobImpl)cast1.getTheRealBlob();
 dbBlob = (oracle.sql.BLOB)cast2.getTheRealBlob();
 }
 inStream = new
BufferedInputStream(form.getDocumentBlob().getInputStream());
 //createDocument(inStream);
 outStream = dbBlob.getBinaryOutputStream();
 while((len = inStream.read()) != -1) {
 outStream.write(len);
 fileSize += len;
 }
 if(inStream != null) {
 inStream.close();
 inStream = null;
 }
 if(outStream != null) {
 outStream.close();
 outStream = null;
 }


 I am getting problem in tomcat only . weblogic it is working fine.


 Thanks in Advance
 Elan




This e-mail and any files transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.
If you are not the intended recipient, please contact the sender by
reply e-mail and destroy all copies of the original message.

Any unauthorised review, use, disclosure, dissemination, forwarding,
printing or copying of this email or any action taken in reliance on
this e-mail is strictly

prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004



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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

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



Problem in inserting word document into database as a blob object under tomcat server

2004-06-07 Thread Thangamani, Elanjchezhiyan (Cognizant)

 Hi,
 I am inserting word document into database as a blob. It is inserting successfully 
 but we try to download it is not downloading. The insertion itself having some 
 problem

 //code listed below

 StringBuffer query = new StringBuffer(Insert into PMS_Documents(DOCUMENTID, 
 DOCUMENT_NAME, DOCUMENT_TYPE_ID, DOCUMENT_DESCRIPTION, DOCUMENT_CTYPE,CREATED_BY, 
 CREATED_DATE,DOCUMENT_BLOB) values();
 pmskey =getSequence(Document.nextval);
 query.append(pmskey);
 query.append(,');
 query.append(form.getDocumentName());
 query.append(',);
 query.append(Integer.parseInt(getLookUPId(document, form.getDocumentType(;
 query.append(,');
 query.append(form.getDocumentDescription().trim());
 query.append(',');
 query.append(form.getDocumentBlob().getContentType());
 query.append(',');
 query.append(form.getDocumentCreatedBy());
 query.append(',sysdate,EMPTY_BLOB()));
 query.toString();
 .
 conn = getConnection();
 conn.setAutoCommit(false);
 stat = conn.createStatement();
 stat.execute(query);
 stat.execute(commit);
 String SQL_GET_BY_PK =select document_blob from PMS_Documents where documentId=+ 
 pmskey + for update nowait ;
 rs = stat.executeQuery(SQL_GET_BY_PK);
 rs.next();
 ResourceBundle resBun = ResourceBundle.getBundle(pms);
 String server = resBun.getString(server);
 if (server.equals(tomcat)) {
 dbBlob = (oracle.sql.BLOB)rs.getBlob(1); //problem occurs here only
 }
 else {
 weblogic.jdbc.rmi.SerialOracleBlob cast1 = 
 (weblogic.jdbc.rmi.SerialOracleBlob)rs.getBlob(1);
 weblogic.jdbc.rmi.internal.OracleTBlobImpl cast2 = 
 (weblogic.jdbc.rmi.internal.OracleTBlobImpl)cast1.getTheRealBlob();
 dbBlob = (oracle.sql.BLOB)cast2.getTheRealBlob();
 }
 inStream = new BufferedInputStream(form.getDocumentBlob().getInputStream());
 //createDocument(inStream);
 outStream = dbBlob.getBinaryOutputStream();
 while((len = inStream.read()) != -1) {
 outStream.write(len);
 fileSize += len;
 }
 if(inStream != null) {
 inStream.close();
 inStream = null;
 }
 if(outStream != null) {
 outStream.close();
 outStream = null;
 }

 I am getting problem in tomcat only . weblogic it is working fine.

 Thanks in Advance
 Elan
 


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

RE: Problem in inserting word document into database as a blob object under tomcat server

2004-06-07 Thread Tom K
I see you are using an Oracle database.
String text;
while(re.next(){ 
dbBlob = (oracle.sql.BLOB)rs.getBlob(1)
}
text = dbBlob.getSubString(1,((intdbBlob.length()));

Why not use a CLOB if it's text.
Now you are my wife.

Tom K.



-Original Message-
From: Thangamani, Elanjchezhiyan (Cognizant)
[mailto:[EMAIL PROTECTED] 
Sent: Monday, June 07, 2004 11:11 PM
To: [EMAIL PROTECTED]
Subject: Problem in inserting word document into database as a blob
object under tomcat server


 Hi,
 I am inserting word document into database as a blob. It is inserting
successfully but we try to download it is not downloading. The insertion
itself having some problem



 //code listed below


 StringBuffer query = new StringBuffer(Insert into
PMS_Documents(DOCUMENTID, DOCUMENT_NAME, DOCUMENT_TYPE_ID,
DOCUMENT_DESCRIPTION, DOCUMENT_CTYPE,CREATED_BY,
CREATED_DATE,DOCUMENT_BLOB) values();
 pmskey =getSequence(Document.nextval);
 query.append(pmskey);
 query.append(,');
 query.append(form.getDocumentName());
 query.append(',);
 query.append(Integer.parseInt(getLookUPId(document,
form.getDocumentType(;
 query.append(,');
 query.append(form.getDocumentDescription().trim());
 query.append(',');
 query.append(form.getDocumentBlob().getContentType());
 query.append(',');
 query.append(form.getDocumentCreatedBy());
 query.append(',sysdate,EMPTY_BLOB()));
 query.toString();
 .
 conn = getConnection();
 conn.setAutoCommit(false);
 stat = conn.createStatement();
 stat.execute(query);
 stat.execute(commit);
 String SQL_GET_BY_PK =select document_blob from PMS_Documents where
documentId=+ pmskey + for update nowait ;
 rs = stat.executeQuery(SQL_GET_BY_PK);
 rs.next();
 ResourceBundle resBun = ResourceBundle.getBundle(pms);
 String server = resBun.getString(server);
 if (server.equals(tomcat)) {
 dbBlob = (oracle.sql.BLOB)rs.getBlob(1); //problem occurs here only

 }
 else {
 weblogic.jdbc.rmi.SerialOracleBlob cast1 =
(weblogic.jdbc.rmi.SerialOracleBlob)rs.getBlob(1);
 weblogic.jdbc.rmi.internal.OracleTBlobImpl cast2 =
(weblogic.jdbc.rmi.internal.OracleTBlobImpl)cast1.getTheRealBlob();
 dbBlob = (oracle.sql.BLOB)cast2.getTheRealBlob();
 }
 inStream = new
BufferedInputStream(form.getDocumentBlob().getInputStream());
 //createDocument(inStream);
 outStream = dbBlob.getBinaryOutputStream();
 while((len = inStream.read()) != -1) {
 outStream.write(len);
 fileSize += len;
 }
 if(inStream != null) {
 inStream.close();
 inStream = null;
 }
 if(outStream != null) {
 outStream.close();
 outStream = null;
 }


 I am getting problem in tomcat only . weblogic it is working fine.


 Thanks in Advance
 Elan
 



This e-mail and any files transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.
If you are not the intended recipient, please contact the sender by
reply e-mail and destroy all copies of the original message.

Any unauthorised review, use, disclosure, dissemination, forwarding,
printing or copying of this email or any action taken in reliance on
this e-mail is strictly

prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 


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



Tomcat Server startuo failed in Eclipse

2004-05-13 Thread deepak shripat mane
  
Hii.. All

I am integrating tomcat server 5.0.19 with eclipse 2.1  For that i have installed 
tomcatb plug in software. 

But i got Tomcat Menu and Tomcat icon on tool bar when i m trying to run tomcat server 
within eclipse It is Failed


i got following types of errors
terminated org.apache.catalina.startup.Bootstrap at localhost:13419
terminated c:\j2sdk1.4.2_02\bin\javaw.exe 

any one give me solutionns


I am using following 
Java -j2se 1.4.2
Tomcat server 5.0.19
Eclipse 2.1



Deepak


Tomcat server stopping immediately after starting.

2004-05-05 Thread Reddy, Ravindranath (Cognizant)
Hi
I have installed tomcat4.1 newly..
When I started the server either using starup.bat / Catalina.bat,
The server starting and immediately shuttingdown automatically..

I have set the Catalina_home and tomcat_home env var's upto the tomcat4.1 folder..

Please do the needful. If I missed something

Thanks  regards
Ravindra
This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com

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

RE: Tomcat server stopping immediately after starting.

2004-05-05 Thread STOCKHOLM, Raymond
I had this problem when tomcat's http connector tried to use port 8080,
while Oracle was already using it.
Otherwise, to have more messages, start tomcat in debug :
replace start by debug in startup.bat
(line 41 : call %EXECUTABLE% debug %CMD_LINE_ARGS%)

-Message d'origine-
De : Reddy, Ravindranath (Cognizant) [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 5 mai 2004 10:09
À : [EMAIL PROTECTED]
Objet : Tomcat server stopping immediately after starting.


Hi
I have installed tomcat4.1 newly..
When I started the server either using starup.bat / Catalina.bat,
The server starting and immediately shuttingdown automatically..

I have set the Catalina_home and tomcat_home env var's upto the tomcat4.1 folder..

Please do the needful. If I missed something

Thanks  regards
Ravindra

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



Re: Win 2003 + Tomcat Server servlet placement

2004-01-01 Thread swalker
Is there any one out there I could correspond with concerning
this problem.. Every thing I've tried does not work.. It can't be
that hard. I've missed something some where.

 Well I'm still at it.. Its clear I still have a lot to learn on the
 tomcat xml and workers files... I've turned IIS off as I can get all of
 the examples to work doing
 http://localhost:8080/servlets-examples/index.html. So I'll just run the
 app on http://localhost:8080/app/dir/html files

 JAVA_HOME envir var set to c:\program files\java\j2re1.4.2_03
 CATALINA_HOME envir var set to c:\tomcat_5016

 Wouldn't of thought there would be a problem with the app in the ROOT
 directory but I get the tomcat error message

 HTTP Status 404 -
 /servlet/com.datatel.server.servlets.webadvisor.WebAdvisor

 The requested resource
 (/servlet/com.datatel.server.servlets.webadvisor.WebAdvisor) is not
 available.

 during installation of the app it asks where to put the servlets and jar
 files. I put the servlet.jar files in

 C:\tomcat_5016\webapps\ROOT\WEB-INF\lib

 and the jre jar files in

 c:\program files\java\j2re1.4.2_03\jre\lib\ext

 Is this correct? or do they go into one of the lib directories hanging off
 off of c:\j2sdk directories..

 if not
 could some one explain how I can get tomcat to find the servlets.
 Thanks
 Stew




 -
 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: Win 2003 + Tomcat Server servlet placement

2004-01-01 Thread FRANCOIS Dufour
well maybee im not shure but on my server i have to share the file so it can 
bee acess by the web
some file must have depend on the app read and write acess and other only 
read sharing

[EMAIL PROTECTED]
crazy-wilys webmaster




From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re:  Win 2003  + Tomcat Server servlet placement
Date: Thu, 1 Jan 2004 16:00:55 -0700 (Mountain Standard Time)
Is there any one out there I could correspond with concerning
this problem.. Every thing I've tried does not work.. It can't be
that hard. I've missed something some where.
 Well I'm still at it.. Its clear I still have a lot to learn on the
 tomcat xml and workers files... I've turned IIS off as I can get all of
 the examples to work doing
 http://localhost:8080/servlets-examples/index.html. So I'll just run the
 app on http://localhost:8080/app/dir/html files

 JAVA_HOME envir var set to c:\program files\java\j2re1.4.2_03
 CATALINA_HOME envir var set to c:\tomcat_5016

 Wouldn't of thought there would be a problem with the app in the ROOT
 directory but I get the tomcat error message

 HTTP Status 404 -
 /servlet/com.datatel.server.servlets.webadvisor.WebAdvisor

 The requested resource
 (/servlet/com.datatel.server.servlets.webadvisor.WebAdvisor) is not
 available.

 during installation of the app it asks where to put the servlets and jar
 files. I put the servlet.jar files in

 C:\tomcat_5016\webapps\ROOT\WEB-INF\lib

 and the jre jar files in

 c:\program files\java\j2re1.4.2_03\jre\lib\ext

 Is this correct? or do they go into one of the lib directories hanging 
off
 off of c:\j2sdk directories..

 if not
 could some one explain how I can get tomcat to find the servlets.
 Thanks
 Stew




 -
 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]
_
MSN Messenger : discutez en direct avec vos amis !  
http://messenger.fr.msn.ca/

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


Re: Win 2003 + Tomcat Server servlet placement

2004-01-01 Thread Jacob Kjome
Do this.

Forget the installer.  I never use it anyway.  Just grab the zipped or 
gzipped archive, extract it to a directory of your choice (I suggest using 
a path without spaces to be safe), set JAVA_HOME to the directory where you 
have the JDK installed (not the JRE, the full JDK).

Now, you should set up your own webapp under your own context, not dump 
servlets into the existing ROOT context.  But if you want to do that, 
fine.  Then you'll have to uncomment the invoker servlet in 
CATALINA_HOME/conf/web.xml.  After that, start Tomcat and you should be 
able to access your servlet.

Jake

At 04:00 PM 1/1/2004 -0700, you wrote:
Is there any one out there I could correspond with concerning
this problem.. Every thing I've tried does not work.. It can't be
that hard. I've missed something some where.
 Well I'm still at it.. Its clear I still have a lot to learn on the
 tomcat xml and workers files... I've turned IIS off as I can get all of
 the examples to work doing
 http://localhost:8080/servlets-examples/index.html. So I'll just run the
 app on http://localhost:8080/app/dir/html files

 JAVA_HOME envir var set to c:\program files\java\j2re1.4.2_03
 CATALINA_HOME envir var set to c:\tomcat_5016

 Wouldn't of thought there would be a problem with the app in the ROOT
 directory but I get the tomcat error message

 HTTP Status 404 -
 /servlet/com.datatel.server.servlets.webadvisor.WebAdvisor

 The requested resource
 (/servlet/com.datatel.server.servlets.webadvisor.WebAdvisor) is not
 available.

 during installation of the app it asks where to put the servlets and jar
 files. I put the servlet.jar files in

 C:\tomcat_5016\webapps\ROOT\WEB-INF\lib

 and the jre jar files in

 c:\program files\java\j2re1.4.2_03\jre\lib\ext

 Is this correct? or do they go into one of the lib directories hanging off
 off of c:\j2sdk directories..

 if not
 could some one explain how I can get tomcat to find the servlets.
 Thanks
 Stew




 -
 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: Win 2003 + Tomcat Server servlet placement

2003-12-31 Thread swalker
Well I'm still at it.. Its clear I still have a lot to learn on the
tomcat xml and workers files... I've turned IIS off as I can get all of
the examples to work doing
http://localhost:8080/servlets-examples/index.html. So I'll just run the
app on http://localhost:8080/app/dir/html files

JAVA_HOME envir var set to c:\program files\java\j2re1.4.2_03
CATALINA_HOME envir var set to c:\tomcat_5016

Wouldn't of thought there would be a problem with the app in the ROOT
directory but I get the tomcat error message

HTTP Status 404 - /servlet/com.datatel.server.servlets.webadvisor.WebAdvisor

The requested resource
(/servlet/com.datatel.server.servlets.webadvisor.WebAdvisor) is not
available.

during installation of the app it asks where to put the servlets and jar
files. I put the servlet.jar files in

C:\tomcat_5016\webapps\ROOT\WEB-INF\lib

and the jre jar files in

c:\program files\java\j2re1.4.2_03\jre\lib\ext

Is this correct? or do they go into one of the lib directories hanging off
off of c:\j2sdk directories..

if not
could some one explain how I can get tomcat to find the servlets.
Thanks
Stew




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



Re: defining multiple tomcat server on one workers2.properties file

2003-12-30 Thread Peter Choe
i've tried to define a separate channel socket for the second tomcat 
instance, but now when i try to access the directory specified with the 
uri, the web page will only come up if i fully type the file name (i.e. 
test.foo.bar.com/spa/index.jsp).  i have the tomcat server set to use 
index.jsp as the welcome file.

here is the workers2.properties i am using:

[logger]
level=ERROR
[config:]
file=${serverRoot}/apache/conf/workers2.properties
debug=0
debugEnv=0
[shm:]
info=Scoreboard. Required fro reconfiguration and status with 
mulitprocess servers
file=/var/log/jk2.shm
size=100
debug=0
disabled=0

[lb:lb]

[channel.socket:10.1.2.66:8009]
port=8009
host=10.1.2.66
[channel.socket:10.1.2.102:8009]
port=8009
host=10.1.2.102
[ajp13:10.1.2.66:8009]
channel=channel.socket:10.1.2.66:8009
group=lb
[ajp13:10.1.2.102:8009]
channel=channel.socket:10.1.2.102:8009
group=lb
[uri:/examples/*.jsp]
worker=ajp13:10.1.2.66:8009
group=lb
[uri:/asset/*]
worker=ajp13:10.1.2.66:8009
group=lb
[uri:/spa/*]
worker=ajp13:10.1.2.102:8009
group=lb
if i only have one channel socket and worker defined, it works fine.  is 
this a bug in mod_jk2 or am i missing a configuration property some where.

this is with tomcat 4.1.29 with apache 2.

Peter

Asif Chowdhary wrote:
In the workers2.properties file specify the second instance of your tomcat
and the port number.
For example

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009
[channel.socket:localhost:8010]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8010
In the first tomcat server.xml this will be jvmRoute=localhost:8009
in the engine directive.
In the server.xml in the specify JVM attribute to jvmRoute=localhost:8010 in the 
Engine directive.
in the connector directive and change the port number to 8010
-Original Message-
From: Peter Choe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 3:30 PM
To: Tomcat Users List
Subject: defining multiple tomcat server on one workers2.properties file
i have an apache webserver that will handle request made to tomcat and 
hand off the request using jk2.  i have the workers2.properties to 
handle this with one tomcat server.  however, i have another tomcat 
server that i need the request to be sent to.  i have done this with jk 
by defining a separate worker and specifying the other server.

how is this done with jk2?  does anyone have an example i can use?

Peter Choe

-
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]


Remote Tomcat Server - Apache Connector over SSL

2003-12-30 Thread joe
 Here's the scenario.  Apache server sits outside our firewall/LAN.  It needs to take 
secure requests from users, forward them onto Tomcat (Which sits behind the firewall) 
via the JK connector.  Is there some configuration option in Tomcat and/or the 
workers2.properties config file that will handle this?  Most of the documentation I've 
read seems to describe setups where Apache is not calling a remote Tomcat server.  
Only other option would be to use kernel encryption at the OS level. Thanks in advance.

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


Re: Remote Tomcat Server - Apache Connector over SSL

2003-12-30 Thread QM
:  Here's the scenario.  Apache server sits outside our firewall/LAN.  It needs to 
take secure requests from users, forward them onto Tomcat (Which sits behind the 
firewall) via the JK connector.  Is there some configuration option in Tomcat and/or 
the workers2.properties config file that will handle this?  Most of the documentation 
I've read seems to describe setups where Apache is not calling a remote Tomcat server. 
 Only other option would be to use kernel encryption at the OS level. Thanks in 
advance.

This depends on your goal: do you want to

1/ make sure the traffic between the webserver / tomcat is encrypted to 
   discourage snooping

2/ let Tomcat see some of the SSL-related req info to satisfy security
   constraints in web.xml, e.g. the one to require SSL comms (I forget
   the tag name at the moment)

For #1, I'm not much help.

For #2, this doc:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.html

may help.  If you scroll to the Ajp13 Worker properties header,
mentions that this protocol passes the info to Tomcat.

-QM

-- 

software  -- http://www.brandxdev.net (C++ / Java / SSL)
tech news -- http://www.RoarNetworX.com


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



Re: Remote Tomcat Server - Apache Connector over SSL

2003-12-30 Thread Bill Barker

QM [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 :  Here's the scenario.  Apache server sits outside our firewall/LAN.  It
needs to take secure requests from users, forward them onto Tomcat (Which
sits behind the firewall) via the JK connector.  Is there some configuration
option in Tomcat and/or the workers2.properties config file that will handle
this?  Most of the documentation I've read seems to describe setups where
Apache is not calling a remote Tomcat server.  Only other option would be to
use kernel encryption at the OS level. Thanks in advance.

 This depends on your goal: do you want to

 1/ make sure the traffic between the webserver / tomcat is encrypted to
discourage snooping

Some people have reported success using ssh-tunnelling.  Never tried it
myself (since I can be reasonably confident that any men-in-the-middle of
the Apache-Tomcat connection are supposed to be there :).  There is nothing
(currently) in mod_jk(2) to send the socket traffic encrypted.

 2/ let Tomcat see some of the SSL-related req info to satisfy security
constraints in web.xml, e.g. the one to require SSL comms (I forget
the tag name at the moment)

 For #1, I'm not much help.

 For #2, this doc:

 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.html

 may help.  If you scroll to the Ajp13 Worker properties header,
 mentions that this protocol passes the info to Tomcat.

 -QM

 -- 

 software  -- http://www.brandxdev.net (C++ / Java / SSL)
 tech news -- http://www.RoarNetworX.com




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



TomCat Server Killed

2003-12-18 Thread Ferreira, André

1.  I am starting Tomcat version 3.2.2 as user A (not root) on a Solaris
8 system.
2.  I exit the console screen from where I started tomcat and everything
is still fine.
3.  Once I logout the user (From the CDE environment), tomcat is killed.

Is there a workaround to start tomcat (and keep it alive) without keeping
the user session still open in the CDE environment?



Thanx.

André Ferreira


Note:
The information in this e-mail is confidential and is intended solely for
the addressee. If you have received this e-mail in error, you are hereby
notified that any review, copying or distribution is strictly prohibited.
Please inform the sender immediately and destroy the original. Siemens
Limited and/or its subsidiaries accepts no liability of whatever nature for
any loss, liability, damage or expense resulting directly or indirectly from
access to this message and any files or links that are attached hereto.



Re: TomCat Server Killed

2003-12-18 Thread Giuliano Gavazzi
At 12:44 pm +0200 2003/12/18, Ferreira, André wrote:
1.  I am starting Tomcat version 3.2.2 as user A (not root) on a Solaris
8 system.
2.  I exit the console screen from where I started tomcat and everything
is still fine.
3.  Once I logout the user (From the CDE environment), tomcat is killed.
Is there a workaround to start tomcat (and keep it alive) without keeping
the user session still open in the CDE environment?
if this is analogous to a similar problem 
(perhaps not present anymore) with MacOSX, then 
you should start tomcat from a remote login (or 
at boot), that is just ssh into your machine 
(from the machine itself is fine) and give the 
command again (use the script to start it, as it 
has to be a background process). BTW, shouldn't 
be tomcat run as root?

HTH

Giuliano
--
H U M P H
   || |||
 software
Java  C++ Server/Client/Human Interface applications on MacOS - MacOS X
http://www.humph.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: TomCat Server Killed

2003-12-18 Thread Donie Kelly
We have had the same problem with Solaris 8 and tomcat 4.1.18
No solution found yet. Tried using nohup to start the process but still
exits when you leave the session.

Donie

-Original Message-
From: Ferreira, André [mailto:[EMAIL PROTECTED]
Sent: 18 December 2003 10:45
To: [EMAIL PROTECTED]
Subject: TomCat Server Killed


1.  I am starting Tomcat version 3.2.2 as user A (not root) on a Solaris
8 system.
2.  I exit the console screen from where I started tomcat and everything
is still fine.
3.  Once I logout the user (From the CDE environment), tomcat is killed.

Is there a workaround to start tomcat (and keep it alive) without keeping
the user session still open in the CDE environment?



Thanx.

André Ferreira


Note:
The information in this e-mail is confidential and is intended solely for
the addressee. If you have received this e-mail in error, you are hereby
notified that any review, copying or distribution is strictly prohibited.
Please inform the sender immediately and destroy the original. Siemens
Limited and/or its subsidiaries accepts no liability of whatever nature for
any loss, liability, damage or expense resulting directly or indirectly from
access to this message and any files or links that are attached hereto.

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



RE: TomCat Server Killed

2003-12-18 Thread Giuliano Gavazzi
At 11:17 am + 2003/12/18, Donie Kelly wrote:
We have had the same problem with Solaris 8 and tomcat 4.1.18
No solution found yet. Tried using nohup to start the process but still
exits when you leave the session.
have you tried my suggestion? What happens if you start other servers 
in the same way? What happens if you start a java application (with 
no GUI) that way?

Giuliano

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


RE: TomCat Server Killed

2003-12-18 Thread Ferreira, André
HYes, your method does work to get Tomcat running, but then the
application I am using with tomcat does not work.
It seems the application logs some kind of session-id with the CDE session.
Uhh:(!

André Ferreira

 -Original Message-
From:   Giuliano Gavazzi [mailto:[EMAIL PROTECTED] 
Sent:   Thursday, December 18, 2003 15:24
To: Tomcat Users List
Subject:RE: TomCat Server Killed

At 11:17 am + 2003/12/18, Donie Kelly wrote:
We have had the same problem with Solaris 8 and tomcat 4.1.18
No solution found yet. Tried using nohup to start the process but still
exits when you leave the session.


have you tried my suggestion? What happens if you start other servers 
in the same way? What happens if you start a java application (with 
no GUI) that way?

Giuliano

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

Note:
The information in this e-mail is confidential and is intended solely for
the addressee. If you have received this e-mail in error, you are hereby
notified that any review, copying or distribution is strictly prohibited.
Please inform the sender immediately and destroy the original. Siemens
Limited and/or its subsidiaries accepts no liability of whatever nature for
any loss, liability, damage or expense resulting directly or indirectly from
access to this message and any files or links that are attached hereto.



  1   2   3   4   >