Start tomcat from eclipse

hello,
I amusing tomcat 5.5.9 with suse (linux), and I am using jdk 1.6.0
The CATALINA_HOME, JAVA_HOME are defined,
When I try to startup the tomcat as root user every thing is ok, it
start (with port 8080)
I have create a new user with permissions to logs and work
directories, and try to startup the tomcat from command
like that su - tomcatuser -c /user/tomcathome/bin/startup.sh
every thing is ok
but wenn I try to start it from eclipse I get this message:
In Catalina.out
Apr 17, 2006 6:03:26 PM org.apache.catalina.startup.Catalina load
WARNING: Can't load server.xml
Apr 1, 2006 6:03:26 PM org.apache.catalina.startup.Catalina load
WARNING: Can't load server.xml
Apr 1, 2006 6:03:26 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
        at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.NullPointerException
        at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
Can any one help,
Thanks

hello,
I amusing tomcat 5.5.9 with suse (linux), and I am using jdk 1.6.0
The CATALINA_HOME, JAVA_HOME are defined,
When I try to startup the tomcat as root user every thing is ok, it
start (with port 8080)
I have create a new user with permissions to logs and work
directories, and try to startup the tomcat from command
like that su - tomcatuser -c /user/tomcathome/bin/startup.sh
every thing is ok
but wenn I try to start it from eclipse I get this message:
In Catalina.out
Apr 17, 2006 6:03:26 PM org.apache.catalina.startup.Catalina load
WARNING: Can't load server.xml
Apr 1, 2006 6:03:26 PM org.apache.catalina.startup.Catalina load
WARNING: Can't load server.xml
Apr 1, 2006 6:03:26 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
        at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.NullPointerException
        at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
Can any one help,
Thanks

