Getting start in starting tomcat

i installed tomcat on my lappy...when i startd it....a small window came..messaging "tomcat is attempting to start service..."then it dissapeared but server couldnt start....when i tried with dos...Following error appeared....
java.lang.NoClassDefFoundError: start
Caused by: java.lang.ClassNotFoundException: start
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
plzzz help me.....

jdk 1.6 ? means you r using Tomcat 6.X version. Buddy sorry in that case. Coz till now i have expertise in 4.X series only . If you have time then tell me ur all detail of development.
IDE , JDK VERSION, TOMCAT VERSION etc. then will surely look into it. Right now i m using tomcat 6.X as add on with Apache on with eclipse J2EE. So may i will help you out
Cheers Sachin

Similar Messages

  • Error while starting 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.

  • Problem with starting Tomcat in debug Mode, Win XP

    Hi,
    if i go to cmd and C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin
    and write: catalina jpda start, it says
    C:\Documents and Settings\bartek>cd C:\Program Files\Apache Software Founda
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin>catalina jpda start
    Using CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 5
    Using CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 5
    Using CATALINA_TMPDIR: C:\Program Files\Apache Software Foundation\Tomcat 5
    Using JAVA_HOME: C:\j2sdk1.4.2_09
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin>
    And it finishes.... Server is off
    If i write: catalina start , new Tomcat window opens and the server starts
    This is my catalina.bat
    @echo off
    if "%OS%" == "Windows_NT" setlocal
    rem ---------------------------------------------------------------------------
    rem Start/Stop Script for the CATALINA Server
    rem
    rem Environment Variable Prequisites
    rem
    rem   CATALINA_HOME   May point at your Catalina "build" directory.
    rem
    rem   CATALINA_BASE   (Optional) Base directory for resolving dynamic portions
    rem                   of a Catalina installation.  If not present, resolves to
    rem                   the same directory that CATALINA_HOME points to.
    rem
    rem   CATALINA_OPTS   (Optional) Java runtime options used when the "start",
    rem                   "stop", or "run" command is executed.
    rem
    rem   CATALINA_TMPDIR (Optional) Directory path location of temporary directory
    rem                   the JVM should use (java.io.tmpdir).  Defaults to
    rem                   %CATALINA_BASE%\temp.
    rem
    rem   JAVA_HOME       Must point at your Java Development Kit installation.
    rem
    rem   JAVA_OPTS       (Optional) Java runtime options used when the "start",
    rem                   "stop", or "run" command is executed.
    rem
    rem   JSSE_HOME       (Optional) May point at your Java Secure Sockets Extension
    rem                   (JSSE) installation, whose JAR files will be added to the
    rem                   system class path used to start Tomcat.
    rem
    rem   JPDA_TRANSPORT  (Optional) JPDA transport used when the "jpda start"
    rem                   command is executed. The default is "dt_shmem".
    rem
    rem   JPDA_ADDRESS    (Optional) Java runtime options used when the "jpda start"
    rem                   command is executed. The default is "jdbconn".
    rem
    rem $Id: catalina.bat,v 1.9.2.1 2004/08/21 15:49:47 yoavs Exp $
    rem ---------------------------------------------------------------------------
    rem Guess CATALINA_HOME if not defined
    set CURRENT_DIR=%cd%
    if not "%CATALINA_HOME%" == "" goto gotHome
    set CATALINA_HOME=%CURRENT_DIR%
    if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
    cd ..
    set CATALINA_HOME=%cd%
    cd %CURRENT_DIR%
    :gotHome
    if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
    echo The CATALINA_HOME environment variable is not defined correctly
    echo This environment variable is needed to run this program
    goto end
    :okHome
    rem Get standard environment variables
    if exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat"
    rem Get standard Java environment variables
    if exist "%CATALINA_HOME%\bin\setclasspath.bat" goto okSetclasspath
    echo Cannot find %CATALINA_HOME%\bin\setclasspath.bat
    echo This file is needed to run this program
    goto end
    :okSetclasspath
    set BASEDIR=%CATALINA_HOME%
    call "%CATALINA_HOME%\bin\setclasspath.bat"
    rem Add on extra jar files to CLASSPATH
    if "%JSSE_HOME%" == "" goto noJsse
    set CLASSPATH=%CLASSPATH%;%JSSE_HOME%\lib\jcert.jar;%JSSE_HOME%\lib\jnet.jar;%JSSE_HOME%\lib\jsse.jar
    :noJsse
    set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar
    if not "%CATALINA_BASE%" == "" goto gotBase
    set CATALINA_BASE=%CATALINA_HOME%
    :gotBase
    if not "%CATALINA_TMPDIR%" == "" goto gotTmpdir
    set CATALINA_TMPDIR=%CATALINA_BASE%\temp
    :gotTmpdir
    rem ----- Execute The Requested Command ---------------------------------------
    echo Using CATALINA_BASE:   %CATALINA_BASE%
    echo Using CATALINA_HOME:   %CATALINA_HOME%
    echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
    echo Using JAVA_HOME:       %JAVA_HOME%
    set _EXECJAVA=%_RUNJAVA%
    set MAINCLASS=org.apache.catalina.startup.Bootstrap
    set ACTION=start
    set SECURITY_POLICY_FILE=
    set DEBUG_OPTS=
    set JPDA=
    if not ""%1"" == ""jpda"" goto noJpda
    set JPDA=jpda
    if not "%JPDA_TRANSPORT%" == "" goto gotJpdaTransport
    set JPDA_TRANSPORT=dt_socked
    :gotJpdaTransport
    if not "%JPDA_ADDRESS%" == "" goto gotJpdaAddress
    set JPDA_ADDRESS=8000
    :gotJpdaAddress
    shift
    :noJpda
    if ""%1"" == ""debug"" goto doDebug
    if ""%1"" == ""run"" goto doRun
    if ""%1"" == ""start"" goto doStart
    if ""%1"" == ""stop"" goto doStop
    if ""%1"" == ""version"" goto doVersion
    echo Usage:  catalina ( commands ... )
    echo commands:
    echo   debug             Start Catalina in a debugger
    echo   debug -security   Debug Catalina with a security manager
    echo   jpda start        Start Catalina under JPDA debugger
    echo   run               Start Catalina in the current window
    echo   run -security     Start in the current window with security manager
    echo   start             Start Catalina in a separate window
    echo   start -security   Start in a separate window with security manager
    echo   stop              Stop Catalina
    echo   version           What version of tomcat are you running?
    goto end
    :doDebug
    shift
    set _EXECJAVA=%_RUNJDB%
    set DEBUG_OPTS=-sourcepath "%CATALINA_HOME%\..\..\jakarta-tomcat-catalina\catalina\src\share"
    if not ""%1"" == ""-security"" goto execCmd
    shift
    echo Using Security Manager
    set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
    goto execCmd
    :doRun
    shift
    if not ""%1"" == ""-security"" goto execCmd
    shift
    echo Using Security Manager
    set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
    goto execCmd
    :doStart
    shift
    if not "%OS%" == "Windows_NT" goto noTitle
    set _EXECJAVA=start "Tomcat" %_RUNJAVA%
    goto gotTitle
    :noTitle
    set _EXECJAVA=start %_RUNJAVA%
    :gotTitle
    if not ""%1"" == ""-security"" goto execCmd
    shift
    echo Using Security Manager
    set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
    goto execCmd
    :doStop
    shift
    set ACTION=stop
    goto execCmd
    :doVersion
    %_EXECJAVA% -classpath "%CATALINA_HOME%\server\lib\catalina.jar" org.apache.catalina.util.ServerInfo
    goto end
    :execCmd
    rem Get remaining unshifted command line arguments and save them in the
    set CMD_LINE_ARGS=
    :setArgs
    if ""%1""=="""" goto doneSetArgs
    set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
    shift
    goto setArgs
    :doneSetArgs
    rem Execute Java with the applicable properties
    if not "%JPDA%" == "" goto doJpda
    if not "%SECURITY_POLICY_FILE%" == "" goto doSecurity
    %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
    goto end
    :doSecurity
    %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
    goto end
    :doJpda
    if not "%SECURITY_POLICY_FILE%" == "" goto doSecurityJpda
    %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% -Xdebug -Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=n %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
    goto end
    :doSecurityJpda
    %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% -Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=n %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
    goto end
    :end

    paths with spaces in them are a problem. surround them with quotes and see if that helps.
    why does the Java /bin appear twice?
    why don't you use the JAVA_HOME variable that you set? don't repeat yourself.
    %

  • How to start tomcat at boot on 10.8

    I have been trying for days to get Tomcat to start on system boot. I have it working fine as an launch daemon when I log on, but I want it to start when the system starts.  I have installed the plist to start tomcat in /System/Library, changed the ownership to root:wheel, ensured that the script it runs is accessible and workable, but no luck.  Where am I going wrong.

    I have been trying for days to get Tomcat to start on system boot. I have it working fine as an launch daemon when I log on, but I want it to start when the system starts.  I have installed the plist to start tomcat in /System/Library, changed the ownership to root:wheel, ensured that the script it runs is accessible and workable, but no luck.  Where am I going wrong.

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

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

  • How to get started

    I am running Linux 7.3 (I know just enough about Linux to get it installed and to get PHP up and running) and I would like to learn about JSP. My experience is 10 years with Object Pascal (Delphi) and I do have JBuilder, but have never used it.
    What do I need to get started?
    Where can I obtain info/instructions?
    Many thanks,
    Todd
    Ariste Software
    Petaluma, CA 94952

    The short answer: Install the J2SE JDK and work through the tutorials and examples - grab a book, write test code and ask questions on topics that you don't get. When you feel relatively solid with the J2SE, then grab Tomcat and install it, then start playing with servlets and JSP.
    You might ignore JBuilder for the moment and just grab a nice editor and a command line, it makes things so much clearer if you start that way.
    Get the SDK at:
    http://java.sun.com/j2se/downloads.html
    Get Tomcat at:
    http://jakarta.apache.org/tomcat
    Get jedit (shameless plug for my favorite editor)(don't forget to get plug ins!) at:
    http:www.jedit.org
    Good luck to you
    Lee

  • Getting started help

    Perhaps someone wouldn't mind helping with some simple questions....
    I'd like to get started with Java Server Pages but I am finding the process absolutely bewildering.
    At the moment I have a site running Jrun 3.1 and I use J2SE, so I think I will have my work cut out just to get started, though perhaps someone can enlighten me.
    Jrun 3.1 doesn't even implement Servlet API 2.3 and whenever I hear talk of Java Server Faces I seem to hear J2EE. However I have no great wish to update Jrun with our server running smoothly (touch wood) and changing from J2SE to J2EE seems like yet another big change.
    I had a look at changing to Tomcat, but again why do so when things are running smoothly as they are?
    Ok, so I've been looking at Java Web Services pack, which seems to solve some of the problems and the blurb says:
    "Note that the Java WSDP is an integrated toolkit that you can use to develop and deploy not only Web services, but also Web and XML-based applications".
    But presumably I need a servlet container behind it and Jrun 3.1 is probably too old, is that right?
    Ok, at this point perhaps I could leave my existing applications running happily in Jrun 3.1 and J2SE, install Tomcat and J2EE separately and run any new applications alongside in the new environment. I've got 1GB of memory, and then maybe one day I move over the old applications.
    Perhaps somebody could give me some pointers, given my situation.
    Thanks for your time.

    JavaServer Faces requires an environment that supports at least Servlet 2.3 and JSP 1.2. It will not run on any server that supports Servlet 2.2 or earlier only. Any J2EE 1.3 or later app server meets these criteria, but it's not required (for JavaServer Faces) that you have a full J2EE server unless you need those facilities (such as EJBs) for your applications.
    The Java Web Services Developer Pack includes Tomat 5, or you can use an existing Tomcat installation (must be 4.1 or 5.0). Tomcat is pretty easy to set up (especially if you just use it standalone, and not try to run it behind the Apache HTTPD server).
    Craig MClanahan

  • Starting Tomcat in WinXP

    I m facing a problem starting tomcat server in winxp.every time i run startup from the command window,it gives the message "windows cannot find 'c:\sun\appserver\bin\java'.I have set the following environment variables:
    CATALINA_HOME=C:\tomcat
    TOMCAT_HOME=C:\tomcat
    CLASSPATH=c:\Sun\AppServer\lib\j2ee.jar
    JAVA_HOME=C:\Sun\AppServer
    Path=c:\Sun\AppServer\bin
    I have installed tomcat in c:\tomcat.Whats the thing i m doing wrong.
    Pls reply asap.Thanx in advance.

    Get rid of that CLASSPATH environment variable for one thing. You don't need it, and Tomcat ignores it.
    Open a command shell and type "java -version". Make sure that the version that comes back is the one you think you should have.
    If the OS can't find the java.exe, it means you've got a PATH problem.
    Your PATH in WinXP should have a lot more than that in it. Where exactly did you set these values? Using the Control Panel, or in the command shell itself? I have mine set with the Control Panel. - MOD

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

  • Problem starting Tomcat web server in Ubuntu.

    Hi every one,
    I use Ubuntu OS.I have installed J2sdk.I want to start tomcat webserver but whenever i start the server I get an error as
    '/usr/share/tomcat/bin/catalina.sh: line 41: setJava: No such file or directory'
    I tried removing the line, to find out the cause of that error.When I removed line 41 , it showed JAVA_HOME variables not set.
    I have set JAVA_HOME varible as
    '/usr/lib/j2sdk1.5-sun/bin/javac/usr/lib/j2sdk1.5-sun/bin/'
    line 41 is '. setJava --devel Java2'
    Could anyone help me to solve this issue?
    And Thanks in advance
    -Jegan

    I use Ubuntu OS.I have installed J2sdk.I want to start tomcat webserver but whenever i start the server I get an error as
    '/usr/share/tomcat/bin/catalina.sh: line 41: setJava: No such file or directory'
    I tried removing the line, to find out the cause of that error.When I removed line 41 , it showed JAVA_HOME variables not set.
    I have set JAVA_HOME varible as
    '/usr/lib/j2sdk1.5-sun/bin/javac/usr/lib/j2sdk1.5-sun/bin/'
    line 41 is '. setJava --devel Java2'
    Could anyone help me to solve this issue?
    And Thanks in advance

  • Problem in starting tomcat

    hi
    friends i am facing problem in starting tomcat jakarta-tomcat-4.1.24 , actually i think i am doing mistake in setting environment variable
    set classpath=%classpath%;C:\tomcat\jakarta-tomcat-4.1.24\common\lib\servlet.jar;
    set path=%path%;C:\j2sdk1.4.2_01\bin;C:\tomcat\jakarta-tomcat-4.1.24\common\lib\servlet.jar;
    i woud really appriate if u people help me in sorting out this problem
    tell me how to start using tomcat for servelet running

    s.jindal wrote:
    hi
    friends i am facing problem in starting tomcat jakarta-tomcat-4.1.24 , actually i think i am doing mistake in setting environment variable
    set classpath=%classpath%;C:\tomcat\jakarta-tomcat-4.1.24\common\lib\servlet.jar;
    set path=%path%;C:\j2sdk1.4.2_01\bin;C:\tomcat\jakarta-tomcat-4.1.24\common\lib\servlet.jar;
    i woud really appriate if u people help me in sorting out this problem
    tell me how to start using tomcat for servelet running
    I just type ./startup.sh, but then I am using a later version.
    You would likely get better help at a Tomcat forum.
    And then, you need to post what your error is. "Facing a problem" isn't helpful.

  • Problem in Starting tomcat in new window

    I Have configured tomcat set environment and done all the stuff but while starting tomcat
    Another DOS window breifly opens and closes, (I can
    not read the message in
    that window), and the above window remains open.
    I do not get a new window or anything after this. I
    tried opening my browser
    and typing http://localhost:8080/ in the address
    line, but I get the
    "Cannot find server or DNS Error" from the browser.
    I tried changing the
    port to 80 instead of 8080, but that doesn't work
    either.
    I'd greatly appreciate it if anyone can help get me
    past this issue.

    I would suggest deleting all the log files under tomcat\logs and then try starting it up. When it fails go to the logs folder and look through all the files that were created and see if there is any error message. it should tell you why its not starting properly.
    -S

  • Starting tomcat server after setting classpath for java

    Sorry if this is nothing to do with java, it is more to do with starting tomcat server.
    Tomcat server has been working totally fine, but when I wanted to compile a java servlet I wrote for it, I needed to run a BAT file called gojava in MS-DOS that had the classpath for java to work properly. I then attempted to run Tomcat, but just got 'bad command'. As long as I don't start up java by setting the classpath, tomcat will work, but as I need java to write servlets and then to test them without restarting my PC each time, how do I get tomcat to work?
    Thanks
    Hannah

    Sounds like your batch file is changing your path, not your classpath. If you're getting "Bad command or filename" when attempting to run Tomcat, it can't find the executable. Check out the .bat file and see what it's doing (maybe even post it here for further clarity). If it's changing your path at all, make sure it includes a %path% to indicate that it simply wants to append items to the path, not overwrite it completely. Sorry if i'm way off base with my suggestions, but it sounds like that's where the problem's going to be, especially if rebooting resolves the problem.

  • JDevloper and Getting Started with BPM 11g

    I have the latest version of Jdevloper 11.1.1.5, and I am not finding the BPM Application,
    as outlined in the Book Getting Started with Oracle BPM Suite 11gR1? The settings for the 'role" are just not there?
    Must I run Jdevloper 11.1.2.1? which then complains about the maintenance level.
    Can anyone comment on why, this feature would not be in 11.1.1.5 ?
    Edited by: user2738980 on Dec 7, 2011 9:35 PM
    Edited by: user2738980 on Dec 7, 2011 9:40 PM

    I attempted this option early on, an once again the BPM option was not in the update list, I install Spring, the tomcat ext... but there was no BPM ext. you do have a point here, is there a separate update center?
    I'm assuming that it would / should be in the default centers for the tool?
    Edited by: user2738980 on Dec 9, 2011 6:56 PM

  • Receiving a ZipException when starting Tomcat

    I have a .war file in my webapps directory representing my application
    based on the Jato framework. I'm getting the exception below when it
    trys to grab my war file and expand it. The end result gives me a
    Voyager/ directory but the directory is totally empty. If I un-tar the
    war file in my webapps directory, everything works fine. Does anyone
    have any ideas as to why I'm getting this Exception? The .war file has
    read, write and execute permissions...
    - Billy -
    Stacktrace:
    2002-09-26 11:08:38 HostConfig[localhost] Exception while expanding
    web application archive Voyager.war
    java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:112)
    at java.util.jar.JarFile.<init>(JarFile.java:117)
    at java.util.jar.JarFile.<init>(JarFile.java:55)
    at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:55)
    at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:40)
    at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:68)
    at
    sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85)
    at
    sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:69)
    at org.apache.catalina.startup.HostConfig.expand(HostConfig.java:738)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:500)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja\
    va:166)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
    at org.apache.catalina.core.StandardService.start(StandardService.java:497)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:2191)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
    at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
    at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav\
    a:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

    Brain freeze... I'm an idiot...
    Thanks.
    --- In SunONE-JATO@y..., Todd Fast <Todd.Fast@S...> wrote:
    There's your problem. "Tar" is not the correct command, you shouldbe using
    "jar".
    Todd
    ----- Original Message -----
    From: "chubbykidd" <bacon33@o...>
    Sent: Thursday, September 26, 2002 2:57 PM
    Subject: [SunONE-JATO] Re: Receiving a ZipException when starting Tomcat
    I created my .war file by using this command in my webapps/Voyager
    directory....
    tar -cvf Voyager.war WEB-INF images voyager
    WEB-INF, images and voyager being the directories within the war
    file....
    >>
    It's a valid war file from what I know.... Tomcat doesn't like it
    though...
    --- In SunONE-JATO@y..., Todd Fast <Todd.Fast@S...> wrote:
    How did you create your .war file? I don't understand why it
    would be
    openable using tar if it's supposed to be a (renamed) zip file.
    Todd
    ----- Original Message -----
    From: "chubbykidd" <bacon33@o...>
    Sent: Thursday, September 26, 2002 10:29 AM
    Subject: [SunONE-JATO] Receiving a ZipException when starting Tomcat
    I have a .war file in my webapps directory representing my
    application
    based on the Jato framework. I'm getting the exception belowwhen it
    trys to grab my war file and expand it. The end result gives me a
    Voyager/ directory but the directory is totally empty. If Iun-tar the
    war file in my webapps directory, everything works fine. Doesanyone
    have any ideas as to why I'm getting this Exception? The .warfile has
    read, write and execute permissions...
    - Billy -
    Stacktrace:
    2002-09-26 11:08:38 HostConfig[localhost] Exception whileexpanding
    web application archive Voyager.war
    java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:112)
    at java.util.jar.JarFile.<init>(JarFile.java:117)
    at java.util.jar.JarFile.<init>(JarFile.java:55)
    at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:55)
    atsun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:40)
    atsun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:68)
    at
    sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85)
    at
    sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:6
    9)
    at
    org.apache.catalina.startup.HostConfig.expand(HostConfig.java:738)
    atorg.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:500)
    atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410)
    at
    org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
    t.java:166)
    at
    org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
    at
    org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
    atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
    atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:497)
    atorg.apache.catalina.core.StandardServer.start(StandardServer.java:2191)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
    at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
    at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
    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.main(Bootstrap.java:203)
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

Maybe you are looking for