Re: Tomcat not running

2005-03-19 Thread ayaskant swain
Hello,
 i have already tested these things which you are telling.When i put 
some html or jsp files directly ubder my_apps folder i see the list of these 
files when i type http://localhost:8080/my_apps but my problem is that 
sometimes i am not able to see this  also.it says /my_apps is not 
available.coming back to your point ya a client can't see the WEB-INF 
directory.It's kept secret from the client by the server itself.That's why when 
we run our servlets which we put inside classes folder under WEB-INF we 
generally call it through a url-pattern which we declare in the web.xml file.
 
Ayaskant

Mark Leone <[EMAIL PROTECTED]> wrote:
Try putting an html or jsp file in your my_apps folder. I'm not sure 
what Tomcat does when you navigate to the web app with nothing other 
than WEB-INF in the web app's folder. When I navigate to one of my web 
apps the way you're trying, I get a directory listing of the files and 
folders I have there, but I notice that that WEB-INF is not included in 
that listing, even though it is present. So a better test of your web 
app would be to try to hit an html or jsp page.

As someone else pointed out, the log files should give you a good clue 
as to why Tomcat isn't starting up sometimes.

-Mark

ayaskant swain wrote:

>Dear Sir/Madam,
> I have been using tomcat 4.x/5.0.x version for web developmen 
> (JSP/Servlets)but i am finding difficulties in starting the server itself 
> many times.I have set the JAVA_HOME environmental variable to the directory 
> where i have installed the j2sdk1.4.2. e.g. E:\j2sdk1.4.2. and under that 
> folder all other subfolders like bin, jre are there.When i am trying to start 
> the tomcat server by double clicking on the startup.bat inside bin folder the 
> tomcat console comes only for 3-4 seconds and then disappears.I also tried to 
> solve it by changing the port no 8080 which is inside server.xml file to any 
> other port (e.g. 9020,8090 etc.),but still it's not working.
> 
> Also sometimes even though the server starts and runs fine and i am able to 
> see the index.html page(featuring the cat) i get a 404 error of resource not 
> found while trying to access my own webapplication which i create inside the 
> webapps folder.though it is there 
>already.For an example i create a folder named my_apps/WEB-INF/classes inside 
>webapps but i get a 404 error (resource not found) when i type 
>http://localhost:8080/my_apps
> 
>These two problems are really making me annoyed.I am fade of these 
>problems.Please tell me the solution to these problems.
> 
>Ayaskant 
> 
>
> 
>-
>Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site! 
> 
>

-
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. Learn more.

Re: Tomcat not running(4.0.6/5.0.19)-urgent

2005-03-19 Thread Mark Leone
Try putting an html or jsp file in your my_apps folder. I'm not sure 
what Tomcat does when you navigate to the web app with nothing other 
than WEB-INF in the web app's folder. When I navigate to one of my web 
apps the way you're trying, I get a directory listing of the files and 
folders I have there, but I notice that that WEB-INF is not included in 
that listing, even though it is present. So a better test of your web 
app would be to try to hit an html or jsp page.

As someone else pointed out, the log files should give you a good clue 
as to why Tomcat isn't starting up sometimes.

-Mark
ayaskant swain wrote:
Dear Sir/Madam,
   I have been using tomcat 4.x/5.0.x version for web 
developmen (JSP/Servlets)but i am finding difficulties in starting the server 
itself many times.I have set the JAVA_HOME environmental variable to the 
directory where i have installed the j2sdk1.4.2. e.g. E:\j2sdk1.4.2. and under 
that folder all other subfolders like bin, jre are there.When i am trying to 
start the tomcat server by double clicking on the startup.bat inside bin folder 
the tomcat console comes only for 3-4 seconds and then disappears.I  also tried 
to solve it by changing the port no 8080 which is inside server.xml file to any 
other port (e.g. 9020,8090 etc.),but still it's not working.
  Also sometimes even though the server starts and runs fine and i am able to see the index.html page(featuring the cat) i get a 404 error of resource not found while trying to access my own webapplication which i create inside the webapps folder.though it is there 
already.For an example i create a folder named my_apps/WEB-INF/classes inside 
webapps but i get a 404 error (resource not found) when i type http://localhost:8080/my_apps

These two problems are really making me annoyed.I am fade of these 
problems.Please tell me the solution to these problems.
Ayaskant 

		
-
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site! 
 

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


Re: Tomcat not running(4.0.6/5.0.19)-urgent

2005-03-19 Thread ayaskant swain
Thanks for your instant reply.But i just checked whatever u had said.I tried to 
start it from the console by giving the command %CATALINA_HOME%\bin\startup.bat 
 but same problem still persists.The tomcat console came only for 2-3 seconds 
and then dissapeared.So i could not read the error messages.I am using Windows 
2000 server.some times it runs fine and gives me the desired output.
 
Ok what about that resource not found(404 error).I have created my own folder  
called my_apps inside webapps and the whole directory structure WEB-INF/classes 
inside that.but when am typing http://localhost:8080/my_apps in the address bar 
of the browser am getting this error.Ya one clue is that in the tomcat console 
am getting org.xml.sax.SAXPARSEException. 
 should match with a ending .But i have checked my 
