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.
Similar Messages
-
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
:endpaths 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.
% -
Problems in starting tomcat server
Hi,
I installed jdk 1.4 and tomcat 5.0.19 which are running successfully.
Installed jdk1.5 on same PC.Not able to start tomcat now.
The tomcat sttings are with jdk1.4 only.
Thanks,
MKPYes, if your TomCat is running, right click on the trayicon -> configure -> java tab and go to
'Java Virtual Machine' and change it to something like:
C:\Arquivos de programas\Java\jre1.6.0_07\bin\client\jvm.dll
It will solve the problem -
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 -
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. -
Hi,
I am getting the following error mesage while try to run the tomcat on my machine.
" 'java' is not recognized as an internal or external command,
program or batch file.
'java' is not recognized as an internal or external command,
operable program or batch file."
my jdk & jre installed on the following path:
C:\Program Files\Java\jdk1.6.0_05
C:\Program Files\Java\jre1.6.0_05
my tomcat installed on the following path:
E:\xxxx\apache-tomcat-6.0.18
And I tried to run bebug.bat file:
path set on this file is given below:
set path=E:\nisha\apache-tomcat-6.0.18\\bin;C:\applications\Apache2\bin;C:\Program Files\Java\jdk1.6.0_06\bin;C:\Program Files\Java\jdk1.6.0_06\bin;C:
\applications\apache-ant-1.6.2\bin;.;
I already set the environment variable for java:
C:\Program Files\Java\jdk1.6.0_05
Any one can please help me to get out this problem.
Thanks in advance
Thanks,
learnTechpaths 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.
% -
Problem while starting tomcat 5.0.28
During the startup of apache-tomcat-5.0.28 i receive the following errors
in localhost.2006-03-30.log
Mar 30, 2006 4:12:11 PM org.apache.catalina.core.StandardContext
filterStart
SEVERE: Exception starting filter Compression Filter
java.lang.ClassNotFoundException: compressionFilters.CompressionFilter
Mar 30, 2006 4:12:11 PM org.apache.catalina.core.StandardContext
filterStart
SEVERE: Exception starting filter Set Character Encoding
java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter
Because of that iam unable to access my servlets..
Can anybody help me to understand what is wrong?
Thanks.
Mustang.Make sure you check the following file: $CATALINA_HOME/webapps/examples/WEB-INF/classes/filters/SetCharacterEncodingFilter.class. Make sure it's spelled .class and not .clas. When trying to expand it, the name gets truncated.
-
Start Tomcat 5.5 with Security Manager
Recently, i have installed Tomcat version 5.5.8 but i have problem to start tomcat with a Securiy manager.
For Tomcat version 4.xx we could start Tomcat with SecurityManager by using the "-security" option at "%CATALINA_HOME%\bin\startup.bat" after configured the catalina.policy file.
But i couldn't do so at Tomcat 5.5.8. Any idea? Many Thanks.Start it yourself with
java -Dcatalina.home=$CATALINA_HOME -Djava.security.manager -Djava.security.policy=="your.policy" -cp your.classpath org.apache.catalina.startup.Bootstrap
Cheers,
Arnaud -
Problem in ant script (starting tomcat)...
Hi,
in my ant script (build.xml) I have some targets to start/stop tomcat:
<!-- ================================ -->
<!-- start/stop tomcat servlet engine -->
<!-- ================================ -->
<!-- check whether server is already running -->
<target name="-started">
<condition property="server.started">
<and>
<socket port="${tomcat.port}" server="${tomcat.server}"/>
</and>
</condition>
</target>
<!-- start tomcat -->
<target name="start" depends="-started" description="start tomcat server"
unless="server.started">
<echo message="Starting tomcat servlet engine..."/>
<java classname="org.apache.catalina.startup.Bootstrap" fork="yes">
<jvmarg value="-Djava.endorsed.dirs=${catalina.dir}/common/endorsed"/>
<jvmarg value="-Dcatalina.base=${catalina.dir}"/>
<jvmarg value="-Dcatalina.home=${catalina.dir}"/>
<jvmarg value="-Djava.io.tmpdir=${catalina.dir}/temp"/>
<arg value="start"/>
<classpath>
<pathelement location="${java.home}/../lib/tools.jar"/>
<pathelement location="${catalina.dir}/bin/bootstrap.jar"/>
</classpath>
</java>
</target>
<!-- check whether server is still running -->
<target name="-stopped">
<condition property="server.stopped">
<and>
<socket port="${tomcat.port}" server="${tomcat.server}"/>
<not>
<isset property="server.started"/>
</not>
</and>
</condition>
</target>
<!-- stop tomcat -->
<target name="stop" depends="-stopped" description="stop tomcat server"
if="server.stopped">
<echo message="Stopping tomcat servlet engine..."/>
<java classname="org.apache.catalina.startup.Bootstrap" fork="yes">
<jvmarg value="-Djava.endorsed.dirs=${catalina.dir}/common/endorsed"/>
<jvmarg value="-Dcatalina.base=${catalina.dir}"/>
<jvmarg value="-Dcatalina.home=${catalina.dir}"/>
<jvmarg value="-Djava.io.tmpdir=${catalina.dir}/temp"/>
<arg value="stop"/>
<classpath>
<pathelement location="${java.home}/../lib/tools.jar"/>
<pathelement location="${catalina.dir}/bin/bootstrap.jar"/>
</classpath>
</java>
</target>The problem I have is, when using another target which depends on the tomcat start target, for example my list target:
<target name="list" depends="start" description="list installed web applications">
<list url="${url}" username="${username}"
password="${password}"/>
</target>When executing the list target, tomcat starts up correctly but the list target is not executed.
Any help would be greatly appreciated.
Best regards
- StephanNo, I don't think that's the problem.
In my opinion, the problem has something to do with
fork="yes"in the start target.
But how can I tell ant to first execute another target (the target that starts tomcat) and then execute for example the list target (which lists all the installed web apps)? When using the depends attribute it doesn't work:
<target name="list" depends="start">
<list url=.../>
</target>When executing the list target, tomcat starts automatically (start target) but the list target is not executed after that :-(
Any ideas?
Best regards
- Stephan -
Problem starting Tomcat 4.1.31
Dear All,
i am facing a problem while trying to start Tomcat as a java application by calling org.apache.catalina.startup.Bootstrap in Eclispe. I want to run an application with only class files in tomcat . The stacktrace is as follows.
Oct 16, 2006 11:21:15 AM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.NullPointerException
at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.start(Catalina.java:420)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
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.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Catalina.start using C:\Tomcat\jakarta-tomcat-4.1.31\conf\server.xml: java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
at org.apache.commons.digester.Digester.startElement(Digester.java:1276)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.start(Catalina.java:420)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
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.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Can you plz suggest any solution?
Thanks in advance .....
RajHave you been editing server.xml?
Check that it is valid xml.
Catalina.start using C:\Tomcat\jakarta-tomcat-4.1.31\conf\server.xml: java.lang.NullPointerException -
Starting tomcat problem, please help urgent
I installed jwsdp on windowsXP . The log file gives this following error when i try to start tomcat:
java.util.zip.ZipException: Access is denied
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.jar.JarFile.<init>(JarFile.java:138)
at java.util.jar.JarFile.<init>(JarFile.java:80)
at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1081)
at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java:200)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:202)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:141)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
Bootstrap: Class loader creation threw exception
java.lang.IllegalArgumentException: addRepositoryInternal: java.util.zip.ZipException: Access is denied
at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1109)
at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java:200)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:202)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:141)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
PLEASE HELP ,URGENTLY NEEDED TO SHOW SOME WORK ON THIS.
THANKS
jimHi,
I have a similar problem, i try to deploy a JAR file built on AIX 5.2 platform (jvm 14.1) into Tomcat 5.5.7 running on Windows platform when i try start Tomcat it's fail with the fellowing message
SEVERE: Error deploying web application directory usi
java.lang.IllegalArgumentException
at java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java:299)
at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:238)
at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:73)
at java.util.jar.JarInputStream.<init>(JarInputStream.java:58)
at java.util.jar.JarInputStream.<init>(JarInputStream.java:43)
at org.apache.catalina.util.ExtensionValidator.getManifest(ExtensionValidator.java:368)
at org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:187)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3942)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:909)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:872)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
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:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) -
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
-JeganI 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 while starting Apache Tomcat Server (Ports already in use)...
Hi,
I am using an Eclipse IDE for web service Client creation.. Also I have used Apache Tomcat5.5 Server inorder to run the application*...*
While starting Tomcat Server, I am getting an error that the port numbers are already in use.
So, I have changed the port numbers in the Server.xml file.
But, still it is throwing the same error , even though the port numbers are not in use.
Can any one please provide some suitable solution for this ASAP....
I need very urgent and so please provide some solution..
Thanks in Advance,
roopaHey...
Did u start restarting your machine after you changed the ports..
Is your tomcat server running perfectly after you changed the port number...
I had a similar prob.. But i jus reinstalled both and gave different port numbers while re-installling.
Jus give it it a try.. The ports need to be refreshed.. So try rebooting yr machine first !
All the best ! -
Problem while starting Apache/Tomcat as a NT Service
We are having a virtual folder which is mapped to a network physical folder.In this case while starting Apache/Tomcat as NT service it fails to map that folder.If we start the Tomcat as a Standalone service(using start menu) it works fine.I don't know which one is best whether starting tomcat as standalone or NT service.Provide a better solution
You want to run it as an NT Service if you want Tomcat running when you are logged off. Otherwise, you can just run it manually.
-
Data refresh problem - QaaWS and Tomcat cache
Hi Experts,
I have a problem with data refreshing in Xcelsius 2008 dashboard when I use QaaWS.
System is: BO XI 3.1 on the Win2008 server.
When data are changing in the database InfoView documents show it immediately, but into the Xcelsius dashboards new data not coming.
In the dashboards I use auto refresh, and Refresh button too... It doesn't help.
New data are appearing just after restarting of Tomcat.
Maybe Tomcat is caching data...?
Do somebody have similar issue? Could you suggest me something to do?
Thx,
JánosHi Janos,
Tomcat has cache which the default time is 60 seconds.
You can change the cache time when you create QaaWS wsdl.
If you do NOT want the cache, you can
1. locate to: ${BOE Install Path}\Business Objects\Tomcat55\webapps\dswsbobje\WEB-INF\classes
2. Open dsws.properties
3. Find the property qaaws.cache_dpresult.optim= and set it to false.
4. Re-start tomcat.
Hope this can help!
Maybe you are looking for
-
Default Mail, Contacts, Calendars options
What are the default Mail, Contacts, Calendar options? Nephew was playing with phone and changed a bunch of settings. Curious what are the default settings since I liked it the way it was.
-
How to get the incoming filename and store it to sql table using biztalk server 2013
HI, 1)I need to get the incoming EDI filename which is received and save the filename in to the database. 2)How can i get the EDI Duplicate filename if i set the do not allow duplicate under validation tab in X12 agreement settings in biztalk admin c
-
Inserting Date AND Time using DBMS_XMLStore.insertXML
Hello, I'm using a c# app to create an xml file to be passed to a stored procedure. The store procedure then uses DBMS_XMLStore.insertXML to insert the record in the xml file into the database. There is a field in the Oracle table called "ENTER_DATE"
-
Not being able to connect to Wifi Iphone5 after IOS 8.3
After updating to IOS and especially IOS8.3 my IPhone 5 is not able to connect to a Wifi network or is constantly asking for a password even though the correct password is entered. How to solve this problem?
-
My iPad air had a hairline crack when I opened it, what rights do I have?
I opened this recently for my birthday and there was a crack. The box was never dropped but I would have thought that it would be best preserved in its original box. Please help, I really don't know what to do and it was bought online so it's not lik