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

No, 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

Similar Messages

  • Problem with Ant Script while deploying a BPEL Process

    Hi all,
    Im making use of Ant script to Deploy a BPEL process ...the bpel process simply invokes the credit rating service and returns the credit rating..credit rating service and the whole BPEL
    process are deployed in the default domain...now i made a new domain and making using of Ant scripts to deploy it to this Domain in the same local server ...i followed the steps
    from this blog http://blogs.oracle.com/rammenon/2007/07/deploying_bpel_process_to_mult.html now my problem is even though i mention a different Domain Name in
    ant- orabpel_dev.properties its always getting deployed to Default domain........can anyone Plzzz help me.
    Edited by: 0racler on Aug 15, 2009 12:09 PM

    in build.properties of the project -
    uncomment (remove the #) and change to the new domain
    # Change below if deploying in domain other than "default"
    #domain = default
    when you run deployProcess target - you should see which domain is used - based on the above variable.
    cheers

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

    Have 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

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

  • Problem using ant 1.6.2 scripts for weblogic 8.1

    hai,
    i downloaded ant 1.6.2 and started writting ant scripts. these ran fine when i am doing jobs related to websphere application server but they are failing when i am running the same targets in weblogic.
    i know that this problem is mainly due to the old version of inbuilt ant provided by the weblogic.
    i use import,input,condition tasks in my code and when ever run the ant scripts in weblogic its saying that these targets can not be found.
    i am in great need for help, any one please help me how to make these newer version of ant scripts to work in weblogic.i have no choice but to use these tasks as the design requires using them.
    i will be greatly indebted to the replier as i am wasting lot of time for this.

    Hello,
    I could not find an easy way to get the wls version of ant to start using the tasks you mention from ant 1.6.2.
    I tried defining the tasks using taskdef and also adding them to wls ant.jar and updating the deafult.properties file but the ant complained about unexpected elements in the build.xml file where I added the new tags (e.g import)
    If your really up against it you can try adding wls tasks to ant 1.6.2, they are listed here:
    http://e-docs.bea.com/wls/docs81/toolstable/ToolsTable.html#1009580
    Although I could not located exactly which jar they are in. Good luck.
    Cheers
    Hussein Badakhchani
    www.orbism.com

  • Starting tomcat from a shell script

    Hello-
    I want to start Tomcat from a shell script that is called by an application on a web page. Problem is, the app that calls the script runs as user nobody.
    I'm a permissions noob, so any suggestions as to how I could get this working are appreciated.
    Will

    Tomcat should be running if you intend to use it as a service.
    You don't want people to be able to start (or.. stop !) services on your server from a web page... That would present a gaping security hole.

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

  • Cannot Start Service Bus Domain from ANT script

    Hi,
    I am preparing a script which buils service bus domain using wlst script and then makes a jar file of the newly build domain and transfer it to the target location where it need to run.
    Once the jar file is in target location is jar is expanded in a folder.
    The above mentioned process if working fine. If i try to start the domain from that location either by double clicking startWebLogic.cmd or from dos prompt it does start the domain wihtout any error.
    However if i try to start the domain from with the same ANT script either using <wlserver> or <java classname="weblogic.WLST"> using startServer ('AdminServer','mydomainname','weblogic','weblogic','t3://localhost:7001') the domain startup does start but failes with same weblogic.management.deployment exception.
    complaining about all alsb specific applications error i.e.
    java.lang.ClassNotFoundException: com.bea.wli.sb.init.MarkerAppListener/com.bea.wli.sb.init.FrameworkStarter ..... under weblogic.management.deloymentexception.
    had anyone manager to start domain like this? any help?
    thanks
    salman

    I faced a similar issue when all ALSB specific applications were failing with ClassNot Found error when the managed servers were started using node manager. This was fixed by setting up the right Server Classpath for the WLS server.
    The issue was fixed after setting up the CLASSPATH to use when starting up the server as below, where E:/APPS/STAGE/OSB103 is the BEA_HOME
    E:\APPS\STAGE\OSB103\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_cie670\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_alsb1031\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\JROCKI~1\lib\tools.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\weblogic_sp.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\weblogic.jar;E:\APPS\STAGE\OSB103\modules\features\weblogic.server.modules_10.3.0.0.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\webservices.jar;E:\APPS\STAGE\OSB103\modules\ORGAPA~1.5/lib/ant-all.jar;E:\APPS\STAGE\OSB103\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\features\osb.server.modules_10.3.1.0.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\flow\sb-flow.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\com.bea.core.jaxen_1.0.1.0_1-1-1.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\version.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\alsb.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-ant.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-common.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-core.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-dameon.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\classes;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\com.bea.core.apache.commons.logging_1.1.0.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\jca-binding-api.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\bpm-infra.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\E:\APPS\STAGE\OSB103\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_cie670\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_alsb1031\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\JROCKI~1\lib\tools.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\weblogic_sp.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\weblogic.jar;E:\APPS\STAGE\OSB103\modules\features\weblogic.server.modules_10.3.0.0.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\webservices.jar;E:\APPS\STAGE\OSB103\modules\ORGAPA~1.5/lib/ant-all.jar;E:\APPS\STAGE\OSB103\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\features\osb.server.modules_10.3.1.0.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\flow\sb-flow.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\com.bea.core.jaxen_1.0.1.0_1-1-1.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\version.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\alsb.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-ant.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-common.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-core.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-dameon.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\classes;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\com.bea.core.apache.commons.logging_1.1.0.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\jca-binding-api.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\bpm-infra.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\log4j_1.2.8.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\xmlparserv2.jar;WL_HOME\server\ext\jdbc\oracle\orai18n.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\xqrl.jar;jca\log4j_1.2.8.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\xmlparserv2.jar;WL_HOME\server\ext\jdbc\oracle\orai18n.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\xqrl.jar;
    -Atheek

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

    Hi,
    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)

  • Strange Problem while deploying BPEL processes by ANT Script.

    Hi,
    Ant script is working fine in Dev environment but is failing in the other environment. Somehow the BPEL server is not able to pick the latest deployed process , due to this the dependent BPEL processes are failing. If we restart the server , it moves forward and then fails at the point where it couldn’t find reference to the processes deployed after restart. Restarting the server at every failed interval will deploy all the BPEL processes which is not the solution.
    example : we have BPEL Processes say A, B, C, D and E. A,B are independent processes C is dependent on A, D is independent and E is dependent on D. So I have Ant script to deploy in A,B,C,D,E order. Now I run the Ant Script: It deploys A,B processes and Fails at C saying it couldn't find the process A.wsdl(But A is deployed). So if i restart now it recognizes A and B are deployed so C is also deployed succesfully it also deploys D as it is Independent but fails at E. If i restart the server E is also deployed.
    The Environment is clustered.
    Any suggestion to make my Ant script to run at a go will be highly appreciated
    Thanks
    Krishna
    Edited by: KrishnaBhaskarla on Oct 30, 2008 5:22 PM

    Krishna,
    Could we see your ant script? If you are using oc4j andmin_client.jar, there is a -redeploy command which may prove helpful. You might redeploy AB, then CD, then E.
    -Mike

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

    Yes, 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 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 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.

  • Build problem with weblogic exported ANT scripts

    Hi,
    Im getting a null pointer exception while parsing the EAR projects build.xml at line
    <mdimport workspace="${workspace}" pjdir="${project.dir}" echo="${echo.metadata}">
    exception:
    BUILD FAILED
    /apps/opt/ccm/build_mgr/VSRMS,int/VSRMS/src/RMSWorkspace/rmsClaims/build.xml:78: java.lang.NullPointerException
    at org.apache.tools.ant.Task.perform(Task.java:373)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: java.lang.NullPointerException
    at java.io.FileInputStream.<init>(FileInputStream.java:103)
    at com.bea.workshop.common.util.DomUtil.doc(DomUtil.java:73)
    at com.bea.workshop.common.util.DomUtil.root(DomUtil.java:118)
    at com.bea.workshop.cmdline.antlib.eclipse.wtp.WtpUtil.createVirtualFileSystem(WtpUtil.java:63)
    at com.bea.workshop.cmdline.antlib.eclipse.wtp.WtpEarLibrariesContainerResolver.getManifestFile(WtpEarLibrariesContainerResolver.java:115)
    at com.bea.workshop.cmdline.antlib.eclipse.wtp.WtpEarLibrariesContainerResolver.resolve(WtpEarLibrariesContainerResolver.java:40)
    at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.resolve(JavaImportParticipant.java:383)
    at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.getRawClasspath(JavaImportParticipant.java:257)
    at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.getRawClasspath(JavaImportParticipant.java:186)
    at com.bea.workshop.cmdline.antlib.eclipse.java.ClasspathProjectReferencesProvider.getReferencedProjects(ClasspathProjectReferencesProvider.java:23)
    at com.bea.workshop.cmdline.antlib.eclipse.ProjectReferencesUtil.readDependencyInfo(ProjectReferencesUtil.java:201)
    at com.bea.workshop.cmdline.antlib.eclipse.ProjectReferencesUtil.readDependencyInfo(ProjectReferencesUtil.java:215)
    at com.bea.workshop.cmdline.antlib.eclipse.ProjectReferencesUtil.getReferencedProjects(ProjectReferencesUtil.java:67)
    at com.bea.workshop.cmdline.antlib.eclipse.wtp.EarProjectImportParticipant.execute(EarProjectImportParticipant.java:33)
    at com.bea.workshop.cmdline.antlib.eclipse.ImportProjectMetadataTask.execute(ImportProjectMetadataTask.java:149)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    ... 10 more
    All the environment paths are set. Running the commEnv.sh before compiling the proj.
    Any help much appreciated.

    chk this
    Re: build errors using Ant
    1. If you are working from the user_projects directory, add the following to the properties section of the build xml "<property name="weblogic.jar.classpath" value="../../../../wlserver_10.3/server/lib"/>". Other wise set the value parameter to the full directory path of the wlserver_10.3 server lib directory.
    2. Within each taskdef element, add the following child element
    <classpath>
    <path id="weblogic.classpath" >
    <pathelement path="WEBLOGIC_HOME"/>
    <fileset dir="${weblogic.jar.classpath}">
    <include name="weblogic.jar"/>
    </fileset>
    </path>
    </classpath>
    3. Save and run ant task from your project directory.