webapplication's web.xml file & it is correct and there is no other user's 
application inside the webapps folder.
 
Currently am doing a project and i need the solution very badly.
 
First let me help in starting the server.What about that logs?
Ayaskant

Torrey Rice <[EMAIL PROTECTED]> wrote:
It's tough to say what your problem is without more information. Did you 
check Tomcat's logs to see what the error is when starting up? Have you 
tried running tomcat from the console instead of from a batch file so 
that you can see the output of the server when it erors and quits?

Give those a try and let us know what the output is and maybe some one 
can help.

Regards

ayaskant swain wrote:

>Dear Sir/Madam,
> I have been using tomcat 4.x/5.0.x version for web developmen 
> (JSP/Servlets)but i am finding difficulties in starting the server itself 
> many times.I have set the JAVA_HOME environmental variable to the directory 
> where i have installed the j2sdk1.4.2. e.g. E:\j2sdk1.4.2. and under that 
> folder all other subfolders like bin, jre are there.When i am trying to start 
> the tomcat server by double clicking on the startup.bat inside bin folder the 
> tomcat console comes only for 3-4 seconds and then disappears.I also tried to 
> solve it by changing the port no 8080 which is inside server.xml file to any 
> other port (e.g. 9020,8090 etc.),but still it's not working.
> 
> Also sometimes even though the server starts and runs fine and i am able to 
> see the index.html page(featuring the cat) i get a 404 error of resource not 
> found while trying to access my own webapplication which i create inside the 
> webapps folder.though it is there 
>already.For an example i create a folder named my_apps/WEB-INF/classes inside 
>webapps but i get a 404 error (resource not found) when i type 
>http://localhost:8080/my_apps
> 
>These two problems are really making me annoyed.I am fade of these 
>problems.Please tell me the solution to these problems.
> 
>Ayaskant 
> 
>
> 
>-
>Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site! 
> 
>

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



-
Do you Yahoo!?
 Read only the mail you want - Yahoo! Mail SpamGuard.

Re: Tomcat not running(4.0.6/5.0.19)-urgent

2005-03-19 Thread Torrey Rice
It's tough to say what your problem is without more information. Did you 
check Tomcat's logs to see what the error is when starting up? Have you 
tried running tomcat from the console instead of from a batch file so 
that you can see the output of the server when it erors and quits?

Give those a try and let us know what the output is and maybe some one 
can help.

Regards
ayaskant swain wrote:
Dear Sir/Madam,
   I have been using tomcat 4.x/5.0.x version for web 
developmen (JSP/Servlets)but i am finding difficulties in starting the server 
itself many times.I have set the JAVA_HOME environmental variable to the 
directory where i have installed the j2sdk1.4.2. e.g. E:\j2sdk1.4.2. and under 
that folder all other subfolders like bin, jre are there.When i am trying to 
start the tomcat server by double clicking on the startup.bat inside bin folder 
the tomcat console comes only for 3-4 seconds and then disappears.I  also tried 
to solve it by changing the port no 8080 which is inside server.xml file to any 
other port (e.g. 9020,8090 etc.),but still it's not working.
  Also sometimes even though the server starts and runs fine and i am able to see the index.html page(featuring the cat) i get a 404 error of resource not found while trying to access my own webapplication which i create inside the webapps folder.though it is there 
already.For an example i create a folder named my_apps/WEB-INF/classes inside 
webapps but i get a 404 error (resource not found) when i type http://localhost:8080/my_apps

These two problems are really making me annoyed.I am fade of these 
problems.Please tell me the solution to these problems.
Ayaskant 

		
-
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site! 
 

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


RE: Tomcat not running on Redhat 9 (SOMRAJ)

2004-05-14 Thread Shapira, Yoav

Hi,
You have more than one error: at least two distinct ones.

What jars are in your WEB-INF/lib directory?  If there's a j2ee.jar
there (or anywhere else in your tomcat server installation), remove it.

Do you have Axis or Slide installed, thereby causing the log4j warning
messages?  If so, you need to configure log4j for them.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Somraj Bhattacharyya [mailto:[EMAIL PROTECTED]
>Sent: Friday, May 14, 2004 9:32 AM
>To: 'Tomcat Users List'
>Subject: Tomcat not running on Redhat 9 (SOMRAJ)
>
>
>
>Hi all
>
>I am quite new in Tomcat. I am facing a startup error while starting up
my
>Tomcat server.
>My Tomacat server version is:
>tomcat-4.1.30
>
>JDK installed is:
>Java(TM) 2 Runtime Environment, Standard Edition (build
1.3.1_11-b02)Java
>HotSpot(TM) Client VM (build 1.3.1_11-b02, mixed mode)
>
>The error is: vi catalina.out
>
>log4j:WARN No appenders could be found for logger
>(org.apache.commons.digester.D
>igester).
>log4j:WARN Please initialize the log4j system properly.
>Exception during startup processing
>java.lang.reflect.InvocationTargetException:
>java.lang.UnsupportedClassVersionEr
>ror: javax/transaction/UserTransaction (Unsupported major.minor version
>48.0)
>at java.lang.ClassLoader.defineClass0(Native Method)
>at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
>at
>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
>6)
>at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
>at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
>at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
>at java.security.AccessController.doPrivileged(Native Method)
>at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
>at
>org.apache.catalina.loader.StandardClassLoader.findClass(StandardClas
>sLoader.java:621)
>at
>org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
>sLoader.java:958)
>at
>org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
>sLoader.java:857)
>at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
>at java.lang.ClassLoader.defineClass0(Native Method)
>
>Please guide
>Thanks in advance
>
>-
>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: Tomcat NOT running --> solved

