Trouble running tomcat

Hi,
I have, up until now, been running tomcat 5.xx without any problems, however, when I tried to run it recently, my system returned an error:
" The system cannot find the file -Djava .endorsed.dirs=."
I was hoping someone out there might know what the problem may be.
Thanks

Did you modify any of your startup scripts in the bin directory or did you recently try to change any environment variables related to Tomcat such as JAVA_OPTS, CATALINA_OPTS and several others?
This really sounds like your batch or shell file (you don't mention the O/S) isn't working the way you want. This could be because of environment variables or it could be that the script has been modified.

Similar Messages

  • Trouble with running tomcat/eclipse

    I am using eclipse/tomcat. Every time I run tomcat inside eclipse it shows me that war deployed but it doesn't. I have to manually copy it under webapp. I have appropriate login

    are u using and IDE stuff???
    eclipse is inteligent enough to do the work for you.

  • Trouble running jobs with scheduler

    Hello,
    We have trouble running jobs with scheduler since we upgrade DS4 from 14.0.1.142 to 14.0.2.322. It works fine for several hours and then randomly jobs are not started. There is no error in the log.  In AL_RWJobLauncherLog.txt file,  there are no "RWJL_EXIT called" in that case :
    02_28_2012 09:30:00     CRWJobLauncherApp::InitInstance called.
    +02_28_2012 09:30:03     +
    02_28_2012 09:30:33     *** RWJL_EXIT called.
    02_28_2012 10:00:00     CRWJobLauncherApp::InitInstance called.
    02_28_2012 10:30:00     CRWJobLauncherApp::InitInstance called.
    02_28_2012 11:00:00     CRWJobLauncherApp::InitInstance called.
    02_28_2012 11:30:00     CRWJobLauncherApp::InitInstance called.
    +02_28_2012 11:30:03     +
    02_28_2012 11:30:33     *** RWJL_EXIT called.
    Sever_eventlog file shows that job is not started. Whole server has to be restarted to get it to work again (restarting DI_JOBSERVICE is not enough). Could you help please ?
    Regards
    Annie

    Hi Annie,
    Mmmhhh that doesn't make much sense to me, except if you have problems with the repository:
    1) Your JobServer or JobLauncher has problems executing jobs
    => reads the repository to get job information
    2) Your Management Console (independant from the JobServer - but on same machine) has problems
    => Is connected to the repository to show job status, adapters etc.
    3) The Tomcat which is hosting the Management Console is OK
    => No connection to the repository of DS.
    Do you have any network or database problems? Can you put the database on the same server?
    I could be wrong of course...just the only thing that comes to mind..
    Regards
    Norbert
    P.S:
    What about compressing your repository and/or
    1395641 - Will truncating the AL_HISTORY and AL_STATISTICS Table compromise the referential integrity of the repository?
    There are half a dozen KBAs about these tables..
    Edited by: Norbert Klein on Mar 3, 2012 10:37 AM

  • Running Tomcat from a java program

    I'm writing a program that shall run Tomcat from the program itself. The eacy way would be to just call org.apache.catalina.startup.Bootstrap.main(String[]) in a new thread, but that gives only a little information to the program about the state of the server. Actually I would only know when the server is told to start (just before the main method is called), and when the server had stopped (just after the main method).
    I have browsed the Catalina API documentation and source code for hours, but the only solution I have gotten, writes the standard startup text:
    Starting service Tomcat-Standalone
    Apache Tomcat/4.0.4
    Starting service Tomcat-Apache
    Apache Tomcat/4.0.4If I could get that to work, I would could add a LifecycleListener, and get all the info. I need.
    The essence of the code I use is this:
    CatalinaService cs = new org.apache.catalina.startup.CatalinaService();
    Server s = new StandardServer();
    StandardService stdService = new org.apache.catalina.core.StandardService();
    s.addService(stdService);
    cs.setServer(s);
    cs.process(new String[]{"start"});but the following also produce a simmilar result:
    BootstrapService b = new org.apache.catalina.startup.BootstrapService();
    b.load(new TomcatLoader(),null);
    b.start();A dirty solution would be to copy the code form Bootstrap.main(String[]) and add a few lines, but I really dosn't like that. It would be a nightmare to maintain, primiarry because I would loose the functionallity of Catalinas class loader (where a lof of classes is loaded).
    Does anybody know how I can get Tomcat to run, so I still get my info. and don't use any dirty solutions?

    Check out the main method in the source code of class org.apache.catalina.startup.Embedded
    It should help you.
    Also check out this article
    http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html

  • Problems running tomcat on win XP

    Hi!
    I've just downloaded and installed the JWSDP on Windows XP Professional, but when I try to use Tomcat it starts but then terminates instantly. Can anyone help me with this?
    thanks, Ylva

    Are you sure its terminating? You will not get an open window when you run tomcat, just a minimised toolbar window.
    If it is definitely terminating, have a look at the log file to see what error (if any) is produced - JWSDP_HOME\logs\catalina.out
    Also make sure that you are not running any other application which might be using port 8080.
    //Daniel.

  • I am having trouble running videos through Safari but not Google Chrome.  All I get is a black screen.  I have the latest adobe flash update and have enabled plug ins.  any suggestions?

    I am having trouble running videos through Safari but not Google Chrome.  All I get is a black screen.  I have the latest adobe flash update and have enabled plug ins.  any suggestions?

    Open System Preferences > Flash Player then select the Advanced tab.
    Click Delete All under Browsing Data and Settings
    Not empty the Safari cache.
    From your Safari menu bar click Safari > Preferences then select the Advanced tab.
    Select:  Show Develop menu in menu bar
    Now click Develop from the menu bar. From the drop down menu click Empty Caches.
    Now try a video.

  • Trouble running DurableSubscriberExample

    Hi
    I am having trouble running the "DurableSubscriberExample.java" that is in Appendix A of the "Java Message Tutorial" (http://java.sun.com/products/jms/tutorial/1_3_1-fcs/doc/client_samples.html#1002876)
    These are the steps I followed:
    1. I compiled the classes - "DurableSubscriberExample.java" and "SampleUtilities.java".
    2. I stared the j2ee server.
    3. I created a topic called jms/Topic as follows:
    j2eeadmin -addJmsDestination jms/Topic topic
    4. I created a connection factory with a Client ID by copy-pasting the following from the tutorial (section 8.2.3) as instructed:
    j2eeadmin -addJmsFactory jms/DurableTopicCF topic -props clientID=MyID
    5. Then I specified the connection factory name and the topic name on the command line as instructed:
    java -Djms.properties=C:\j2sdkee1.3.1\config\jms_client.properties DurableSubscriberExample DurableTopicCF jms/Topic
    This is the error I get:
    JNDI API lookup failed: javax.naming.NameNotFoundException: DurableTopicCF not found
    Any idea what's wrong?

    I installed J2sdkee1.3.1 to Win98, I can startup the J2ee server. Once I typed j2eeadmin -addJmsDestination MyQueue queue, I got the following message :
    C:\j2sdkee1.3.1\bin>j2eeadmin -addJMSDestination jms/MyQueue queue
    Usage:
    -addJdbcDriver <class name>
    -addJdbcDatasource <jndi name> <url>
    -addJdbcXADatasource <jndi name> <class name> [<xa user name> <xa password>] [-
    rops (<name>=<value>)+]
    -addJmsDestination <jndi name> (queue|topic)
    -addJmsFactory <jndi name> (queue|topic) [-props (<name>=<value>)+]
    -addConnectorFactory <jndi name> [<app name>:]<rar filename> [<xa user name> <x
    password>] [-props (<name>=<value>)+]
    -list<resource type>
    -remove<resource type> <name>
    -removeAll<resource type>
    my j2eeadmin.bat as follow
    @echo off
    REM
    REM Copyright 2002 Sun Microsystems, Inc. All rights reserved.
    REM SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
    REM
    rem
    rem Set JAVA_HOME and J2EE_HOME before running this script.
    rem
    if not "%J2EE_HOME%" == "" goto CONT0
    echo ERROR: Set J2EE_HOME before running this script.
    goto END
    :CONT0
    if EXIST "%J2EE_HOME%\bin\setenv.bat" goto CONT1
    echo ERROR: Set J2EE_HOME to the path of a valid j2sdkee.
    goto END
    :CONT1
    call %J2EE_HOME%\bin\setenv.bat
    if not "%JAVA_HOME%" == "" goto CONT2
    echo ERROR: Set JAVA_HOME before running this script.
    goto END
    :CONT2
    if EXIST "%JAVA_HOME%\bin\java.exe" goto CONT3
    echo ERROR: Set JAVA_HOME to the path of a valid jdk.
    goto END
    :CONT3
    rem @echo on
    %JAVA_HOME%\bin\java -Xmx128m -D%SSL_OPTION1%=%SSL_OPTION2% -D%JAAS_OPTION1%=%JAAS_OPTION2% -Dcom.sun.enterprise.home=%J2EE_HOME% -classpath %CPATH% com.sun.enterprise.tools.admin.AdminTool %*
    :END
    I can start up the server. I can use the deploytool, so that my setenv may be correctly.
    Any expert can help me. thank a lottttttttttt

  • Java.lang.UnsatisfiedLinkError: running tomcat on java headless?

    Dear all,
    I'm using the iText library to generate pdfs from a database on the fly. Whenever I use some of it's features that require simple things like java.awt.Color, I get an java.lang.UnsatisfiedLinkError as shown:
    java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-1.5.0-sun-1.5.0.18/jre/lib/amd64/libawt.so: libmlib_image.so: cannot open shared object file: No such file or directory
            at java.lang.ClassLoader$NativeLibrary.load(Native Method)
            at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
            at java.lang.Runtime.loadLibrary0(Runtime.java:822)
            at java.lang.System.loadLibrary(System.java:993)
            at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.awt.Toolkit.loadLibraries(Toolkit.java:1509)
            at java.awt.Toolkit.<clinit>(Toolkit.java:1530)
            at java.awt.Color.<clinit>(Color.java:250)
            at tablereport.processRequest(tablereport.java:55)
            at tablereport.doGet(tablereport.java:130)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
            at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
            at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
            at java.lang.Thread.run(Thread.java:595)After some research and verifying that libawt.so physically exists I read somewhere that whenever java is installed no a linux box without x (in my case it's a remote vps) java omits certain graphics related libraries like AWT (naturally).
    I also read that you can run java headless to avoid the dependencies to X. Now is there a way to run tomcat (or add variables to tomcat's startup.sh) to avoid having these dependencies?
    Thanks for your help,
    William

    [Googling the exception|http://www.google.com/search?q=java.lang.UnsatisfiedLinkError+at+java.awt.Color.%3Cclinit%3E%28Color.java%3A250%29+tomcat] learns me it's a bug in the mentioned Tomcat + JDK combo.
    Upgrade to the latest if possible.

  • Re: Using already running Tomcat server for development.

    Hi Nick,
    Yes, you can use existing Tomcat Server for debugging app developed with
    NitroX. And you can refer to Help > Help Contents > NitroX User Guide >
    NitroX Tour > Running and debugging the application.
    We do support Tomcat 4.0.x to Tomcat 5.0.x. If you need any further
    assistance please get back to us.
    Thanks
    M7 Support
    "Nick Mulder" <[email protected]> wrote in message
    news:41d9f379$[email protected]..
    Sorry if this has been covered anywhere else.Just wondering if you can use an existing tomcat server for debugging
    webapps being developed in NitroX. I have a non dedicated server a
    development server. Up until purchasing NitroX I have been using ant build
    files to compile and re-deploy my apps into the running tomcat server.
    Just wondering if I can do something similar thru NitroX and Eclipse.
    Forgive me if I am missing something obvious, but I am new to eclipse.
    Thanks,
    Nick Mulder

    Take a look at these links: http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/
    http://www.keyboardsamurais.de/2004/01/15/tomcat_tutorial_helloworld_for_complete_fools_-_english/
    http://www-128.ibm.com/developerworks/opensource/library/os-ectom/?ca=dgr-lnxw16EclipsTomcat
    I've found going through tutorials is a proven, quick way of getting up to speed with new tools and configurations.
    HTH,
    James

  • Do I need to redeploy and run tomcat every time I�m changing something?

    Guys,
    I�m using MyEclipse as the IDE to develop struts application. I am a newbie to this topic (but doing just fine)
    Anyway, I do this:
    I write my code, deploy it, run Tomcat and than I click the site to see the results.
    sometime I am changing the words or the code and than want to see the changes, for this, and this is the point I think I do wrong, I STOP Tomcat, Redeploy, START tomcat and refer back to the site (imagine the how long it takes)
    Is there a better way only to redeploy so everything will take effect immediately?
    Why when I change something in the AppliatinResources it doesn't kick in?
    Thanks

    I use MyEclipse and Tomcat and changes are reflected within a few seconds after making changes without redeploying.
    I have noticed that when adding servlets and modifying servlets, it takes a few seconds for changes to show while the context reloads.

  • Using already running Tomcat server for development.

    Sorry if this has been covered anywhere else.
    Just wondering if you can use an existing tomcat server for debugging
    webapps being developed in NitroX. I have a non dedicated server a
    development server. Up until purchasing NitroX I have been using ant build
    files to compile and re-deploy my apps into the running tomcat server. Just
    wondering if I can do something similar thru NitroX and Eclipse. Forgive me
    if I am missing something obvious, but I am new to eclipse.
    Thanks,
    Nick Mulder

    Take a look at these links: http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/
    http://www.keyboardsamurais.de/2004/01/15/tomcat_tutorial_helloworld_for_complete_fools_-_english/
    http://www-128.ibm.com/developerworks/opensource/library/os-ectom/?ca=dgr-lnxw16EclipsTomcat
    I've found going through tutorials is a proven, quick way of getting up to speed with new tools and configurations.
    HTH,
    James

  • Eroor in eclipse when i have run TOMCAT in debuge mode web service debuging

    hello all,
    i have a serious problem with debug my web service. I set local variable in eclipse (-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000). And now if i run TOMCAT in normal mode all worked fine and i run remote java application fine, but if i run TOMCAT in debug mode, eclipse in console return error:
    "Error occurred during initialization of VM
    agent library failed to init: jdwp
    ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options."
    If anyone have this problem please tell me how to resolved it.
    Thank for help.

    Eclipse is kind of a competing product so this is not the best place to ask the question. With that most will be nice enough to lend a hand. I suggest ensuring that all other instances of tomcat are stopped then try again. In the Debug perspective ensure there are no servers running with the same name as the one you are attempting to use. If all else fails ensure there are no tomcat process running if they are kill them. Finally, if you cant get it to work reboot. If still no good the Eclipse might be a better place to go.

  • Running Tomcat as a service

    I have two questions about running Tomcat as a service.
    First, when I try to install and start tomcat 3.3.2 with the java sdk 1.4.0 using jk_nt_service, the service won't start. When I execute the following command, jk_nt_service -S Tomcat-3.3-2-Dev, I get a response of Tomcat-3.3.2-Dev failed to start. When I execute the following command, net start Tomcat-3.3.2-Dev, I get a system error 1067 response. Does anyone know how to get around this error?
    Second, if we try to run Tomcat 4.1.27 as a service, we get very slow response compared to running startup.bat in the bin directory. Does anyone know why this is and what could be done to improve the performance?
    Jim Field

    I don't know the answer to the first question.
    Regarding the second one: when you say "slow response", do you mean for every request you send to the service compared to sending the same request to Tomcat started with startup.bat, or are you referring to just starting the service?
    Have you measured the response time for a number of requests to both the service and script-started Tomcat, or is this a subjective judgement? MOD

  • JAVA_HOME running tomcat

    hi!
    i recently downloaded the Java Web Services Developer pack. the installation went fine, howeve when i try to run tomcat it gives me
    Bad command or file name
    The JAVA_HOME environment variable is not defined
    This environment variable is needed to run this program
    i have in my autoexec
    SET PATH=c:\"program files"\j2sdk\bin;c:\windows;c:\windows\command
    SET JAVA_HOME=c:\"program files"\j2sdk
    on a friend's recommendation i have also tried
    SET JAVA_HOME=c:\"program files"\j2sdk\jre
    could someone help please.
    thanks

    my sdk is in c:\progra~1\j2sdk
    i have tried
    SET JAVA_HOME=c:\PROGRA~1\j2sdk
    SET PATH=%JAVA_HOME%;c:\windows;c:\windows\command
    when i then double click startup.bat, this gives me
    Bad command or file name
    Out of environment space
    Out of environment space
    The JWSDP_HOME environment variable is not defined
    This environment variable is needed to run this program
    File not found
    to see if JWSDP_HOME variable is defined
    i then did the right-click properties thing and changed memory to 2048 and then run the shortcut it placed
    this gave me
    Bad command or file name
    Bad command or file name
    i then did,
    SET JAVA_HOME=c:\PROGRA~1\j2sdk
    SET JWSDP_HOME=c:\PROGRA~1\jwsdp
    SET PATH=%JWSDP_HOME%;%JAVA_HOME%;c:\windows;c:\windows\command
    this gave me,
    double clicking startup.bat
    Bad command or file name
    Out of environment space
    Out of environment space
    The JWSDP_HOME environment variable is not defined
    This environment variable is needed to run this program
    File not found
    to see if JWSDP_HOME variable is defined
    double clicking startup.pif
    Bad command or file name
    Bad command or file name
    and excecuting startup.bat from commandline,
    Bad command or file name
    Out of environment space
    Error: com.sun.jwsdp.launcher.JWSDPLaunchFilter filter class encountered a probl
    em
    and executing startup.pif from command line
    Bad command or file name
    i'm at my wits end now. could some one please help. my sdk and jwsdp are installed in the right directories.
    thanks

  • Running Tomcat 4.0.1 on RH7.0

    I try to run Tomcat 4.0.1 on RH7.0,
    [root@backup bin]# ./startup.sh
    but I get this error,
    Guessing CATALINA_HOME from catalina.sh to ./..
    Setting CATALINA_HOME to ./..
    You must set JAVA_HOME to point at your Java Development Kit installation
    then I set JAVA_HOME, with this command "set JAVA_HOME=/jdk1.3"
    and I still get the same error....
    Any idea what is happening?
    /snricek

    I've been execute the command to set JAVA_HOME & CATALINA_HOME.
    This is the comment I've get, after I execute "startup.sh" :
    Using CLASSPATH: /jakarta-tomcat-4.0.1/bin/bootstrap.jar:/jdk1.3/lib/tools.jar
    Using CATALINA_BASE: /jakarta-tomcat-4.0.1
    Using CATALINA_HOME: /jakarta-tomcat-4.0.1
    Using JAVA_HOME: /jdk1.3
    and I get nothing, when I tried to show an index.html:
    http://myserver:8080/index.html
    should I configure "server.xml" file ?

Maybe you are looking for

  • Field value(s) for object S_SERVICE were not entered

    Hi Whenever I try to generate a profile in PFCG I get an error, that is saying; ... field value(s) for object S_SERVICE were not entered Number of values could be different but message text is always the same. The problem is in CRM2007 IDES. It is re

  • Windows 8.1 can not access apps after using Disk Clean-up

    All was working well until I did a Disk Clean-up, now no apps from the Metro Start screen will load I just get a transparent icon holder on the Taskbar. I have tried uninstall the app which was Calendar I was allowed to uninstall but when I tried to

  • Is the program from FiuneDeaalSuoft, and its associated links, causing problems?

    A program from FiuneDeaalSuoft somehow appeared in my Firefox Add-0ns as of 2 days ago (08212014) according to Control Panel-Programs. I don't recognize it, but possibly I mistakenly clicked on an acceptance interface without realizing it. The ad re-

  • Function module to identify users - fowarded work items

    Hi Pls can anyone suggest an appropriate function module to identify the users of the forwarded work items? The onyl input i have is the user name. the scenario is :  UserA had fwd'ed a workitem XYZ to UserB and I need to find programatically all the

  • How to Fecth data from LDB FMF when the report is already using LDB FMB

    Hi , i have a standard program(T. Code - FMB_PT01) that uses logical database FMB. When I run this report it will display Budget value and Budget consumed  value. When the user double click on total amount . Another report RFFMTO10X will be called us