Similar Messages

  • 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 ???
    thanks

    i 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

  • Can't Start oc4j from Eclipse (OracleDataSource problem)

    I 'm migrating from oc4j 10.1.2 to 10.1.3
    I've installed 10.1.3 standalone and I can start application from DOS prompt. This work fine.
    When I try to start applicacion from Eclipse, I receive the follow message
    2006-11-01 11:21:40.689 NOTIFICATION JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    2006-11-01 11:21:40.705 NOTIFICATION JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    2006-11-01 11:21:40.783 NOTIFICATION JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/jobstore].
    2006-11-01 11:21:40.892 NOTIFICATION JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/events].
    2006-11-01 11:21:40.939 NOTIFICATION JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/notifications].
    06/11/01 11:21:43 java.lang.NoSuchMethodError: oracle.jdbc.driver.OracleDriver.getSystemPropertyFastConnectionFailover(Ljava/lang/String;)Ljava/lang/String;
    06/11/01 11:21:43      at oracle.jdbc.pool.OracleDataSource.<clinit>(OracleDataSource.java:97)
    06/11/01 11:21:43      at java.lang.Class.forName0(Native Method)
    06/11/01 11:21:43      at java.lang.Class.forName(Class.java:219)
    06/11/01 11:21:43      at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:244)
    06/11/01 11:21:43      at oracle.oc4j.sql.DataSourceConnectionPoolImpl.<init>(DataSourceConnectionPoolImpl.java:107)
    06/11/01 11:21:43      at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:99)
    06/11/01 11:21:43      at oracle.oc4j.sql.DataSourceUtils.getDataSourceConnectionPool(DataSourceUtils.java:322)
    06/11/01 11:21:43      at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:1997)
    06/11/01 11:21:43      at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1961)
    06/11/01 11:21:43      at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1220)
    06/11/01 11:21:43      at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:356)
    06/11/01 11:21:43      at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:208)
    06/11/01 11:21:43      at com.evermind.server.Application.setConfig(Application.java:391)
    06/11/01 11:21:43      at com.evermind.server.Application.setConfig(Application.java:308)
    06/11/01 11:21:43      at com.evermind.server.ApplicationServer.initializeDefaultApplication(ApplicationServer.java:1489)
    06/11/01 11:21:43      at com.evermind.server.ApplicationServer.initializeAutoDeployedApplications(ApplicationServer.java:1470)
    06/11/01 11:21:43      at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:922)
    06/11/01 11:21:43      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
    06/11/01 11:21:43      at java.lang.Thread.run(Thread.java:534)
    Any idea ?
    Really thanks

    this is my datasource.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <data-sources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/data-sources-10_1.xsd" schema-major-version="10" schema-minor-version="1">
    <managed-data-source connection-pool-name="Example Connection Pool" jndi-name="jdbc/OracleDS" name="OracleDS"/>
    <managed-data-source connection-pool-name="etgs" jndi-name="jdbc/etgs" name="etgs"/>
    <connection-pool name="Example Connection Pool">
    <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource" user="scott" password="tiger" url="jdbc:oracle:thin:@//localhost:1521/oracle.regress.rdbms.dev.us.oracle.com"/>
    </connection-pool>
    <connection-pool name="etgs">
    <connection-factory
              factory-class="oracle.jdbc.pool.OracleDataSource"
              user="etgs"
              password="etgs"
              url="jdbc:oracle:thin:@70.101.0.200:1521:DEV"/>
              <property name="fastConnectionFailoverEnabled" value="true"/>
    </connection-pool>
    </data-sources>
    -pfrancav-

  • Starting tomcat from a shell script

    Hello-
    I want to start Tomcat from a shell script that is called by an application on a web page. Problem is, the app that calls the script runs as user nobody.
    I'm a permissions noob, so any suggestions as to how I could get this working are appreciated.
    Will

    Tomcat should be running if you intend to use it as a service.
    You don't want people to be able to start (or.. stop !) services on your server from a web page... That would present a gaping security hole.

  • How do I start "rmiregistry" from Eclipse IDE?

    Could somebody tell me how I can start rmiregistry from the Eclipse IDE which is running j2se 5.0 ?
    Also if I try starting from the command prompt I get
    Windows cannot find rmiregistry
    with
    C:\>java -version
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

    You need a plugin to start/stop your rmi registry. Search for plugins in google.
    You need to set the classpath for starting the rmi registry from console.

  • 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
    saravanakumar

    Find Lomboz J2EE plugin and a tutorial of how to use it :)

  • Unable to start tomcat from Windows 98

    I just downloaded and installed tomcat on my Windows 98 machine. But when I click on start Tomcat, a DOS window opens and closes imeediately - the server does not seem to have started. I tried pasting this in a new DOS Window:
    D:\jdk1.2.2\bin\java.exe -jar -Duser.dir="D:\Tomcat" "D:\Tomcat\bin\bootstrap.jar" start
    But then I get the following error:
    Bootstrap: Class loader creation threw exception
    java.lang.IllegalMonitorStateException: current thread not owner
    I have jdk 1.2.2 installed on my machine and JAVA_HOME pointing to this. Can anyone tell me what the problem is?
    Thanks in Advance
    Jay

    It's not TOMCAT_HOME, it's CATALINA_HOME
    Add
    set CATALINA_HOME=full_path_to_tomcat_installation
    to AUTOEXEC.bat, or type it at command line before typing startup in TOMCAT_HOME/bin (however if you do this you will lose this variable when you close the command line). Putting it in autoexec is best solution. Reboot.
    Probably a good idea to add
    set JAVA_HOME=full_path_to_java_installation
    in autoexec.bat as well.
    hth
    steve

  • Running Tomcat from Eclipse

    Hi All,
    This is the first time i am trying to run a web project through Eclipse.I have configured Tomcat for that.I have setup a project where in my servlets are created under src and the classes are compiled under the build/classes folder.
    I have kept the fork option true in the Server web.xml.
    My jsps are running.But when i am trying to send a request to the servlet.The mapping from the servlet is not recognized.Definitely case of a classpath.
    I am not sure what classpath doest it take.Its not taking from the build/classes folder i have tried creating web-inf/classes folder and kept the class file there.But it did not work.
    Please help

    i need not deploy the files in tomcat as the files are being picked up from my eclipse
    workspace and the necessary files are in the eclipse build path.What i think is the VM is looking for the
    classes in the Tomcat folder and its not finding the classes under tomcat.

  • Tomcat and  Eclipse

    Hallo
    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)
    [/cod]
    what is to change to start tomcat from eclipse ???
    thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    sorry the complete qustion
    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)
    [/cod]
    what is to change to start tomcat from eclipse ???
    thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Tomcat not starting from Eclipse

    Hi,
    I am trying to start Tomcat from within Eclipse with no luck.
    When I click on the start tomcat button, the cursor changes for a few seconds but nothing happens. Nothing is written in the Eclipse console or the Tomcat log files. When I start tomcat normally , it starts up fine.
    I am using:
    Eclipse 3.0.1
    Sysdeo Eclipse Tomcat plugin 3.0.0
    JDK 1.4.2
    Tomcat 5.0
    Any Ideas?
    Regards

    Hi guyz,
    I am a new user of Eclipse.
    I have Eclipse 3.0.2.
    I downloaded Sysdeo 3.1.0 beta and extracted it in the plugins directory. I tried to activate it by clicking on Window -> Customize perspective.
    But I cannot activate it. Am I using wrong version of Sysdeo...?
    Also, can anybody tell me whether the folder org.eclipse.tomcat_4.1.30 is a Tomcat plugin ...?
    Please help...........
    Thanks,
    Rahul

  • 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

  • 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.

  • 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.

  • Error when starting weblogic from forthnet eclipse plugin?

    Hi,
    I'm getting an error when trying to start my weblogic server from the forthnet eclipse plugin. (However, it works to start the server from a command prompt on the machine it is running on, and also, it works to stop the server from eclipse)
    Server and eclipse is running on Windows.
    The error reported is:
    <2004-sep-01 kl 16:13 CEST> <Warning> <EmbeddedLDAP> <BEA-171520> <Could not obtain an exclusive lock for directory: .\decisionsite81\ldap\ldapfiles. Waiting for 10 seconds and then retrying in case existing WebLogic Server is still shutting down.>
    <2004-sep-01 kl 16:13 CEST> <Warning> <EmbeddedLDAP> <BEA-171520> <Could not obtain an exclusive lock for directory: .\decisionsite81\ldap\ldapfiles. Waiting for 10 seconds and then retrying in case existing WebLogic Server is still shutting down.>
    <2004-sep-01 kl 16:13 CEST> <Warning> <EmbeddedLDAP> <BEA-171520> <Could not obtain an exclusive lock for directory: .\decisionsite81\ldap\ldapfiles. Waiting for 10 seconds and then retrying in case existing WebLogic Server is still shutting down.>
    <2004-sep-01 kl 16:13 CEST> <Warning> <EmbeddedLDAP> <BEA-171520> <Could not obtain an exclusive lock for directory: .\decisionsite81\ldap\ldapfiles. Waiting for 10 seconds and then retrying in case existing WebLogic Server is still shutting down.>
    <2004-sep-01 kl 16:13 CEST> <Error> <EmbeddedLDAP> <BEA-171519> <Could not obtain an exclusive lock to the embedded LDAP data files directory: .\decisionsite81\ldap\ldapfiles because another WebLogic Server is already using this directory. Ensure that the first WebLogic Server is completely shutdown and restart the server.>
    <2004-sep-01 kl 16:13 CEST> <Critical> <WebLogicServer> <BEA-000364> <Server failed during initialization. Exception:weblogic.server.ServiceFailureException: Could not obtain an exclusive lock to the embedded LDAP data files directory: .\decisionsite81\ldap\ldapfiles because another WebLogic Server is already using this directory. Ensure that the first WebLogic Server is completely shutdown and restart the server.
    weblogic.server.ServiceFailureException: Could not obtain an exclusive lock to the embedded LDAP data files directory: .\decisionsite81\ldap\ldapfiles because another WebLogic Server is already using this directory. Ensure that the first WebLogic Server is completely shutdown and restart the server.
         at weblogic.ldap.EmbeddedLDAP.ensureExclusiveAccess(EmbeddedLDAP.java:959)
         at weblogic.ldap.EmbeddedLDAP.initialize(EmbeddedLDAP.java:221)
         at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:814)
         at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:664)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:342)
         at weblogic.Server.main(Server.java:32)
    >
    <2004-sep-01 kl 16:13 CEST> <Emergency> <WebLogicServer> <BEA-000342> <Unable to initialize the server: weblogic.server.ServiceFailureException: Could not obtain an exclusive lock to the embedded LDAP data files directory: .\decisionsite81\ldap\ldapfiles because another WebLogic Server is already using this directory. Ensure that the first WebLogic Server is completely shutdown and restart the server.>
    I've tried removing the "EmbeddedLDAP.lok" file, but without luck.

    Which version of your eclipse? I am using eclipse 3.0 and I am able to start weblogic 8.1 from eclipse.
    I did the following steps:
    1.create a new domain through weblogic's configuration wizard --> basic weblogic server domain --> Express --> proive the user name and password --> development mode, and sun sdk (or other jdk) --> your new domain name
    2. configure weblogic setting in eclipse: preferences --> weblogic --> 8.1, C:\bea\weblogic81, your newly created domain name --> C:\bea\user_projects\domains (domain directory) --> myserver --> admin (or your user name) --> password --> localhost --> 7001
    after that, you should be able to click on "start weblogic server" button from toolbar.
    Hope my two cents solve your problem.

  • Error stopping tomcat 5.5 from eclipse?

    Hi,
    I installed Tomcat 5.5 in my WinXP Pro and i am using eclipse wtp 3.1 to create JSP pages.
    I created a server in eclipse and the tomcat start normally by eclipse, but when i stop the tomcat I get the follow message in console:
    8690 [main] INFO http11.Http11BaseProtocol - Pausing Coyote HTTP/1.1 on http-8080
    9706 [main] INFO core.StandardService - Stopping service Catalina
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Caused by: java.lang.NoSuchMethodError: org.apache.commons.logging.LogFactory.release(Ljava/lang/ClassLoader;)V
         at org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1634)
         at org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1489)
         at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:706)
         at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4360)
         at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892)
         at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1159)
         at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1131)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1053)
         at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1065)
         at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447)
         at org.apache.catalina.core.StandardService.stop(StandardService.java:512)
         at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
         at org.apache.catalina.startup.Catalina.stop(Catalina.java:601)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
         ... 6 more
    I don't start Tomcat as a service.
    Anyone can help me?
    Thanks a lot...

    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.