2003-09-29 Thread Johan Louwers
Solved the problem,
the problem was I had a typo

In tomcat-users.xml I forgot a "
I had :
 

and this should be:
 

:-)


- Original Message -
From: "Johan Louwers" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, September 29, 2003 11:17 AM
Subject: Tomcat NOT running


> I have a problem,
> we found this morning that the tomcat server is not starting.. when we do
> manual ./startup.sh all looks good buth tomcat is not started. When we do
> ./shutdown.sh I get the following error:
>
> # ./shutdown.sh
> Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4.1.27
> Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4.1.27
> Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.27/temp
> Using JAVA_HOME:   /usr/local/j2sdk1.4.1_05
> Catalina.stop: java.net.ConnectException: Connection refused
> java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
> at java.net.Socket.connect(Socket.java:434)
> at java.net.Socket.connect(Socket.java:384)
> at java.net.Socket.(Socket.java:291)
> at java.net.Socket.(Socket.java:119)
> at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
> at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
> at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> #
>
> Any clue anybody?
>
> Regards,
> Johan.
>
>
> -
> 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 NOT running

2003-09-29 Thread Johan Louwers
Also when I start tomcat I get the following errors in my catalina.out
Anybody?


Sep 29, 2003 11:24:50 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Sep 29, 2003 11:24:50 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Sep 29, 2003 11:24:53 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Sep 29, 2003 11:24:55 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Sep 29, 2003 11:24:56 AM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 11 column 52: Open quote is expected for
attribute "roles".
org.xml.sax.SAXParseException: Open quote is expected for attribute "roles".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.scanAttributeValue(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanAttribute(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno
wn Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at
org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:41
6)
at
org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(Memory
UserDatabaseFactory.java:143)
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:186)
at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(Glo
balResourcesLifecycleListener.java:214)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(Glo
balResourcesLifecycleListener.java:181)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(G
lobalResourcesLifecycleListener.java:149)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
GlobalResourcesLifecycleListener: Exception processing Global JNDI Resources
javax.naming.NamingException: Open quote is expected for attribute "roles".
at org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(Glo
balResourcesLifecycleListener.java:214)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(Glo
balResourcesLifecycleListener.java:181)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(G
lobalResourcesLifecycleListener.java:149)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

RE: Tomcat not running

2003-04-02 Thread Shapira, Yoav

Howdy,
Kindly tell us what errprs are in the tomcat logs... ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: sharad gulati [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 02, 2003 1:00 PM
>To: [EMAIL PROTECTED]
>Subject: Tomcat not running
>
>Hi,
>I have installed Tomcat 4.1 and under the services running I am able to
see
>tomcat running but when I enter //localhost:8080/ it does not show me
the
>index.jsp page. I had Tomcat running before I installed the Java Web
>Services Development Kit. Even after uninstall of JWSDK and reinstall
of
>Tomcat the problem persists. I have even checked the registry for any
left
>overs and there are none. I am using XP home. Kindly advise.
>Thanks,
>Sharad Gulati.
>
>
>
>
>
>_
>MSN 8 with e-mail virus protection service: 2 months FREE*
>http://join.msn.com/?page=features/virus
>
>
>-
>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: Tomcat not running

2002-02-08 Thread Mario Alberto Haza TreviƱo

I found my error, i changed CATALINA_HOME from
CATALINA_HOME=/usr/local/jakarta-tomcat-4.0.1-src/catalina/build to
CATALINA_HOME=/usr/local/jakarta-tomcat-4.0.1-src/catalina/dist and all
seems OK.

(I compiled tomcat 4.01 from sources with Sun's jdk 1.40 rpm on RH 7.2)

--
Mario Haza
Jefe de Internet / MultiPack
5230-8970 ext. 2787
www.multipack.com.mx



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: tomcat not running...

2001-05-29 Thread Randy Layman


Your problem is that Tomcat is not starting correctly - if the DOS
window goes away then Tomcat has stopped.  I would suggest trying to run
"tomcat run" instead of "tomcat start" so that you can see the error.

Randy

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 28, 2001 4:11 PM
> To: [EMAIL PROTECTED]
> Subject: tomcat not running...
> 
> 
> Hello guys,
> I don't know what's happening with my tomcat installation, it 
> was ok... but suddenly stopped. I'm running on win2k + IIS 
> redirect mode. When type "tomcat start" on prompt C:\>, i 
> receive the usual messages in a new "DOS" window and after it 
> close automatically and tomcat process hang-up. My tomcat.log 
> file doesn't register any error message.
> Any suggestions are wellcome!
> thanks in advance!
>