Hi Guys,

     I am not sure if we still have this problem. I faced the same today
and looked for a reasonable answer. I was not able to find it on the
list. So I trie it on my own and was able to fix it. I tried to get the
path separator from the JVM and use the pathconvert element to convert
weblogic classpath into a property. Please forgive me, if I am just
repeating the solution. Here is my startweblogic target. With out this,
I had to change the path separator manually in OS-specific XML files.

    Please let me know if there is a better solution.

        <target name="start_weblogic_51">
        <!-- Prepare the weblogic classpath and take it into a
property-->
        <path id="weblogic.class.path">
            <pathelement path="${My project specific jars}"/>
            <pathelement
path="${weblogic.home}/lib/weblogic510sp9.jar"/>
            <pathelement path="${weblogic.home}/license"/>
            <pathelement path="${weblogic.home}/classes"/>
            <pathelement path="${weblogic.home}/lib/weblogicaux.jar"/>
            <pathelement path="${My oracle driver}"/>
        </path>

        <pathconvert pathsep="${path.separator}"
property="weblogic.class.path.string" refid="weblogic.class.path"/>

        <java classname="weblogic.Server" fork="yes">
            
            <classpath>
                <pathelement
location="${weblogic.home}/lib/weblogic510sp9boot.jar"/>
                <pathelement location="${weblogic.home}/classes/boot"/>
            </classpath>

            <jvmarg value="-ms64m"/>
            <jvmarg value="-mx64m"/>
            <jvmarg
value="-Dweblogic.class.path=${weblogic.class.path.string}"/>
            <jvmarg value="-Dweblogic.system.home=${weblogic.home}"/>
            <jvmarg value="-Dsmartops.home=${project.home}/web"/>
            <jvmarg value="-Djava.security.manager"/>
            <jvmarg
value="-Djava.security.policy==${weblogic.home}/weblogic.policy"/>

        </java>

    </target>



> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: 19 December 2001 02:38
> > To: [EMAIL PROTECTED]
> > Subject: Weblogic5.1 Sample Problem
> > 
> > Hello,
> > 
> >      I am a new user of cactus and I'm trying to get the sample
> program to
> > work on my installation of weblogic 5.1 sp10 using cactus, ant and
> junit.
> > When I set up nearly everything and type "ant tests_all" from the
> command
> > line on a linux machine I get a ClassNotFoundException at target
> > start_weblogic_51: Can't find weblogic.t3.srvr.T3Srvr.
> > 
> > But if I add the $WEBLOGIC_HOME/classes directory, which contains
this
> > class, to the classpath in build-tests-weblogic-51.xml, I get a
> different
> > error:
> > 
> > "Trying to start the server dynamically, specifying
> weblogic.class.path,
> > but
> > regular (non-boot) server classes found in Java -classpath"
> > 
> > Has anyone come across this problem?   Or can anyone help me out
with
> > this?
> > Should I try something else?
> > 
> > Thanks in advance for any help given.
> > 
> > Scott Bromstead
> > Information Systems
> > Business Direct, Wells Fargo Bank
> > 525 Market Street, 16th Floor
> > San Francisco, CA 94105
> > 415-222-3184

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to