Error starting tomcat 4.1.12
I'm running win2k Pro. I installed first j2sdk1.4.1 and then tomcat 4.1.12 on my e:\. When I click START TOMCAT i recieve the error in a dialog box:
Cannot find the file '-Djava.endorsed.dirs='(or one of its components). Make sure the path and filename are correct and that all required libraries are available
Also in the command prompt it describes the error as:
The JAVA_HOME environment variable is not defined
This environment variable is need to run this program
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:
I've set my environment variables as the following
JAVA_HOME - e:\j2sdk1.4.1
CATALINA_HOME - e:\Tomcat
CLASSPATH - e:\Tomcat\common\lib\servlet.jar
PATH - c:\WINNT;c:\WINNT\SYSTEM32\cmd;e:\j2sdk1.4.1
I had exactly the same problem, but I couldn't find the solution. But the workaround I use was good enought for me. Tomcat installs itself as a service (at least in Win XP which I use). Starting/Stopping from service gave me no problem at all. The services doesn't use same startup behaviour as .bat file. If you need to start from a .bat file take a look at how the services is started.
Similar Messages
-
Hi all,
I'm stupefied. In the past I had a Tomcat running in Apache, now I seem not to be able to accomplish it.
My environment:
OS: Windows XP
Java: jdk1.6.0_03
Apache: Apache2.2
Tomcat: Tomcat6.0
JAVA_HOME is set to C:\Program Files\Java\jdk1.6.0_03
I used the Apache Tomcat Setup Wizard to install Tomcat. It is installed as an XP service. Starting fails, with the following entry in the log file:
[2007-12-05 15:37:44] [info] Procrun (2.0.3.0) started
[2007-12-05 15:37:44] [info] Running Service...
[2007-12-05 15:37:44] [info] Starting service...
[2007-12-05 15:37:44] [174 javajni.c] [error] The specified module could not be found.
[2007-12-05 15:37:44] [986 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.6.0_03\bin\client\jvm.dll
[2007-12-05 15:37:44] [1260 prunsrv.c] [error] ServiceStart returned 1
[2007-12-05 15:37:44] [info] Run service finished.
[2007-12-05 15:37:44] [info] Procrun finished.
I've been searching the Internet on the error message <tomcat jdk The specified module could not be found>, and have been fiddling around with my configuration, but still my Tomcat does not want to start. So does anyone have an idea what I need to do to get my Tomcat in the air?
AbelFound the error, after searching some more on the Internet. It seems Tomcat misses a file, msvcr71.dll, which is located in the C:\Program Files\Java\jdk1.6.0_03\bin directory. If you copy this file to the <windows>/system32 directory, Tomcat starts without a problem.
:-| -
Hi,
This may be a very basic question on tomcat server:
What is the difference between creating a server (through the server View provided in eclipse) and using the three icons (at the top, just below the main menu) to start tomcat? I am new to Tomcat and am developing a web appln on tomcat.
Another question that i have is,
1. To which folder is my application deployed in Tomcat? For.e.g in Jboss the application as a war file can be fond in Jboss/server/default(or all)/deploy.
2. In Jboss i have an option to publish the project, if i start Tomcat by the 3 icon buttons provided at the top, how can i ensure that my latest code is published to the tomcat server.
3. What is this Tomcat manager screen for? How can i make use of this?
Apart from these, i am getting a few exceptions when i start tomcat (both by the 3 buttons and by creating a server in the server view), here is the list (from the console);
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service-name': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Le Nom service-name n'est pas li� � ce Contexte
Caused by: javax.naming.NameNotFoundException: Le Nom service-name n'est pas li� � ce Contexte
at org.apache.naming.NamingContext.lookup(NamingContext.java:768)
at org.apache.naming.NamingContext.lookup(NamingContext.java:138)
at org.apache.naming.NamingContext.lookup(NamingContext.java:779)
at org.apache.naming.NamingContext.lookup(NamingContext.java:138)
at org.apache.naming.NamingContext.lookup(NamingContext.java:779)
at org.apache.naming.NamingContext.lookup(NamingContext.java:151)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:124)
at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:86)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:122)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:147)
at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:90)
at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:101)
at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:164)
at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:151)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:308)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:252)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:221)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:115)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
2007-11-22 13:59:16 StandardContext[/directory-prod]La servlet /directory-prod a g�n�r� une exception "load()"
javax.servlet.ServletException: "Servlet.init()" pour la servlet ws a g�n�r� une exception
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1071)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
----- Root Cause -----
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service-name': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Le Nom service-name n'est pas li� � ce Contexte
Caused by: javax.naming.NameNotFoundException: Le Nom service-name n'est pas li� � ce Contexte
at org.apache.naming.NamingContext.lookup(NamingContext.java:768)
at org.apache.naming.NamingContext.lookup(NamingContext.java:138)
at org.apache.naming.NamingContext.lookup(NamingContext.java:779)
at org.apache.naming.NamingContext.lookup(NamingContext.java:138)
at org.apache.naming.NamingContext.lookup(NamingContext.java:779)
at org.apache.naming.NamingContext.lookup(NamingContext.java:151)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:124)
at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:86)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:122)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:147)
at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:90)
at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:101)
at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:164)
at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:151)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:308)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:252)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:221)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:115)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)Hi.
In order to run a web project, you have first to create a server in eclipse. Normally, this is done only the first time: you don't have to do it for every project and/or run.
To run your project in aserver, you hava to select the project in the package explorer, pick the middle-button :(green circle, play without overlays), and select Run As -> Run on server.
There, you should select a server if you already configured one or create a new one.
Now, I think that the error you're getting has nothing to do with JSF. It's more likely a Spring configuration error. You may have declared a JNDI DataSource for example named "service-name" in applicationContext.xml but not in your Container (Tomcat, JBoss, etc.).
Regards. -
Error : Apache tomcat 5.5 not starting with windows server 2003 32 bits
I can not start Tomcat 5.5 installed and deployed from the Business Objects BI Edge 3.1.
BO installs normally, but Tomcat does not start.
I tried to start tomcat from the control panel -> administrative tools -> services. But also not start.
You receive the following message: Windows could start in Apache Tomcat 5.5.20 on the local computer.
The log is:
06/05/2011 10:22:37 http://409 javajni.c error Failed CreateJavaVM
06/05/2011 10:22:37 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
06/05/2011 10:22:37 http://prunsrv.c 1179 error ServiceStart returned 2
06/05/2011 10:28:42 http://409 javajni.c error Failed CreateJavaVM
06/05/2011 10:28:42 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
06/05/2011 10:28:42 http://prunsrv.c 1179 error ServiceStart returned 2
06/05/2011 10:30:40 http://409 javajni.c error Failed CreateJavaVM
06/05/2011 10:30:40 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
06/05/2011 10:30:40 http://prunsrv.c 1179 error ServiceStart returned 2
06/05/2011 13:43:16 http://409 javajni.c error Failed CreateJavaVM
06/05/2011 13:43:16 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
06/05/2011 13:43:16 http://prunsrv.c 1179 error ServiceStart returned 2
06/05/2011 13:43:20 http://409 javajni.c error Failed CreateJavaVM
06/05/2011 13:43:20 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
06/05/2011 13:43:20 http://prunsrv.c 1179 error ServiceStart returned 2
06/05/2011 13:53:58 http://409 javajni.c error Failed CreateJavaVM
06/05/2011 13:53:58 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
06/05/2011 13:53:58 http://prunsrv.c 1179 error ServiceStart returned 2
06/05/2011 14:00:16 http://409 javajni.c error Failed CreateJavaVM
06/05/2011 14:00:16 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
06/05/2011 14:00:16 http://prunsrv.c 1179 error ServiceStart returned 2
06/05/2011 14:00:45 http://409 javajni.c error Failed CreateJavaVM
06/05/2011 14:00:45 http://930 prunsrv.c error Failed initializing java C: \ Program Files \ Business Objects \ Tomcat55 \ bin \ bootstrap.jar; C: \ Program Files \ Business Objects \ javasdk \ lib \ tools.jar
06/05/2011 14:00:45 http://prunsrv.c 1179 error ServiceStart returned 2
Help me, what should I do?hi
By default the BO install tomcat with:
Initial memory pool: 0 and
Maximum memory pool: 1024
I changed the settings in the Tomcat to:
Tomcat -> Tomcat configuration -> java>
Initial memory pool: 128 and
Maximum memory pool: 256
Then I accessed services.msc and start the Apache Tomcat. -
Hi
I follow FAXS_2_0_Quickstart and start tomcat. The check
http://centos:8080/flashaccessserver/flashaccess/license/v1
is ok. But the log file say
2011-04-21 15:57:59,122 FATAL [com.adobe.flashaccess.refimpl.packager.RefImplPackagerServer][] - Could not open server properties
java.io.FileNotFoundException
at com.adobe.flashaccess.refimpl.packager.RefImplPackagerServer.packagerSetup(RefImplPackage rServer.java:98)
at com.adobe.flashaccess.refimpl.packager.RefImplPackagerServer.run(RefImplPackagerServer.ja va:165)
at java.lang.Thread.run(Thread.java:636)
2011-04-21 15:57:59,125 INFO [com.adobe.flashaccess.refimpl.packager.RefImplPackagerServer][] - Exiting Packager thread.
Which file is it refer to ?
Where is the propert file to set this?Hello,
It looks like at one time or another, you tried setting up the Flash Access Reference Implementation License Server. Part of that package is a packaging server (which interfaces with a Graphical UI to package content). The error you're seeing below suggests something from the Reference Implementation is left behind.
I suggest doing the following:
1. Shut down your Flash Access license server
2. Remove the following from your <tomcat installation directory>/webapps
2a. (file) flashaccess-packager.war
2b. (directory) flashaccess-packager
3. Remove the directory <tomcat installation directory>/work/Catalina
4. Remove the directory <tomcat installation directory>/conf/Catalina
5. Start your server
Also - something to note is that your logfile seems to indicate only an issue was found with the packager deployment. If there are no issues around the flashaccessserver, then your license server should still work, as those 2 different services (packager server & license server) are independent of each other.
cheers,
/Eric. -
Starting tomcat 3.3 - win nt 4.0
Iam Starting Tomcat 3.3 in command prompt
"tomcat start".
A new window opens with tomcat running
Now I type "tomcat stop"
The New window closes and tomcat stops
once again I type "tomcat start".
Now the new window opens , but tomcat does not start. Its throwing the following execption
ThreadPool: Caught exception executing org.apache.tomcat.util.net.TcpWorkerThrea
d@1b9f5390, terminating thread
java.lang.LinkageError: Class java/util/Locale violates loader constraints
at org.apache.tomcat.modules.server.HttpResponse.init(Http10Interceptor.
java:430)
at org.apache.tomcat.core.ContextManager.initRequest(ContextManager.java
:816)
at org.apache.tomcat.modules.server.Http10Interceptor.init(Http10Interce
ptor.java:145)
at org.apache.tomcat.util.net.TcpWorkerThread.getInitData(PoolTcpEndpoin
t.java:452)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java, Compiled Code)
at java.lang.Thread.run(Thread.java:479)
can anyone solve thisI had the same problem reported to me. The error appeared when trying to debug a web application in JBuilder and was caused by trying to use debug features with JDK 1.2.2 without JPDA being available. Either change to use a later JDK (JPDA Is included from 1.3 on) or download JPDA from Sun and install it to clear the problem.
-
Error in Tomcat log and localhost_log after BO XI2 SP3 install
Hi,
After installing SP3 on my server I am getting the following error message in the localhost_log.2008-09-17.txt.
Caused by: java.lang.IllegalStateException: Context path /businessobjects/enterprise115/desktoplaunch is already in use
at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:896)
As well when I start Tomcat a severe error message apears.
I have replaced web.xml and struts-InfoView.xml with the original version.
Location:C:\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\WEB-INF
When I conncet to IfoView, it seems to work, except some activex buttons are "red Xed".
Thank you for your help,
AlexError-Page tags work best with an error.html pages. If you have an error.jsp page what I would do, and I have, is wrap my classes and jsp pages in a try catch block where you forward to the error jsp page and display anything you want. YOu can also do this with if else statements. I have used the tomcat error pages before but when I've implemented them I used java.lang.Exception as the error to catch not Throwable. I don't know if this would make a difference or have anything to do with your problem.
-
Newbie: jsp compile error w/ tomcat 5.0.19
Hello there, this is my first time try to write something in jsp/ servlets, and i encounter a minor installation problem:
using mdk linux with j2sdk1.4.2 (locate at /usr/local/), tomcat is also locate at /usr/local.
I am able to see HelloServlet.java, and HelloWorld.html at http://localhost:8080/servlet/HelloServlet
and http://localhost:8080/testing/HelloWorld.html
but i'm unable to see HelloWorld.jsp at http://localhost:880/HellowWorld.jsp (my HelloWorld.html and HellowWorld.jsp are locate at the same dir)
here's are the things i added in my /etc/profile so far:
CATALINA_HOME="/usr/local/Tomcat"
export CATALINA_HOME
JAVA_HOME="/usr/local/j2sdk1.4.2"
export JAVA_HOME
JavaPath="/usr/local/j2sdk1.4.2/bin"
export JavaPath
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH
CLASSPATH=$CLASSPATH:/usr/local/Tomcat/common/lib/servlet-api.jar:/usr/local/Tomcat/
common/lib/jsp-api.jar:/home/allen/programming/j2ee/:./
export CLASSPATH
when do java -verison, i see:
[root@localhost local]# java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
when start tomcat, i got:
[root@localhost bin]# ./startup.sh
Using CATALINA_BASE: /usr/local/Tomcat
Using CATALINA_HOME: /usr/local/Tomcat
Using CATALINA_TMPDIR: /usr/local/Tomcat/temp
Using JAVA_HOME: /usr/local/j2sdk1.4.2
i thought i did everything that was told, yet i can't see jsp page on my browser, while i can see servlets and html,
thank you for your time in advance ^_^sorry, it was a typo, yea...it was for http://localhost:8080/testing/Hello.jsp
this morning, i copied "tool.jar" from j2sdk1.4.2 to my /usr/local/tomcat/common/lib, restarted, fire it up again using "./catalina.sh" just to see where the problems came from, and here's where the compile error occue:
Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:978)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:799)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:387)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
at java.lang.Thread.run(Thread.java:534)
Mar 16, 2005 7:28:37 AM org.apache.jasper.compiler.Compiler generateClass
SEVERE: Env: Compile: javaFileName=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_//org/apache/jsp/testing/Hello_jsp.java
classpath=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes/:/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar:/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_:/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes/:/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar:/usr/local/jakarta-tomcat-5.0.19/shared/classes/:/usr/local/jakarta-tomcat-5.0.19/common/classes/:/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xercesImpl.jar:/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xmlParserAPIs.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/ant.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-collections.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-dbcp-1.1.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-el.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-pool-1.1.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-compiler.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-runtime.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jmx.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/jsp-api.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-common.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-factory.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-java.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-resources.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/servlet-api.jar:/usr/local/jakarta-tomcat-5.0.19/common/lib/tools.jar:/usr/local/j2sdk1.4.2/lib/tools.jar:/usr/local/jakarta-tomcat-5.0.19/bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.19/bin/commons-logging-api.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/sunjce_provider.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/dnsns.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/ldapsec.jar:/usr/local/j2sdk1.4.2/jre/lib/ext/localedata.jar
cp=/usr/local/j2sdk1.4.2/lib/tools.jar:/usr/local/Tomcat/bin/bootstrap.jar:/usr/local/Tomcat/bin/commons-logging-api.jar
cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes
cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar
cp=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_
cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/classes
cp=/usr/local/jakarta-tomcat-5.0.19/webapps/ROOT/WEB-INF/lib/catalina-root.jar
cp=/usr/local/jakarta-tomcat-5.0.19/shared/classes
cp=/usr/local/jakarta-tomcat-5.0.19/common/classes
cp=/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xercesImpl.jar
cp=/usr/local/jakarta-tomcat-5.0.19/common/endorsed/xmlParserAPIs.jar
cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/ant.jar
cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-collections.jar
cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-dbcp-1.1.jar
cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-el.jar
cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/commons-pool-1.1.jar
cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-compiler.jar
cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jasper-runtime.jar
cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jmx.jar
cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/jsp-api.jar
cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-common.jar
cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-factory.jar
cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-java.jar
cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/naming-resources.jar
cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/servlet-api.jar
cp=/usr/local/jakarta-tomcat-5.0.19/common/lib/tools.jar
cp=/usr/local/j2sdk1.4.2/lib/tools.jar
cp=/usr/local/jakarta-tomcat-5.0.19/bin/bootstrap.jar
cp=/usr/local/jakarta-tomcat-5.0.19/bin/commons-logging-api.jar
cp=/usr/local/j2sdk1.4.2/jre/lib/ext/sunjce_provider.jar
cp=/usr/local/j2sdk1.4.2/jre/lib/ext/dnsns.jar
cp=/usr/local/j2sdk1.4.2/jre/lib/ext/ldapsec.jar
cp=/usr/local/j2sdk1.4.2/jre/lib/ext/localedata.jar
work dir=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_
extension dir=/usr/local/j2sdk1.4.2/jre/lib/ext
srcDir=/usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_
include=org/apache/jsp/testing/Hello_jsp.java
Mar 16, 2005 7:28:37 AM org.apache.jasper.compiler.Compiler generateClass
SEVERE: Error compiling file: /usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_//org/apache/jsp/testing/Hello_jsp.java [javac] Compiling 1 source file
[javac] /usr/local/jakarta-tomcat-5.0.19/work/Catalina/localhost/_/org/apache/jsp/testing/Hello_jsp.java:48: cannot resolve symbol
[javac] symbol : class Data
[javac] location: package util
[javac] out.print( new java.util.Data() );
[javac] ^
[javac] 1 error
Mar 16, 2005 7:32:34 AM org.apache.jasper.compiler.Compiler generateClass
looking over the compiler error, it seems to me tomcat is able to recongize /usr/local/j2sdk1.4 's location. which i assume it implied JAVA_HOME and CLASSPATH are setup correctly.
Dunno why it just won't display jsp pages and kept saying compiler error...
thank you for helping -
Eclipse 3.0 can't start Tomcat 5.0...
Hi,
I've installed Tomcat 5.0, Eclipse 3.0 and Sysdeo-Plugin ( com.sysdeo.eclipse.tomcat_3.0.0).
After opening Eclipse I've tried to start Tomcat within Eclipse.
I got the following error-message:
java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
Next a pop-up-alert was displayed with the following content:
Java Virtual Machine Launcher: Could not find the main class. Program will exit.
After trying to start Tomcat agin, errLog showed the following 2 errors:
1.
Message: Start Tomcat...
Exception Stack Trace: An exception stack trace could not be found.
Session Data:
eclipse.buildId=M200409161125
java.version=1.4.2_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
2.
Message: Stop Tomcat...
Exception Stack Trace: An exception stack trace could not be found.
Session Data:
eclipse.buildId=M200409161125
java.version=1.4.2_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
After closing Eclipse, the error-message (Java Virtual Machine Launcher: Could not find the main class. Program will exit.) was shown, again...
Do you have any idea, in order to fix the bug...?
bye
ChrisNow I've installed Tomcat 5.5.7 and set CATALINA_HOME and PATH.
The ErrorLogs by starting and stopping Tomcat were still displayed.
By starting Tomcat 5.5.7 wihin Eclipse 3.0.1., the Console shows this:
13.02.2005 14:33:07 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
13.02.2005 14:33:07 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1201 ms
13.02.2005 14:33:08 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
13.02.2005 14:33:08 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
13.02.2005 14:33:08 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
13.02.2005 14:33:10 org.apache.catalina.startup.ContextConfig applicationWebConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Lomb]
13.02.2005 14:33:11 org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Tomcat_5_5_7\webapps\ZT\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
13.02.2005 14:33:11 org.apache.catalina.startup.ContextConfig applicationWebConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ZT]
13.02.2005 14:33:11 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
13.02.2005 14:33:11 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
13.02.2005 14:33:12 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/120 config=null
13.02.2005 14:33:12 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
13.02.2005 14:33:12 org.apache.catalina.startup.Catalina start
INFO: Server startup in 4517 msSome INFO's look strange:
INFO: validateJarFile(C:\Tomcat_5_5_7\webapps\ZT\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offendingor
INFO: Missing application web.xml, using defaults onlyor
INFO: XML validation disabledDo you know, what's the reason for it?
bye
Chris -
I have encountered a puzzle question with Tomcat,I setup a DSN with Microsoft OLE DB Provider for ODBC Drivers,when I start tomcat with C:\Tomcat5.5\bin\tomcat5w.exe,I get a error:
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Then I don't open the page "http://localhost:8080"
But when I start tomcat with C:\Tomcat5.5\bin\tomcat5.exe,I can start tomcat and I don't get above error,and I can visit "http://localhost:8080"
Why I can't start Tomcat with tomcat5w.exe and can start Tomcat with tomcat5.exe?
I am puzzled with this question for a several days! I don't know how to solve it. Any body meet with my question?
Any idea will be appreciated!
Thanks in advanceI use Microsoft Access Database,is it a bug of Tomcat?
-
Trouble in Starting Tomcat server
Hi,
I installed Eclipse & Tomcat. I started Tomcat using Eclipse. In console it showed as
Jun 24, 2006 4:55:09 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.31
Jun 24, 2006 4:55:11 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
Jun 24, 2006 4:55:11 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
Jun 24, 2006 4:55:12 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Jun 24, 2006 4:55:14 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 24, 2006 4:55:15 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jun 24, 2006 4:55:15 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/100 config=C:\Program Files\Apache Group\Tomcat 4.1\conf\jk2.properties
Error compiling file: C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\/index_jsp.java [javac] Compiling 1 source file
But When gave this link in URL: http://localhost:8080
I got an error as follows:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file.
Then I tried from command promt to start Tomcat:
I checked environment variable JAVA_HOME, the Value is "C:\j2sdk1.4.2_11\bin;". Also PATH:;C:\j2sdk1.4.2_11\bin;
But Igot an error as follows
C:\Program Files\Apache Group\Tomcat 4.1\bin>startup
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: C:\j2sdk1.4.2_11\bin;
The system cannot find the file -Dsun.io.useCanonCaches=false.
C:\Program Files\Apache Group\Tomcat 4.1\bin>
Can any one guide me, to correct this error.
Thanks in advance.did you edit the catalina.bat file in Tomcat?
It requires that you do so...I don't think by default it will have your JDK that resides on your machine.
I've edited various versions of Tomcat and the catalina.bat, server.xml and web.xml files before, and usually I've just about always had to add a line (SET JAVA_HOME) and then the variable %JAVA_HOME% will read it. -
Can't start Tomcat after installing it
In my laptop, I installed Tomcat and it installed fine, but, when I try to start Tomcat, it doesn't do anything.
I get the following error message when I do Catalina run under tomcat's bin directory:
C:\jakarta-tomcat-5.0.12>catalina run
'catalina' is not recognized as an internal or external command,
operable program or batch file.
C:\jakarta-tomcat-5.0.12>cd bin
C:\jakarta-tomcat-5.0.12\bin>catalina run
Using CATALINA_BASE: C:\jakarta-tomcat-5.0.12
Using CATALINA_HOME: C:\jakarta-tomcat-5.0.12\
Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.12\temp
Using JAVA_HOME: C:\j2sdk1.4.1_02
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp -classpath <directories and zip/jar files separated by ;>
set search path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
C:\jakarta-tomcat-5.0.12\bin> -
hi,
i want to develop simple application using servlets.i ve installed apache tomcat4.1 version.i ve compiled my servlet program successfully.but when i am trying to start tomcat server,it is showing some error.i ve set the callspath too.
the error is:
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: c:\jdk1.5.0_05;
The system cannot find the file -Dsun.io.useCanonCaches=false.
please resolve my problem..
thanks in advance..Using JAVA_HOME: c:\jdk1.5.0_05;There shouldn't be a semi-colon in the JAVA_HOME
-
Problem starting Tomcat web server in Ubuntu.
Hi every one,
I use Ubuntu OS.I have installed J2sdk.I want to start tomcat webserver but whenever i start the server I get an error as
'/usr/share/tomcat/bin/catalina.sh: line 41: setJava: No such file or directory'
I tried removing the line, to find out the cause of that error.When I removed line 41 , it showed JAVA_HOME variables not set.
I have set JAVA_HOME varible as
'/usr/lib/j2sdk1.5-sun/bin/javac/usr/lib/j2sdk1.5-sun/bin/'
line 41 is '. setJava --devel Java2'
Could anyone help me to solve this issue?
And Thanks in advance
-JeganI use Ubuntu OS.I have installed J2sdk.I want to start tomcat webserver but whenever i start the server I get an error as
'/usr/share/tomcat/bin/catalina.sh: line 41: setJava: No such file or directory'
I tried removing the line, to find out the cause of that error.When I removed line 41 , it showed JAVA_HOME variables not set.
I have set JAVA_HOME varible as
'/usr/lib/j2sdk1.5-sun/bin/javac/usr/lib/j2sdk1.5-sun/bin/'
line 41 is '. setJava --devel Java2'
Could anyone help me to solve this issue?
And Thanks in advance -
hi
friends i am facing problem in starting tomcat jakarta-tomcat-4.1.24 , actually i think i am doing mistake in setting environment variable
set classpath=%classpath%;C:\tomcat\jakarta-tomcat-4.1.24\common\lib\servlet.jar;
set path=%path%;C:\j2sdk1.4.2_01\bin;C:\tomcat\jakarta-tomcat-4.1.24\common\lib\servlet.jar;
i woud really appriate if u people help me in sorting out this problem
tell me how to start using tomcat for servelet runnings.jindal wrote:
hi
friends i am facing problem in starting tomcat jakarta-tomcat-4.1.24 , actually i think i am doing mistake in setting environment variable
set classpath=%classpath%;C:\tomcat\jakarta-tomcat-4.1.24\common\lib\servlet.jar;
set path=%path%;C:\j2sdk1.4.2_01\bin;C:\tomcat\jakarta-tomcat-4.1.24\common\lib\servlet.jar;
i woud really appriate if u people help me in sorting out this problem
tell me how to start using tomcat for servelet running
I just type ./startup.sh, but then I am using a later version.
You would likely get better help at a Tomcat forum.
And then, you need to post what your error is. "Facing a problem" isn't helpful.
Maybe you are looking for
-
How can we see Last Date and last quantities in Bex Analyzer ?
Hı BW Gurus, I have a query that shows consumption quantities for a material regarding to a date interval. On initial screen i specify a material and a date interval ( 01.04.2007 - 15.04.2007 for example). Then query brings total consumptions(261 and
-
Cannot download PrintControl.cab for Crystal Report Basic (VS2008)
Our legacy ASP.NET application uses Crystal Report Basic (from Visual Studio 2008), and it can't download PrintControl.cab from address : http://resources.businessobjects.com/support/downloads/microsoft/vs_2008/printcontrol.cab Is there any new addre
-
Can snippets made in InDesign CS5 be placed in a CS4 document?
Can snippets made in InDesign CS5 be placed in a CS4 document?
-
Labview 8.2 close or crashes when opening up Test Exec. from labview 5.1
Why would Labview 8.2 close or crashes when opening up Test Exec. from 5.1? Labview 8.2 begins to load the Test Executive VI, then, stops and closes labview altogether. I remember getting it to load before but do not know what could be causing this
-
How can I erase data, photos and videos from iPad 2 before selling?
I plan to sell my old iPhone 2, there are many private file, like photos, videos in it, I have deleted them all, but I found it is still can be recovered by a iPad data recovery app, I worry my private info to be misused by someone else. So how can I