Maybe you are looking for

  • Problem installing ONLY Encore CS6 alongside CC

    With the new 2014 CC apps alongside the original CC apps, I decided I finally wanted to purge my CS6 collection.  However, I still want and use Encore from time to time. I used first the "uninstall" option to remove ALL of my CS6 apps - including Enc

  • Creative Cloud App Screen Download error

    I continue to get the exclamation point in a triangle and it asks me to uninstall and then download it again. Needless to say I've don't his about five times and I keep getting the same error. PLEASE HELP!!

  • App not showing on the iphone App Store

    Hi all, We just released ou iOS app on the App Sore from the state "Pending Developer Release" about 6 hours ago. Its version 2 of an app that was only available on iPad, but this new version is built fo both iPad and iPhone. The App Store on iPad ha

  • Mac mini slowdown when downloading

    I have a brand new Mac Mini Core i5 2.3 GHz with ML 10.8.1 installed and it seems like everytime I have a few fullscreen windows open and I download something the system slows to a crawl!  Anyway else experience this and how did you fix it? Thanks!

  • How do I get non-pixelated quality for imported image?

    I want to import a high quality image from Photoshop into Final Cut Express 4.0 and be able to watch the clip on fullscreen without loosing too much quality. The quality decreases to a very pixelated version of my image and does not look good at all.