here is my Tomcat.bat.
set _CP=%CP%
set _TOMCAT_HOME=%TOMCAT_HOME%
set _CLASSPATH=%CLASSPATH%
rem ----- Verify and Set Required Environment Variables ---------------------
if not "%JAVA_HOME%" == ""
goto gotJavaHome
echo You must set JAVA_HOME
to point at your Java Development Kit installation
goto cleanup
:gotJavaHome
if not "%TOMCAT_HOME%" ==
"" goto gotTomcatHome
set TOMCAT_HOME=.
:gotTomcatHome
if exist "%TOMCAT_HOME%\lib\servlet.jar"
goto okTomcatHome
echo Unable to locate servlet.jar,
check the value of TOMCAT_HOME.
goto cleanup
:okTomcatHome
rem ----- Prepare Appropriate Java Execution Commands -----------------------
if not "%OS%" == "Windows_NT"
goto noTitle
set _SECSTARTJAVA=start
"Secure Tomcat 3.2" "%JAVA_HOME%\bin\java"
set _STARTJAVA=start "Tomcat
3.2" "%JAVA_HOME%\bin\java"
set _RUNJAVA="%JAVA_HOME%\bin\java"
goto setClasspath
:noTitle
set _SECSTARTJAVA=start
"%JAVA_HOME%\bin\java"
set _STARTJAVA=start "%JAVA_HOME%\bin\java"
set _RUNJAVA="%JAVA_HOME%\bin\java"
rem ----- Set Up The Runtime Classpath --------------------------------------
:setClasspath
set CP=%TOMCAT_HOME%\classes
rem Try to determine if TOMCAT_HOME
contains spaces
rem
if exist %TOMCAT_HOME%\lib\servlet.jar goto dynClasspath
echo Your TOMCAT_HOME appears
to contain spaces.
echo Unable to set CLASSPATH
dynamically.
goto staticClasspath
rem:dynClasspath
rem
set _LIBJARS=
rem
for %%i in (%TOMCAT_HOME%\lib\*.jar) do call %TOMCAT_HOME%\bin\cpappend.bat
%%i
rem
if not "%_LIBJARS%" == "" goto gotLibJars
rem
echo Unable to set CLASSPATH dynamically.
remif
"%OS%" == "Windows_NT" goto staticClasspath
rem
echo Note: To set the CLASSPATH dynamically on Win9x systems
rem
echo only DOS 8.3 names may be used
in TOMCAT_HOME!
rem
goto staticClasspath
rem
:gotLibJars
rem
echo Including all jars in %TOMCAT_HOME%\lib in your CLASSPATH.
rem
Note: _LIBJARS already contains a leading semicolon
rem
set CP=%CP%%_LIBJARS%
rem goto chkClasspath
:staticClasspath
echo
Setting your CLASSPATH statically.
if
exist "%TOMCAT_HOME%\lib\axerces.jar" set CP=%CP%;%TOMCAT_HOME%\lib\axerces.jar
if
exist "%TOMCAT_HOME%\lib\zant.jar" set CP=%CP%;%TOMCAT_HOME%\lib\zant.jar
if
exist "%TOMCAT_HOME%\lib\jasper.jar" set CP=%CP%;%TOMCAT_HOME%\lib\jasper.jar
if
exist "%TOMCAT_HOME%\lib\jaxp.jar" set CP=%CP%;%TOMCAT_HOME%\lib\jaxp.jar
if
exist "%TOMCAT_HOME%\lib\parser.jar" set CP=%CP%;%TOMCAT_HOME%\lib\parser.jar
if
exist "%TOMCAT_HOME%\lib\servlet.jar" set CP=%CP%;%TOMCAT_HOME%\lib\servlet.jar
if
exist "%TOMCAT_HOME%\lib\webserver.jar" set CP=%CP%;%TOMCAT_HOME%\lib\webserver.jar
if
exist "%TOMCAT_HOME%\lib\cocoon.jar" set CP=%CP%;%TOMCAT_HOME%\lib\cocoon.jar
if
exist "%TOMCAT_HOME%\lib\fesi.jar" set CP=%CP%;%TOMCAT_HOME%\lib\fesi.jar
if
exist "%TOMCAT_HOME%\lib\sax-bugfix.jar" set CP=%CP%;%TOMCAT_HOME%\lib\sax-bugfix.jar
if
exist "%TOMCAT_HOME%\lib\w3c.jar" set CP=%CP%;%TOMCAT_HOME%\lib\w3x.jar
if
exist "%TOMCAT_HOME%\lib\xml.jar" set CP=%CP%;%TOMCAT_HOME%\lib\xml.jar
if
exist "%TOMCAT_HOME%\lib\xt.jar" set CP=%CP%;%TOMCAT_HOME%\lib\xt.jar
:chkClasspath
if "%CLASSPATH%" == "" goto
noClasspath
set CP=%CP%;%CLASSPATH%
:noClasspath
if not exist "%JAVA_HOME%\lib\tools.jar"
goto installClasspath
set CP=%CP%;%JAVA_HOME%\lib\tools.jar
:installClasspath
echo.
echo Using CLASSPATH: %CP%
echo.
set CLASSPATH=%CP%
rem ----- Execute The Requested Command -------------------------------------
if "%1" == "start" goto startServer
if "%1" == "stop" goto stopServer
if "%1" == "run" goto runServer
if "%1" == "ant" goto runAnt
if "%1" == "env" goto doEnv
if "%1" == "jspc" goto runJspc
:doUsage
echo Usage: tomcat
( ant ^| env ^| jspc ^| run ^| start ^| stop )
echo Commands:
echo ant -
Run Ant in Tomcat's environment
echo env -
Set up environment variables that Tomcat would use
echo jspc -
Run JSPC in Tomcat's environment
echo run -
Start Tomcat in the current window
echo start -
Start Tomcat in a separate window
echo stop -
Stop Tomcat
goto cleanup
:doEnv
goto finish
:startServer
echo Starting Tomcat in
new window
if "%2" == "-security" goto
startSecure
%_STARTJAVA% %TOMCAT_OPTS%
-Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat %2 %3 %4
%5 %6 %7 %8 %9
goto cleanup
:startSecure
echo Starting Tomcat with
a SecurityManager
%_SECSTARTJAVA% %TOMCAT_OPTS%
-Djava.security.manager -Djava.security.policy=="%TOMCAT_HOME%/conf/tomcat.policy"
-Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat %3 %4 %5
%6 %7 %8 %9
goto cleanup
:runServer
rem Running Tomcat in this
window
if "%2" == "-security" goto
runSecure
%_RUNJAVA% %TOMCAT_OPTS%
-Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat %2 %3 %4
%5 %6 %7 %8 %9
goto cleanup
:runSecure
rem Running Tomcat with
a SecurityManager
%_RUNJAVA% %TOMCAT_OPTS%
-Djava.security.manager -Djava.security.policy=="%TOMCAT_HOME%/conf/tomcat.policy"
-Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat %3 %4 %5
%6 %7 %8 %9
goto cleanup
:stopServer
rem Stopping the Tomcat
Server
%_RUNJAVA% %TOMCAT_OPTS%
-Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat -stop %2
%3 %4 %5 %6 %7 %8 %9
goto cleanup
:runAnt
rem Run ANT in Tomcat's
Environment
set CP=%CP%;%TOMCAT_HOME%\lib\ant.jar
%_RUNJAVA% %ANT_OPTS% -Dant.home="%TOMCAT_HOME%"
-Dtomcat.home="%TOMCAT_HOME%" org.apache.tools.ant.Main %2 %3 %4 %5 %6
%7 %8 %9
goto cleanup
:runJspc
rem Run JSPC in Tomcat's
Environment
%_RUNJAVA% %JSPC_OPTS% -Dtomcat.home="%TOMCAT_HOME%"
org.apache.jasper.JspC %2 %3 %4 %5 %6 %7 %8 %9
goto cleanup
rem ----- Restore Environment Variables ---------------------------------------
:cleanup
set _LIBJARS=
set _SECSTARTJAVA=
set _STARTJAVA=
set _RUNJAVA=
set CLASSPATH=%_CLASSPATH%
set _CLASSPATH=
set TOMCAT_HOME=%_TOMCAT_HOME%
set _TOMCAT_HOME=
set CP=%_CP%
set _CP=
:finish
Sylvain PERROT wrote:
After trying to build (wihout success) cocoon 2 ... I came back to cocoon
1.8.2 ...
I followed the installation instruction ... and when I try to access to the
cocoon/samples/index.xml file ...
I got this answer :Publishing Engine could not be initialized.
java.lang.RuntimeException: Error creating
org.apache.cocoon.processor.dcp.DCPProcessor: class is not found
at org.apache.cocoon.framework.Manager.create(Manager.java:114)
at org.apache.cocoon.framework.Router.init(Router.java:80)
at org.apache.cocoon.framework.Manager.create(Manager.java:109)
at org.apache.cocoon.Engine.<init>(Engine.java:170)
at org.apache.cocoon.Engine.getInstance(Engine.java:224)
at org.apache.cocoon.Cocoon.init(Cocoon.java:157)
at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
at org.apache.tomcat.core.Handler.init(Handler.java:215)
at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at org.apache.tomcat.core.Handler.service(Handler.java:254)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:479)There is no errors in the Tomcat/logs directory ...
Do you have any idea which class file I need to run cocoon ?
Thanks
Sylvain
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>