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
Chris
Now 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
Similar Messages
-
Can't start Tomcat after installing Bea WorkShop for JSP
Hi,
I have been using Eclipse SDK Version: 3.1.2 Build id: M20060118-1600 and Web Tools Project 1.0.2 and Tomcat 5.0 and Tomcat 5.5 for about 2 months with no problems. But now I Can't start Tomcat after installing Bea WorkShop for JSP plug-in. I get "Server Tomcat v5.0 @ localhost failed to start". Any help would be greatly appreciated.I installed BEA Workshop for JSP Version: 3.1.0
Build id: 536. I only wanted to install the plug-in to my existng Eclipse 3.1 / WTP application. The only option that I saw was to download the entire FullWorkshopFreeInstall-536.zip, which is 192,496 KB. During the installation, there is a screen that you can specify to only install the plug-in - and I selected that option. Today, I chose to uninstall the BEA Workshop for JSP and then I was again able to start Tomcat server. I then did a complete install of BEA Workshop for JSP into a totally separate location. My original Eclipse installation still works fine, but my Workshop for JSP Version (which is now a completely new installation) has the same problem with Tomcat that I reported with the plug-in. I am using j2sdk1.4.2_08 and have tried both Tomcat 5.0 and Tomcat 5.5. I have the same problem with both Windows XP Home Edition and Windows XP Professional.
Thanks for your assistance.
Ron -
Can't Start Tomcat 5 as a Service
Can't Start Tomcat 5 as a Service on XP, when I do
tomcat5\bin\net start tomcat5
I get "NET" is not recognized as an internal or external command
where's that net command coming from? java or XP
thanksYou are trying to start the program called tomcat\bin\net which does not exist. The net command belongs to Windows. Just issuing "net start tomcat" or "net start tomcat5" should work from any directory.
Or just go through the Control Panel->Administrative Tools->Services dialog to start and stop Tomcat as a service. -
Can't start Tomcat! help me!
Hello all,
I have used JDK1.3.1; now I download Tomcat, I write a batch file includes:
set JAVA_HOME=C:\JDK1.3.1
set ANT_HOME=C:\jakarta-tomcat
set TOMCAT_HOME=C:\jakarta-tomcat
set CLASSPATH=%CLASSPATH%;C:\jdk1.3.1\lib\tools.jar;
and run it;
now I go to C:\jakarta-tomcat\bin and type 'startup':
C:\jakarta-tomcat\bin>startup
Including all jars in C:\jakarta-tomcat\lib in your CLASSPATH.
Using CLASSPATH: C:\jakarta-tomcat\classes;C:\jakarta-tomcat\lib\ant.jar;C:\jaka
rta-tomcat\lib\jasper.jar;C:\jakarta-tomcat\lib\jaxp.jar;C:\jakarta-tomcat\lib\p
arser.jar;C:\jakarta-tomcat\lib\servlet.jar;C:\jakarta-tomcat\lib\webserver.jar;
;C:\jdk1.3.1\lib\tools.jar;;C:\JDK1.3.1\lib\tools.jar
Starting Tomcat in new window
but the new window disappear after several seconds,Tomcat doesn't start.Then, I type 'tomcat run':
C:\jakarta-tomcat\bin>tomcat run
Including all jars in C:\jakarta-tomcat\lib in your CLASSPATH.
Using CLASSPATH: C:\jakarta-tomcat\classes;C:\jakarta-tomcat\lib\ant.jar;C:\jaka
rta-tomcat\lib\jasper.jar;C:\jakarta-tomcat\lib\jaxp.jar;C:\jakarta-tomcat\lib\p
arser.jar;C:\jakarta-tomcat\lib\servlet.jar;C:\jakarta-tomcat\lib\webserver.jar;
;C:\jdk1.3.1\lib\tools.jar;;C:\JDK1.3.1\lib\tools.jar
ERROR reading C:\jakarta-tomcat\conf\server.xml
At Line 121 /Server/ContextManager/ContextInterceptor/ className=org.apache.tomc
at.context.LoaderInterceptor
FATAL: configuration error
java.lang.ClassNotFoundException: org.apache.tomcat.context.LoaderInterceptor
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.apache.tomcat.util.xml.ObjectCreate.start(XmlMapper.java:453)
at org.apache.tomcat.util.xml.XmlMapper.matchStart(XmlMapper.java:314)
at org.apache.tomcat.util.xml.XmlMapper.startElement(XmlMapper.java:68)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1390)
at com.sun.xml.parser.Parser.content(Parser.java:1498)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1399)
at com.sun.xml.parser.Parser.content(Parser.java:1498)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1399)
at com.sun.xml.parser.Parser.parseInternal(Parser.java:491)
at com.sun.xml.parser.Parser.parse(Parser.java:283)
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:198)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
C:\jakarta-tomcat\bin>
What's this problem? How can I do?please help me,
thanksModify the classpath as follows.
set JAVA_HOME=C:\JDK1.3.1
set ANT_HOME=C:\jakarta-tomcat
set TOMCAT_HOME=C:\jakarta-tomcat
set CLASSPATH=%CLASSPATH%;C:\jdk1.3.1\lib\tools.jar;JAVA_HOME\lib;
Modify the Path as follows
set PATH = %PATH%;%JAVA_HOME%\bin;%TOMCAT_HOME%\bin -
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> -
Every time I start Tomcat 5 either from the commandline, service or NetBeans it issues this error and the webApp does not get started.
I get the following:
SEVERE: Error registering Catalina:type=Mapper
java.lang.SecurityException: access denied (javax.management.MBeanTrustPermission register)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1725)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:342)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:505)
at org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
at org.apache.commons.modeler.Registry.registerComponent(Registry.java:346)
at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1557)
at org.apache.catalina.core.StandardService.start(StandardService.java:528)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Aug 16, 2004 9:55:06 AM org.apache.coyote.tomcat5.CoyoteConnector start
SEVERE: Protocol JMX registration failed
java.lang.SecurityException: access denied (javax.management.MBeanTrustPermission register)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1725)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:342)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:505)
at org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
at org.apache.commons.modeler.Registry.registerComponent(Registry.java:346)
at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1557)
at org.apache.catalina.core.StandardService.start(StandardService.java:528)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Aug 16, 2004 9:55:06 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 47859 ms
Is there a way to stop this?? All I have done is install at this point.
Any help would be appreciated.
LeeHi,
Check the environment variables for TOMCAT_HOME and JAVA_HOME.
Best of Luck,
KJ -
Hi.
When I click on startup.bat, the screen appears and disappears the very next second. I have tried to reboot the comp and install a newer version of tomcat, but this same problem still show up. When I check the task manager, I don't think there is any tomcat running. Even if there is, I don't know which one is it. Anyone can help?When I click on startup.bat, the screen appears and disappears the very next second.Open a command console using start > run > cmd.exe and run it from there.
-
Help! -why can't start Tomcat --Installation problem??
I downloaded Tomcat 5.0.30.exe and installed Tomcat 5 and JDK 5 on my local computer (I also have IIS installed, and Java App Server (from J2EE); yes I have plenty of space lol);
I did this in the command line:
Set JAVA_HOME=C:\jdk1.5_03; and I also added this env variable to my user & system Path variables in System Properties dialogue (just to exclude this problem).
and I remember during the Tomcat.exe installation, the JVM was already correctly set to C:\Program Files\Java\jre1.5_03\bin\client\jvm.dll (I also tried set JVM to C:\jdk1.5_03\jre\bin\server\jvm.dll and it did not seem to make any difference)
I am still not able to startup the service (don't see my admin page even though the system tray says the Tomcat is running).
Does any of the above setup seem wrong? I'm a novice in Java/JSP and just want to try developing some web service in Java/JSP instead of ASP or .NET.
I'd appreciate all your advice and help!!
Thanks in advance!!When I say "Startup" in the command, the original command window displays Using CATALINA_HOME: C:\apache\tomcat5, so I guess it was correctly set already ...?
By default, it is using 8080 port... If I have my IIS running, would that have conflict? IIS runs on 80. I don't think I've anything running on 8080.
localhost_admin_log has the following everytime I try to see admin page in my web browser:--------------------------------------------------------------
2005-05-05 10:06:06 ApplicationDispatcher[admin] Servlet.service() for servlet admin.login_jsp threw exception
javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE
at org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils.java:1233)
at org.apache.struts.taglib.TagUtils.message(TagUtils.java:1082)
at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:226)
at admin.login_jsp._jspx_meth_bean_message_0(login_jsp.java:131)
at admin.login_jsp._jspService(login_jsp.java:78)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:696)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:220)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
The above also appears in the Tomcat cmd prompt window if I use startup in the cmd window.
The stdout and stderr logs has nothing.
The jakarta_service log has the following:-----------------------------------------------------------
[2005-05-05 10:03:46] [info] Service Tomcat5 name Apache Tomcat
[2005-05-05 10:03:46] [420 service.c] [error] The specified service already exists.
[2005-05-05 10:03:46] [538 prunsrv.c] [error] Failed installing Tomcat5 service
[2005-05-05 10:03:47] [info] Procrun finished.
[2005-05-05 10:04:48] [info] Updating service...
[2005-05-05 10:04:48] [info] Service Tomcat5 updated
[2005-05-05 10:04:48] [info] Update service finished.
[2005-05-05 10:04:48] [info] Procrun finished.
[2005-05-05 10:04:49] [info] Updating service...
[2005-05-05 10:04:49] [info] Service Tomcat5 updated
[2005-05-05 10:04:49] [info] Update service finished.
[2005-05-05 10:04:49] [info] Procrun finished.
Thanks a lot for your advice and help!!! -
How to run servlet,jsp in eclipseand to start tomcat in eclipse
hi
i want to know how to run servlet and jsp in eclipse 3.0
and to start tomcat server in same.
please reply me the steps involved indetail.
regards
saravanakumarFind Lomboz J2EE plugin and a tutorial of how to use it :)
-
Hi,
How can I start Tomcat as a service in control Panel. I have windows XP Home . The only purpose to start the Tomcat as a service is to create file "catlina.out" log file for my application. Is there any other way to have the log of my application. .
ThanksHere is how to create a web application log in tomcat
http://localhost:8080/tomcat-docs/config/logger.html -
Problem to start tomcat in Business Objects Edge 3.1
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] [409 javajni.c] [error] Failed CreateJavaVM
[06/05/2011 10:22:37] [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] [prunsrv.c 1179] [error] ServiceStart returned 2
[06/05/2011 10:28:42] [409 javajni.c] [error] Failed CreateJavaVM
[06/05/2011 10:28:42] [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] [prunsrv.c 1179] [error] ServiceStart returned 2
[06/05/2011 10:30:40] [409 javajni.c] [error] Failed CreateJavaVM
[06/05/2011 10:30:40] [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] [prunsrv.c 1179] [error] ServiceStart returned 2
[06/05/2011 13:43:16] [409 javajni.c] [error] Failed CreateJavaVM
[06/05/2011 13:43:16] [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] [prunsrv.c 1179] [error] ServiceStart returned 2
[06/05/2011 13:43:20] [409 javajni.c] [error] Failed CreateJavaVM
[06/05/2011 13:43:20] [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] [prunsrv.c 1179] [error] ServiceStart returned 2
[06/05/2011 13:53:58] [409 javajni.c] [error] Failed CreateJavaVM
[06/05/2011 13:53:58] [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] [prunsrv.c 1179] [error] ServiceStart returned 2
[06/05/2011 14:00:16] [409 javajni.c] [error] Failed CreateJavaVM
[06/05/2011 14:00:16] [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] [prunsrv.c 1179] [error] ServiceStart returned 2
[06/05/2011 14:00:45] [409 javajni.c] [error] Failed CreateJavaVM
[06/05/2011 14:00:45] [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] [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. -
How to start tomcat in eclipse
Hello,
I have install tomcat on Linux in /usr/tomcat
and i can start ant stop tomcat as root without prolem
I have install eclipse in /home/MyUser/eclipse
and I set the mode for the tomcat directory chmod 777 tomcat
and install the plugIn for tomcat .in eclipse I create a Tomcat Project and try to start tomcat
but I becom always an Exception
Error initializing endpoint
java.net.BindException: Address already in use:8080
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:297)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:142)
at org.apache.catalina.connector.Connector.initialize(Connector.java:928)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:764)
at org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at org.apache.catalina.startup.Catalina.load(Catalina.java:509)
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:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408)
what is to change to start tomcat from eclipse ???
thanksi think the problem here is not your configuration so much as you already have a tomcat instance running. kill the first instance of tomcat and THEN try running from eclipse
that said, if you truly want 2 instances of tomcat running, then i guess you'll have to change the port/config -
Tomcat startup error: can't start server
Hi!
I got Jbuilder 8, it contains Tomcat 3.1, Tomcat 4.0, Tomcat 4.1 servers.
When I develop in the IDE, the JBuilder 8 can start any of these servers.
But if I want to use Tomcat 4.1 alone (independent from JBuilder), it doesn't works.
I followed the steps written in Tomcat installation instructions (setting path, environment variables), but when I try to run startup.bat it's opened a new window for a minute (I think with error message), and close it too fast to read the message.
The first DOS window shows:
USING Java_home.......
USING Catalina_home......
etc.
and nothing else, but Tomcat doesn't run.
I can start Tomcat 3.1 this way, but not the other two (4.0, 4.1)
Anyone can help?
thank you
sorry for the bad English, I hope you can understand.I am also getting the same error while starting tomcat. The catalina command window disappears immediately.
tried running the catalina run command....it gives
java.lang.UnsupportedClassVersionError: org/apache/catalina/startup/Bootstrap (U
nsupported 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 java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
Exception in thread "main"
i am using jdk131 as the java home directory and tomcat 5.5.
Are u able to start tomcat? -
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. -
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.
Maybe you are looking for
-
Automatic shutdown of SAP Instance after installation of Dialog Instance
Hi all, We've upgraded our system from SAP4.6C to ECC6.0 running on Win2003 64 bits Oracle 10g. After upgrade, we installed Dialog instance (this dialog instance is running outside MS cluster) and it is running on Microsoft cluster. When we try to s
-
ABAP/4 Keywords for all SAP R/3 Versions
Hello Experts, Is there any DB Table available in Data Dictionary where all these ABAP/4 Keywords available; if yes do please let me know if not available then do please provide me with all ABAP/4 Keywords of all versions of SAP R/3 if possible
-
I found a fix for problems installing Air on Mac Lion OS
I had Air installed which I needed to run this porgram You Select it which needs adobe flash and Air to run.. The other day the program would not open up. I tried a number of things could not get it to work. Deleted the program, and tried installing
-
Exists Asynchronous mode in execution of package from Forms?
Hi people Exist asynchronous mode in execution of package from Forms 6i? , the database is Oracle9i. Thanks regards Hector Ulloa Ligarius
-
Adding Filetypes vis plists?
Is there any entries that can be made to iphoto related plists that would allow us to add more file type support in iphoto? With perian quicktime supports MKV video and with a minor change to the quicktime player.all Info.plist for MKV we also get Qu