Tomcat question

i've just installed tomcat and am trying to start up and am getting this error
C:\jakarta-tomcat-4.0.3\bin>startup
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program
The system cannot find the batch label specified - end
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:
The system cannot find the file -Djava.endorsed.dirs=.
have I missed a classpath or something?

Hi Folks,
I installed tomcat on my Windows XP Professional. but i couldnot make it work. The Error is
C:\tomcat\bin>startup
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:
The system cannot find the file -Djava.endorsed.dirs=.
I have my java installed at d:/java
Please help me out.
thanks in advance.

Similar Messages

  • Eclipse and Tomcat questions

    Hi everyone,
    Lastnight I setup Eclipse to work with Tomcat, which works very good, but there are something I don't understand.
    1. My files are put in my workspace in (C:\Documents and Settings\...etc)
    How does Tomcat (which is installed in C:\Tomcat) know that it should get the files from my workspace directory?
    Because in the C:\Tomcat directory I can't find any .XML file that refers to my workspace directory.
    2. How I developed my servlets till now, I had some other free editor, I needed to compile my servlets then restart Tomcat and then test it.
    With Eclipse + Tomcat plugin, all I need to do save the servlet and apparently the source code is compiled automatically. All I need to do is refresh the servlet in my browsers (very handy and easy to develop like this). But my question is, does Eclipse compile the servlet automatically after saving? And why doesn't tomcat have to be restarted?
    Just a few questions to understand it a bit better, I'm really happy with this setup as it makes everything a lot easier.
    Regards,
    Steven.

    I believe you will need to become familiar with and install:
    http://www.eclipse.org/webtools/
    HTH
    Darins
    "raul" <[email protected]> wrote in message
    news:b894c367f9750f367a2e8336f8fe93b1$[email protected]..
    > Hi, I downloaded the latest version of eclipse 3.1 and I've installed
    > apache tomcat in mi PC.
    > Eclipse has a plugin : org.eclipse.tomcat_4.1.30.1
    > My problem is that I don't know how to use the tomcat server with eclipse.
    > I readed some tutorials and they say that I have to configure using menu
    > Window > Preferences and then I will see the tomcat option. But that
    > option doesn't appears or I couldn't see it.
    > Another tutorial say that I have to activate a plugin in the following
    > menu location: Window > Customize Perspective > Commands and select the
    > checkbox for tomcat , but that option doesn't appears either.
    > What can I do, I want to use eclipse and tomcat together...
    > Can someone help me with this questions?
    >
    > Thanks so much.
    > Raul Torres
    >
    >
    >

  • XSQL/XSL deployment on Tomcat question

    I have been running my XSQL pages within the default Oracle/Apache/JServ environment. This is where I 'install' my source xsql/xsl files in the htdocs directory of Apache.
    I have now recently upgraded my environment so that it now consists of Tomcat 4.x and Apache.
    My question is, what deployment strategies are available to me? For example, do I have package my xsql/xsl files into a .war package or can I simply move my xsql/xsl source files into a certain directory very similar to how I use to do before.
    Any help greatly appreciated.

    I deployed both on Apache (JSP,XSQL) and I have another PC with Apache as Proxy.
    It works fine. I dont know the performance when many users try to connect.

  • Installing war using custom installer or MSI + tomcat question

    hi all ! well Im planing since I finished my project to create a installer for the users. I must take into count that most of the users will be non experienced, so I was thinking in making a installer that has already build or ask for installation of this programs & their proper configuration (PHP,Mysql,etc), rather than waiting for a customer to do it. That way I would avoid all kind of troubles with unexperienced users.
    So my first question is ... is possible to load the WAR file and make the program run without using tomcats interface?
    Or wich would be the best way to do it?
    Thanks a lot for any feedback.
    Juan Ma

    juanmanuelsanchez wrote:
    So my first question is ... is possible to load the WAR file and make the program run without using tomcats interface?No. You have basically imlemented an application which requires interface X. You basically need a container which can run the application against interface X.
    Or wich would be the best way to do it?Host it somewhere and just give an URL. That's the normal case for webapplications. The way of distributing as you described is only normal for desktop applications.

  • Flash Builder J2EE Tomcat question

    I've been looking around the documentations on how to configure Flash Builder to work with Tomcat using BlazeDS and have gotten different answers from different places. A few places have mentioned to used the LifeCycle Data Service option, while a few others have mentioned using the BlazeDS option. I am running Flash Builder 4 stand-alone with TomCat6 and BlazeDS 4. Any input on this would be a great help. Thanks in advance.

    Hi Chris,
    The Burrito Preview installs to a different directory than your existing FB4 installation, by default, so there should be no conflict there. Also, it accepts the same Serial Number you have for FB4 if you purchased FB4 as an individual product.
    If you purchased FB4 as part of a CS5 Suite, there will be a site available you can use to obtain a Preview SN for Burrito, but you can still use Burrito in Trial mode until that is available.
    -Chris

  • Tomcat Question Please Help

    I have Tomcat working with mysql but I want to be able to set up a path to the directory containing my JSP's so i just type http://mywebsite.com.
    Thank you for any help

    Thanks for the help. One more thing, what if i want to point my domain name to my home server so that people can view it on the web.

  • Tomcat question..... "noarch"

    hi, I am trying to install tomcat on my linux os. Do I need to install all these .rpm files I found on the tomcat website? Also, what does 'noarch' mean in the file name? Thanks!@!
    servletapi4-4.0.4-1jpp.noarch.rpm
    tomcat4-4.0.4-full.2jpp.noarch.rpm
    tomcat4-webapps-4.0.4-full.2jpp.noarch.rpm
    xerces-j1-1.4.4-10jpp.noarch.rpm

    I don't know about the files themselves, but the 'noarch' part is easy - it means the RPM is not architechture-specific. That's the beauty of Java apps -- even the binaries are cross-platform. :)

  • FileWriter and Tomcat question

    I have the following code and it works fine when running standalone. I have to add that entries.xml and my Java file are in the same package.
    String filename = this.getClass().getResource(".").getPath() + "entries.xml";
    FileWriter writer = new FileWriter(filename, false);
    But when I run this inside Tomcat, getResource(".) is returning me my tomcat path instead of where my Java class is located. How can I fix this to work in both places and use relative paths?
    Thanks in advance.

    getResource(".") will return the directory of where the java command was invoked. Tomcat invokes Java, so you get the tomcat directory.
    My choice would be to make the path a configurable item of your application, for example by putting it in a .properties file that the (web) application can load. The best way is to put this .properties file in the classpath of your application, for example in the WEB-INF/classes directory. Then you can load the file like:
    InputStream is = this.getClass().getClassLoader().getResourceAsStream("myprops.properties");When you use getResource() or getResourceAsStream() the JVM will search the classpath for the file, so if you put the file in your WEB-INF/classes directory it can find it.
    Use the Properties class to actually read the properties file to get your storage directory property from it.

  • Tomcat security constraint question

    Hi all,
    we're using the following security constring for securing our servletts. Everything works fine so far.
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Test</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    </security-constraint>
    Now the question: We've implemented some kind of password reminder which allows you to retrieve a new password, this servlett should be accessible by anybody.
    Do we have to list all the url-mappings except the one for the password reminder or is there a special tag to exclude an url-pattern from the wildcard-rule which we haven't yet? Any hints would be appreciated...
    Regards, Florian

    Using: Tomcat 5.5.20 on Windows Server 2003
    Couple Questions:
    1. How do I prevent users from entering a double
    quote in the INPUT field on the server side?use javascript
    Also, is
    it possible to replace the double quote with single
    quote on the server side? If yes, How? I don't want
    to use JavaScript because it can be disabled.yes,
    yourVarString.replaceAll("\"","\'");
    2. Where is the best place to ack Tomcat questions?http://tomcat.apache.org/findhelp.html
    I
    had some question on security-constraint. I have a
    folder that has sercurity-constraint on it, so when
    that folder is accessed tomcat asks for credentials.
    Once user provides proper Username and Password, it
    grants them the access. Now I want to know once the
    access is granted, how come it doesn't display
    index.jsp form that folder, It displays an image. I
    don't understand why?
    Please help....i have encountered that also on tomcat 3 intalled on linux machine.. the account that was being used to start the tomcat is root.. then the resolution was the owner account of the tomcat starts the server and it worked! hope that give you an idea

  • Tomcat issue

    Hi,
    First off want to say I didnt see a place to put a tomcat question so am putting it here for now.
    My tomcat was fine up till a couple days a go. Now I cannot start it up. I get this stacktrace when starting up eclipse now too(I didnt get it before and am sure its related). Any suggestions on where /what to look at? thanks
    java.lang.Exception: The following url was used :http://localhost:8080/manager/reload?path=/ip34
    Check manager app settings (username and password)
    at com.sysdeo.eclipse.tomcat.actions.RestartContextActionDelegate.doActionOn(RestartContextActionDelegate.java:40)
    at com.sysdeo.eclipse.tomcat.actions.TomcatProjectAbstractActionDelegate.run(TomcatProjectAbstractActionDelegate.java:48)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
    at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

    here is the contents of the logs file. I have no idea if it means anything. What I dont get is this was working perfect last week and I didnt do anything out of the ordinary.
    [2008-05-28 08:48:18] [info] Service Tomcat6 name Apache Tomcat
    [2008-05-28 08:48:18] [420 service.c] [error] The specified service already exists.
    [2008-05-28 08:48:18] [590 prunsrv.c] [error] Failed installing Tomcat6 service
    [2008-05-28 08:48:18] [info] Procrun finished.
    [2008-05-28 08:50:50] [info] Service Tomcat6 name Apache Tomcat
    [2008-05-28 08:50:50] [420 service.c] [error] The specified service already exists.
    [2008-05-28 08:50:50] [590 prunsrv.c] [error] Failed installing Tomcat6 service
    [2008-05-28 08:50:50] [info] Procrun finished.

  • Two related questions:  ColdFusion 10/Java applications and J2EE supported servers

    I have two related questions:
    1.  CF10 and integration with Java Web applications
    We have a couple of Java applications running on JRun and interfacing with CF9 applications.  The JRun clusters were created through the JRun Admin and, apart from lack of Axis 2.0 support, have served us well for years now.  And, as would be the case, the ColdFusion9/Java/Flash application is a critical public-facing application that the business uses for bidding on projects.
    It appears that with ColdFusion 10 on Tomcat, we will not be able to run those Java applications on a Tomcat-CF10 JVM cluster.  Is this correct?  IF so, what are our options? 
    2.  J2EE Application Servers supported by Adobe for CF10
    Which of these is correct?
    A.  This URL (http://www.adobe.com/products/coldfusion-enterprise/faq.html) states "ColdFusion 10 supports IBM® WebSphere, Oracle® WebLogic, Adobe JRun, Apache Tomcat, and JBoss."
    B.  This URL (http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/coldfusion/pdfs/cf1 0/coldfusion10-support-matrix.pdf) states:
    "J2EE application servers: WebLogic Server 10.3, 11.1, WebSphere Application Server 7, ND 7 JBoss 5.1, 6.0, 7.1.0"
    I *think* "A" above is wrong re. support for Adobe JRun.  It does not specify a version of Apache Tomcat unless it is simply referring to the custom version the comes with CF10.
    Option "B" above shows no support of Adobe JRun or 'standard' Apache Tomcat.
    Thanks,
    Scott

    Question 1 above was answered:  "No support for Java web applications under CF10's custom version of Tomcat"
    Question 2:  No answer yet:  Is Apache Tomcat (NOT Adobe's customized version) supported for CF10 J2EE deployment?  I do not see any installation instructions on how to install CF10 on Apache Tomcat 6 or 7.
    Is anybody using Apache Tomcat as their J2EE app servers and, again, NOT Adobe's customized/limited version? 
    Thanks,
    Scott

  • Tomcat server 6.0 with jdk1.6 Path error

    Hi,
    my tomcat server is through the error while i compaily servlet files. already path was setted. the path but also it through the error pls.... some body help me to solve this error.
    Path are:
    CATALINA_BASE=c:\Program Files\Apache Software Foundation\Tomcat 6.0
    CLASSPATH=.;C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar;d:\jdk1.6\lib\tools.jar;c:\Program Files\Apache Software Foundation\Tomcat 6.0\lib;c:\jdk1.6\lib\tools.jar;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%TOMCAT_HOME%\lib
    JAVA_HOME=d:\jdk1.6
    JRE_HOME=c:\j2sdk1.6
    TOMCAT_HOME=c:\Program Files\Apache Software Foundation\Tomcat 6.0
    Path=%Path%JAVA_HOME%\bin;;d:\jdk1.6\bin.

    Sorry but your question isn't related to Java. It's a pure Tomcat question and should be asked in a Tomcat forum. (And they probably wants to know how it fails, and what error messages you get)
    Kaj
    Edited by: kajbj on Feb 13, 2008 10:25 AM

  • Do we need to restart the Tomcat server each time when we modify servlets?

    Hi Friends,
    Do we need to restart the Tomcat server each time when we modify servlets. Or is there any otherway to achieve the functionalitly?
    Thanks and Regards,
    JG

    JamesGeorge wrote:
    Hi kajbj,
    Java guys are mostly using TOMCAT,so for me it seems to be the best place.That's not correct. Most people who are writing stuff for the web might be using Tomcat, but there are lots and lots of Java applications that aren't for the web.
    Is there any other reason behind your question.Yes, this forum is named "New to Java" and Tomcat questions shouldn't be asked here, even if people knows the answer to you question. You will probably get better and more detailed answers in a Tomcat forum. All othe guys there are actually using Tomcat, and they know the small differences between the different versions, and how they behave on different operating systems. They do also know if you need to make configurations changes, and where you should make them.
    So in future, please ask questions in a forum that is specific to the product that you are using.

  • Tomcat is crashing three times in a day

    hi,
    i m using apache tomcat 4.0 in windows NT but it is crashing frequently.
    Then i have only one way to untstall it and reinstall it.
    i have changed it's port no. from 8080 to 9090 bcz it was saying that address already used.
    but at the time of crashing the error it displays is also the same " address already used"
    manish

    This is not the right forum for Apache/Tomcat questions. Sun Java System Web Server questions/issues are discussed in this forum.
    Thanks
    Manish

  • Tomcat duplicating web pages

    Even though this is a tomcat question, I decided to post here because I frequent this forum more than any other. So here goes....
    I created a taglib. The tablib outputs all of the HTML on the page (even the DOCTYPE and HTML..../HTML. It's a complex taglib that does lots of things so the developer doesn't have to.
    When run in Websphere, the web apps perform as expected and the taglib works great.
    We recently decided to try Tomcat. The first thing we noticed was that the pages of the web app were being repeated or duplicated (everything). It's as if Tomcat was simply running the servelet multiple times. Here's the odd thing. The first time the page is drawn, it looks fine. Then you hit the refresh button, again fine. Hit it again, and the web page is duplicated. Hitting refesh again and the web page is duplicated yet again (and again and again for each refresh) and even stranger is that the items on the page that the tags draw (such as links, etc., are all duplicated as well - making each addition duplicate page larger and larger) How strange is this? I'd offer up a picture to show an example, but I don't have any place to store it on the web. (Where is GFiles or GStorage or GBox?)
    I've tried pragma co-cache, tried page buffer=false, and everything else I can think of relating to caching or buffering. Nothing works.
    All of the example JSPs including the taglib examples work just fine, so it must be something wrong I did in my taglib.
    Any ideas?

    Arrg - sorry, wrong topic - meant to post in Java Server "PAGES" not "FACES". Re-posted there. Do not reply to this thread.

Maybe you are looking for

  • Can anyone help with sharing my MacBook Pro with my smart tv.

    Can anyone help with sharing my mac with a smart tv

  • HELP:"java.lang.IllegalArgumentException"!!!!!!!!

    Good morning, I'm new in java and i'm trying to develop a graphic interface for an agent that i use in the platform Madkit...In brief i manage to see my interface however I have always this message: Agent launch exception:java.lang.IllegalArgumentExc

  • More than 15x15 contact sheet?

    Is there some trick to get around 15x15 contact sheet restriction? I'm trying to create a single tall image with 15x60 thumbnails in it

  • Install Visual Composer

    Hello Xerpts, I would like to know where to find the installation file for Visual Composer 7.0, Also, if there is a J2EE enginr installation please provide the link, in Service Market Place. Thanks

  • Adobe 9 + Roaming Profiles + Administrator

    Roaming Profiles (Vista on 2003 domain) are set to use Adobe Reader 8. After installing Adobe 9, the program "terminates abnormally". Adobe 9 runs OK as an administrator (non-roaming). I tried making a roaming user a local admin temporarily, then ret