ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milind Nirgun" <Nirg...@C-IV.org>
Subject RE: jsp precompile with weblogic5.1 and ant1.4
Date Wed, 14 Aug 2002 21:48:31 GMT
Ying,

> to make weblogic 5 classloader to load the compiled jsp classes.

I think this is more related to your weblogic classpath settings 

>   The result is weblogic still generate the java and class 
> files at run
> time although I put all the class files in the right place.
>   How to stop it?

Check your weblogic.properties file where it says
weblogic.httpd.register.*.jsp=.... 
There is an attribute keepgenerated which should be set to false.

For more info, take a look at http://www.weblogic.com/docs51/admindocs/properties.html#jsp

Hope that solves your problems.
-Milind



> -----Original Message-----
> From: Ying Wang [mailto:yingwang@hawaii.edu]
> Sent: Wednesday, August 14, 2002 9:32 AM
> To: Milind Nirgun
> Cc: Ant Users List
> Subject: RE: jsp precompile with weblogic5.1 and ant1.4
> 
> 
> Milind,
>   Thank you so much,
>   I know weblogic6 implement jsp1.1 as weblogic5.1 does. I am 
> not sure how
> to make weblogic 5 classloader to load the compiled jsp classes.
>   I compared the java files which generated by weblogic 
> container and java
> files which generated by ant. There is no big difference. ( 
> container use
> package name for :javax.http.HttpSession , java weblogic.jspc  use
> HttpSession)
>   The result is weblogic still generate the java and class 
> files at run
> time although I put all the class files in the right place.
>   How to stop it?
>   If it can only happen in weblogic6, I do not have to spend 
> so many time
> on it.  :(
> 
> Thanks,
> 
> Ying Wang
> 
> On Wed, 14 Aug 2002, Milind Nirgun wrote:
> 
> > Ying,
> >
> > >  <apply executable="java">
> >
> > Why use <apply..>? Why not <java..>?
> >
> > >  <fileset dir="${client}/web/fit" includes="**/*.jsp/**"/>
> >
> > I think the includes should be "**/*.jsp".
> > The following target works for me with Weblogic 6 and Ant 
> 1.4/1.5. You can try if it works for you with your local settings:
> >
> >   <target name="jspcompile" depends="setclasspaths" 
> if="jspc_classpath">
> >     <java classname="weblogic.jspc" fork="yes" 
> classpathref="wl_classpath">
> >       <arg value="-verbose" />
> >       <arg value="-depend" />
> >       <arg value="-deprecation" />
> >       <arg line="-d ${dir.home}\WEB-INF" />
> >       <arg line="-webapp ${dir.home}" />
> >       <arg line="-classpath ${jspc_classpath}" />
> >       <arg line="${jsp.files}" />
> >
> >     </java>
> >   </target>
> >
> > The depend argument makes weblogic.jspc compile only if the 
> jsp has been modified.
> >
> > The following ejbjar works for me in the same environment 
> and you can try that too.
> >  <target name="genEjb" depends="compile" >
> >     <ejbjar descriptordir="${dir.src}"
> > 	    srcdir="${dir.classes}"
> > 	    naming="basejarname"
> > 	    basejarname="${ejbname}"
> > 	    flatdestdir="true" >
> >       <include name="**/ejb-jar.xml" />
> >       <exclude name="**/*weblogic*.xml" />
> >       <weblogic destdir="${dir.dist}" newCMP="true" >
> > 	<classpath>
> > 	  <path refid="build_classpath" />
> > 	</classpath>
> > 	<wlclasspath>
> > 	  <path refid="build_classpath" />
> > 	</wlclasspath>
> >       </weblogic>
> >        <dtd publicId="-//Sun Microsystems, Inc.//DTD 
> Enterprise JavaBeans 1.1//EN"
> >           location="${dir.lib}/ejb-jar_1_1.dtd" />
> >        <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 
> 6.0.0 EJB//EN"
> >           location="${dir.lib}/weblogic-ejb-jar.dtd" />
> >     </ejbjar>
> >   </target>
> >
> >
> > -Milind
> >
> >
> >
> >
> > > -----Original Message-----
> > > From: Ying Wang [mailto:yingwang@hawaii.edu]
> > > Sent: Tuesday, August 13, 2002 10:15 PM
> > > To: Ant Users List
> > > Subject: jsp precompile with weblogic5.1 and ant1.4
> > >
> > >
> > > Hello Everyone,
> > >    The situation is I got serveral ways , but none of 
> them solve the
> > > problem:
> > >
> > >    1. I use weblogic.jspc (5.1) and ant 1.4 :
> > >    Source code :
> > >
> > > <target name="jspcompile" >
> > >  <apply executable="java">
> > >  <arg line="weblogic.jspc -compiler javac -g -d 
> ${client}/web/WEB-INF
> > > -docroot ${client}/web -classpath ${jspc-classpath} -verbose }"/>
> > >  <fileset dir="${client}/web/fit" includes="**/*.jsp/**"/>
> > >  </apply>
> > > </target>
> > >
> > >    This one does compile jsp pages and the geverated java
> > > files. But it
> > > can not check if the jsp have changed. How to make it check
> > > the uptodate
> > > for each jsp file? I use the uptodate, but I need to go
> > > through all the
> > > jsp. Then I have problem to use for each.
> > >
> > >    And the weblogic server still generate the java file. How to
> > > stop it?
> > >
> > >   2. I try to use ant1.5, but the ejbjar task won't work!!!
> > >      [ejbjar] Unable to load dependency analyzer:
> > > org.apache.tools.ant.util.depend.bcel.AncestorAnalyzer
> > >
> > >    Also the <wljspc> won't work too!!!
> > >    Source code:
> > > <target name="jspcompile3" >
> > >   <wljspc src="${client}/web/fit" dest="${client}/web/fit/WEB-INF"
> > > package="Authenticate.jsp" classpath="${jspc-classpath}"/>
> > > </target>
> > >
> > >   The error is:
> > >
> > >  [wljspc] The args attribute is deprecated. Please use nested arg
> > > elements.
> > >
> > >    And I read the document , that is what I am using
> > >
> > > Need help!!!!!!!!
> > >
> > > Thanks a lot,
> > > Ying Wang
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:ant-user-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <mailto:ant-user-help@jakarta.apache.org>
> > >
> > >
> >
> > --
> > To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> >
> >

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message