Maybe you are looking for

  • Does OAM cache users and how do you configure a flush?

    I'm using OAM 10g with 11g OVD and 11g OID. OAM is configured to use OVD as it's user store. I've created a successful LDAP authorization rule, but it takes several hours for the authorization rule to detect a change to the ldap value. So a change to

  • Custom Master page set as a default on feature activation in Moss

    I've a site in moss. I have created feature in my solution and on feature activation it will set the custom master page CustomMaster.master as a default master page and on feature deactivation it will set as a default master page default.master. The

  • Allow only one set of parameter values for all worksheets

    I would like to " Allow only one set of parameter values for all worksheets ", but prompt before executing the worksheet. This function is a great time saver, but the users on occasion would like to change at the least one of the parameters. Is this

  • Google Maps web app not working??

    I have not (for obvious reasons) bothered much with web apps since the original iPhone but given the current (and in my view, somewhat overblown) furore over Apple Maps, I thought I would put try out the Google Maps web app on my recently purchase iP

  • New 8core mac pro, photoshop CS5 running slow

    Hi all I recently decided to switch from PC to MAC. I used to work on a quad core Dell XPS 710 which was very good but decided that an 8core mac would improve the performance of my work flow. My new mac is a 2x2.26 quad core xeon with 8 gigs of ram a