How to pre-compile jsp and deploy to tomcat
Hi All,
I wuld like to know how to pre-compile JSPs and deploy to tomcat. I am using ANT tool to build and deploy the war file.
Thanks in Advance.
Regards,
--Nagesh.
for Tomcat 5.0 (You'll need to edit to fit your needs)
<path id="jsp.classpath">
<!-- point classpath to directory containing jasper-compiler.jar and
jasper-runtime.jar -->
<fileset dir="C:\tomcat\common\lib">
<include name="**/*.jar"/>
</fileset>
<fileset dir="C:/tomcat/common/endorsed">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="jsp" >
<!--
The Ant JSPC task doesn't work with Tomcat 5.0
so in the meantime we need to define our own task.
-->
<taskdef name="jspc50" classname="org.apache.jasper.JspC">
<classpath>
<path refid="jsp.classpath"/>
</classpath>
</taskdef>
<jspc50 outputDir="${build.classes}"
package="jsp"
uriroot="${project.dir}/web/webApp"
webXmlFragment="c:/web.xml"
verbose="9"
validateXml="false">
</jspc50>
<javac srcdir="${build.classes}/jsp"
destdir="${build.classes}"
debug="true"
optimize="false"
includes="**/*.java"
source="1.4">
<classpath>
<path refid="classpath"/>
<path refid="jsp.classpath"/>
</classpath>
</javac>
</target> More information can be found here :
http://www.onjava.com/pub/a/onjava/excerpt/AntTDG_chap8/index1.html?page=last
Similar Messages
-
Does anyone know how to pre-compile JSP so as to get faster browsing response?
I know little about JSPs but from what I can remember, JSPs are compiled first time when they are being asked to be executed .Unless changes are made to those programs they would not be compiled, as a result of that, it would run faster. Correct me if I am wrong though
-
Pre-compiled JSPs when deploying an EAR under WebLogic 6.1 SP4
Hello,
We have sucessfully pre-compiled JSP pages when working with and
deploying WAR files (WebLogic 6.1 SP4, Windows).
However, we can't seem to make it work when deploying EAR files.
Examing the "secret" unpacked directories after deployment doesn't
seem to help.
If we extract the WAR from the EAR and deploy it, everything is perfect.
Any ideas? Anyone able to make this work? If so, could you share the
output of
jar -tf yourCoolEarFileThatWorks.ear
as well as the same for the embedded WAR file?
Thank you,
Mike LeoSome followup information.
We've changed the place where it looks for JSP classes using the
"workingDir" parameter in weblogic.xml.
And we also set "pageCheckSeconds" (also in weblogic.xml) to "-1".
Now, everything in the base directory comes up without being recompiled.
However, nothing in subfolders of the base directory is "picked up". Those
pages are still being compiled when they are accessed.
Any ideas welcome.
Mike Leo
On Tue, 05 Aug 2003 18:43:41 -0500, Michael Leo <[email protected]>
wrote:
Hello,
We have sucessfully pre-compiled JSP pages when working with and
deploying WAR files (WebLogic 6.1 SP4, Windows).
However, we can't seem to make it work when deploying EAR files.
Examing the "secret" unpacked directories after deployment doesn't
seem to help.
If we extract the WAR from the EAR and deploy it, everything is perfect.
Any ideas? Anyone able to make this work? If so, could you share the
output of
jar -tf yourCoolEarFileThatWorks.ear
as well as the same for the embedded WAR file?
Thank you,
Mike Leo -
Pre-compile JSPs before deploying
Hi All,
what is the best way to pre-compile my JSPs and then bundle them together into
a .war file, then deploying it ???
I have like 100 jsps that i wanted to precompile and wanted to package them together
into a abc.war file, which i can further deploy to my WLS6.1 server ?
I have another instance of WLS8.1 that i wanted to do the same thing ?
can somebody please advise me something and how to do this ?
This is on Production environment.
-steveSteve, you're correct, the output jsp .classes are insterted into the war
file if compilation is successful.
"steve" <[email protected]> wrote in message
news:404f7e99$[email protected]..
>
Hi Raja,
Thanks for your reply. does this ant task wlappc compiles the .war fileand then
repackage into the same .war file ?
am i correct ?
please advise .....thx, steve
"Raja" <[email protected]> wrote:
Both option are will work. I am using wlappc ant task to compile my war
file prior
to deployment.
<target name="appc">
<wlappc
source="C:\abc\abc.war"
/>
</target>
Coming to deployment you can either write ant task to deploy using
console.
Example
of ant task for deploying from a windows dev machine into remoteproduction
box.
Admin server need to be running for deploy to be successful.
<target name="sun-deploy">
<wldeploy action="deploy"
source="C:\projects\abc\abc.war"
name="myapp"
user="weblogic"
password="weblogic"
verbose="true"
adminurl="http://xyz:7001"
debug="true"
targets="myserver"
upload="true"
/>
</target>
"steve" <[email protected]> wrote:
Hi All,
what is the best way to pre-compile my JSPs and then bundle them
together
into
a .war file, then deploying it ???
I have like 100 jsps that i wanted to precompile and wanted to package
them together
into a abc.war file, which i can further deploy to my WLS6.1 server?
I have another instance of WLS8.1 that i wanted to do the same thing
can somebody please advise me something and how to do this ?
This is on Production environment.
-steve -
Pre-Compiling JSPs while deploying a .war file in OC4J instance
Hi,
Is there any way to inform the OC4J instance to pre-compile the jsps in a .war file, while deploying..
Thanks for your responses,
EshwarClick on the project.
Open the context menu (right mouse button).
Expand the General item in the left list.
Select the Deployment Profiles item.
Select the deployment profile you need from the right.
Follow the wizard.
--olaf -
How to create simple JSP and deploy to J2EE engine?
Hi,
I need to create simple JSP pages and deploy it to SAP J2EE engine.. what is the procedure?...I may later add some businness logic but not needed for now.
Please help
Thanks,
JaiGabrie,
Here are Simple steps,
In the NWDS
1) create J2EE -> Web Module Project (XYZ)
2) create/add your JSP pages to the project
3) Right click on your project root and click on 'Build Web Archive' from the context
3) create J2EE -> Enterprise Application project(EAR)
4) Right click on your Web Module Project root and click on 'Add to EAR Project' from the context, select the EAR you just created in step 3.
5)Right click on your EAR project root and click on 'Build WebApplication Archive' from the context
6)Expand the EAR project node, and right click on the *.ear file, click on 'Deploy to J2EE Engine'.
7)Enter your SDM password when prompted,
You can access you JSP at this url
http://server:port/xyz/a.jsp
- Dileep -
How does one set the option to pre-compile JSPs on deployment in WL 10.3?
Outside of manually creating and modifying weblogic.xml, that is.
There used to be a tool Weblogic Builder that gave a graphical interface to modify weblogic.xml. Has this been replaced in 10.3 or just thrown away?
Also, can I set the option at all in an app deployed as a war without exploding the war manually.
Thanks.
Edited by: joeb on Jan 29, 2009 5:26 PMYou might be able to do this with a deployment plan. If doing this requires adding an element, as opposed to simply modifying the value of an element, then it might not help.
It would be conceivable to add this capability as part of a build process, as you can use the "xmltask" Ant task library, to automatically modify the file. You'd also have to add in tasks that automatically exploded and reconstruct the WAR file. At least you wouldn't have to do this manually.
I doubt there's any way to change this in an already deployed app, without redeploying the app. -
Hi All,
Can anyone tell me, how to pre-compile jsp and deploy it in Tomcat and Websphere and also how stop the app server recompiling the JSP at runtime. Searched the net for but was not really that successful.Read the documentation that come along the application server. For Tomcat it's for example this: [http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html].
-
Pre-compiled JSPs getting re-compiled by the server
For our project we are using wlappc to pre-compile JSPs and generate EJB classes. We are using the split directory format, so this is what the task looks like -
<target name="appCompile" depends="init" >
<delete dir="${ear.dist}" />
<mkdir dir="${ear.dist}" />
<wlpackage srcdir="${ear.src}" destdir="${ear.build}"
toDir="${ear.dist}" />
<wlappc source="${ear.dist}" verbose="true" classpath="${classpath}" />
</target>
After this, we are using wldeploy to deploy the application to another server.
This is how the task looks like -
<target name="beadeploy" depends="init" >
<wldeploy action="deploy"
source="${src.dir}/dist/myapp.ear"
name="myApplication" remote="true"
user="${deploy.username}" password="${deploy.password}"
verbose="true" adminurl="t3://${deploy.host}:${deploy.port}"
upload="true"
debug="true" targets="${deploy.target}"/>
</target>
The problem that I am facing is that, even after re-compiling the JSPs, they get compiled again by the server when accessed for the first time !
We using Weblogic 8.1.2.0. Can you please provide a soplution for this ?Hi,
The following steps help you troubleshoot why you may be having problems with JSPs recompiling:
1. When invoking jspc, your classpath must contain the same release, service-pack, and any temporary patches as the servers you wish to deploy on. Otherwise, the Server will read the JSPs as being compiled on a different version of the WebLogic, and will recompile them all.
2. You should invoke jspc from the root directory of your open-directory exploded) WebApp or specify -webapp) and use the -d option to deploy the generated classes to the WEB-INF/classes directory. You can then archive these JSP classes into a JAR if you wish from the WEB-INF/classes directory.
3. The JSPs should then be deployed either individually to the WEB-INF/classes/jsp_servlet directory or in a JAR file under the WEB-INF/lib directory.
4. One other thing that could cause JSPs to be recompiled is if the timestamp of the class is different from that of the source.
Also, if your ant classpath is different from whatever WLS-related classpath entries you use to run WLS, this may cause problems, too.
-- Prasanna
Prasanna Yalam -
Hello
In the post of gadegaard in november 2002, there was a problem to au deploy pre-compiled JSP. Is this problem has been fix in the 9.0.4 OC4J version ?
If yes, is it sufficient to create a "_pages" directory in the war (the war is contained in an ear) and auto deploy it ? Because my pre-compiled JSP are not deployed.
Tanks in advance for your answer
EmmanuelleEmmanuelle:
There are two ways to use the precomiled JSP files.
Method one: You can just copy the generated JSP page implementation classes to the directory application-deployments/yourApp/yourWebApp/persistence/_pages. If the init-param "main_mode" of jsp servlet of your web app is reload, then these classes will be used without stopping the server. This is the fastest way in development.
Method two: You can packaged the generated JSP page implementation classes into a jar just like any other java class libraries. Then create your war with that jar inside WEB-INF/lib. Make sure the init-param "main_mode" of jsp servlet in your web.xml is justrun. Now you have a deployable war file. You can deploy the war file (within an ear file) to oc4j and access the JSP page.
Please tell me if either of thse methods works for you
Please note since oc4j 10.1.3, ojspc will package the generated classes into a jar under WEB-INF/lib if given an war or ear file. -
Hi all,
I struckup with a doubt as fallows
How to pre-compile a JSP to Servlet(.class file) bfore the first request ,so that the first response takes same time as later responses.Thanx Ram for ur response,
I know Tomcat is assembled with Jasper compiler.My actual doubt is I want to precompile the Jsp bfore the first request. Actually the compilation occurs at the time of first request.U said it is server specific ,can u plz s let me know the pre-compile option for WEBLOGIC Server. -
Hello all,
I have been trying to add following tags in weblogic.xml to precompile my all jsps at Deployment time, but it gives me error as follows. [I am pasting messages from the console....]
I am using WL express 7.0 and jdk1.3 that comes along with the server.
Here is my tag:
<jsp-descriptor>
<jsp-param>
<param-name>precompile</param-name>
<param-value>true</param-value>
</jsp-param>
</jsp-descriptor>
What is the wrong here ? Is there any special configuration in weblogic server that I am ignoring here ?
=======================================
<Nov 9, 2004 9:33:32 AM EST> <Debug> <HTTP> <101211> <ppdm:jsp Precompiling JSPs at startup with JSP config [JspConfig: verbose=true,package
Prefix=jsp_servlet,-compiler=javac,compileFlags=,workingDir=C:\bea\user_projects\icmgdomain\.\icmgone\.wlnotdelete\icmgone_ppdm_jsp,pageChec
kSeconds=1,superclass=weblogic.servlet.jsp.JspBase,keepgenerated=false,precompileContinue=false,compilerSupportsEncoding=true,encoding=null,
defaultfilename=index.jsp,compilerclass=null,noTryBlocks=false,debugEnabled=false,printNulls=true]>
log4j:WARN No appenders could be found for logger (org.apache.struts.util.MessageResourcesFactory).
log4j:WARN Please initialize the log4j system properly.
<Nov 9, 2004 9:33:52 AM EST> <Error> <Deployer> <149233> <Unexpected error was encountered during the deployment process.>
<Nov 9, 2004 9:33:52 AM EST> <Error> <Deployer> <149201> <The Slave Deployer failed to complete the deployment task with id 11 for the appli
cation ppdm.
java.lang.ExceptionInInitializerError: java.lang.NullPointerException
at org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:577)
at org.apache.struts.taglib.html.BaseTag.<clinit>(BaseTag.java:94)
at java.lang.Class.forName0(Native Method)And make sure you don't have any other patches installed!
The generated servlet specifically checks to make sure that the servlet is running
on the same EXACT setup (service pack, patches, etc.) that was used to generate
it from the original JSP.
Tim
"Eric Ma" <[email protected]> wrote:
>
>Upgrade to WebLogic 6.1 SP3.
>
>Eric Ma
>
>Charley Chu <[email protected]> wrote:
>>Did you figure out how to do it?
>>
>>I use weblogic.jspc in the Ant script to compile all my JSP and target
>>the output to the WEB-INF\classes directory. Package the app into war
>>and ear. But the server still generates the class for jsp when the jsp
>>page is accessed on the first time.
>>
>>I could use deployment descriptor in weblogic.xml to pre-compile jsp
>>when the server starts but I'd rather do it in Ant script.
>>
>>Any hint?
>>
>>Thanks!
>
-
How to pre-compile JSF pages?
Hi,
I am new to JSF and would appriciate if any one can help me find out how to pre-compile JSF pages?
Thanks in advance
satsdnThe same way you pre-compile JSP pages: Set it up in your faces-config.xml file.
Here's how I do it:
<servlet>
<servlet-name>AcctID</servlet-name>
<display-name>AcctID</display-name>
<jsp-file>/AcctID.jsp</jsp-file>
<load-on-startup>-1</load-on-startup>
</servlet>Put one of these tags for each JSP you want to pre-compile. The -1 load-on-startup value is important.
CowKing -
Problem with pre-compiling jsp's
hi,
we have an .ear running on wls 6.0 sp2.
Our app has a web component(part of the .ear) as well which has tld's & jsp.We
are following the struts framework.
We configured the <jsp-descriptor> element in the weblogic.xml file to pre-compile
the jsp's..but the server complains of the following
any suggestions would be appreciated
==================================================================================================================================
<Jan 9, 2002 4:00:06 PM EST> <Error> <HTTP> <[WebAppServletContext(3001228,ppp)]
failure pre-compiling JSP's
java.lang.NullPointerException
at weblogic.servlet.jsp.Jsp2Java.makeReader(Jsp2Java.java:232)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:112)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:253)
at weblogic.servlet.jsp.Precompiler.compileOne(Precompiler.java:124)
at weblogic.servlet.jsp.Precompiler.compile(Precompiler.java:44)
at weblogic.servlet.internal.WebAppServletContext.precompileJSPs(WebAppServletContext.java:2003)
at weblogic.servlet.internal.dd.DescriptorLoader.initFromWebApp(DescriptorLoader.java:742)
at weblogic.servlet.internal.dd.DescriptorLoader.createServletContext(DescriptorLoader.java:359)
at weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:467)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:133)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:327)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:143)
at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy44.addWebDeployment(Unknown Source)
at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1012)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:313)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:277)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:232)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:192)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy41.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2299)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:240)
at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:122)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy33.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:435)
at weblogic.management.Admin.startApplicationManager(Admin.java:1033)
at weblogic.management.Admin.finish(Admin.java:493)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
at weblogic.Server.main(Server.java:35)
>
<Jan 9, 2002 4:00:06 PM EST> <Debug> <HTTP> <Exception thrown while loading ppp:
weblogic.utils.NestedException: failure pre-compiling JSP's - with nested exception:
[java.lang.NullPointerException]>
<Jan 9, 2002 4:00:06 PM EST> <Error> <J2EE> <Error deploying application ppp:
Could not load ppp>
<Jan 9, 2002 4:00:06 PM EST> <Info> <HTTP> <[HTTP myserver] Loading web app: wl_management_internal2>
<Jan 9, 2002 4:00:06 PM EST> <Info> <HTTP> <[HTTP myserver] Loading wl_management_internal2
from WAR file: C:\engr\project\ppp\.\config\Synchronoss\applications\.wl_temp_do_not_delete\wl_local_comp45831.war>
<Jan 9, 2002 4:00:06 PM EST> <Info> <HTTP> <[Default WebApp] extracting classfiles
to C:\engr\project\ppp\.\config\Synchronoss\applications\.wl_temp_do_not_delete\WEB-INF\_tmp_war_myserver_myserver_wl_management_internal2:>
<Jan 9, 2002 4:00:06 PM EST> <Info> <HTTP> <[Default WebApp] extracted classfiles
successfully...>
<Jan 9, 2002 4:00:06 PM EST> <Info> <HTTP> <[WebAppServletContext(6559849,wl_management_internal2)]
registering JSPServlet with initArgs '[JspConfig: verbose=true,packagePrefix=jsp_servlet,-compiler=javac,compileFlags=,workingDir=C:\engr\project\ppp\.\config\Synchronoss\applications\.wl_temp_do_not_delete\WEB-INF\_tmp_war_myserver_myserver_wl_management_internal2,pageCheckSeconds=1,superclass=null,keepgenerated=false,encoding=null,defaultfilename=index.jsp,noTryBlocks=false]'>
<Jan 9, 2002 4:00:06 PM EST> <Info> <HTTP> <[WebAppServletContext(6559849,wl_management_internal2)]
registering classpath servlet with initArgs 'null'>
<Jan 9, 2002 4:00:06 PM EST> <Info> <HTTP> <[WebAppServletContext(6559849,wl_management_internal2)]
registering getior servlet with initArgs 'null'>
<Jan 9, 2002 4:00:06 PM EST> <Info> <J2EE> <Deployed : wl_management_internal2>
<Jan 9, 2002 4:00:06 PM EST> <Info> <J2EE> <Deployed MailSession named com.bea.wlpi.MailSession>
<Jan 9, 2002 4:00:06 PM EST> <Info> <HTTP> <Initializing WEB server myserver>
<Jan 9, 2002 4:00:06 PM EST> <Info> <HTTP> <[HTTP myserver] Loading web app: DefaultWebApp_myserver>
<Jan 9, 2002 4:00:06 PM EST> <Info> <HTTP> <[HTTP myserver] Loading DefaultWebApp_myserver
from directory: .\config\Synchronoss\applications\DefaultWebApp_myserver>
<Jan 9, 2002 4:00:06 PM EST> <Info> <HTTP> <[WebAppServletContext(4157813,DefaultWebApp_myserver)]
registering JSPServlet with initArgs '[JspConfig: verbose=true,packagePrefix=jsp_servlet,-compiler=javac,compileFlags=,workingDir=C:\engr\project\ppp\.\config\Synchronoss\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver,pageCheckSeconds=1,superclass=null,keepgenerated=false,encoding=null,defaultfilename=index.jsp,noTryBlocks=false]'>
<Jan 9, 2002 4:00:06 PM EST> <Info> <HTTP> <[WebAppServletContext(4157813,DefaultWebApp_myserver)]
registering classpath servlet with initArgs 'null'>
<Jan 9, 2002 4:00:06 PM EST> <Info> <HTTP> <[WebAppServletContext(4157813,DefaultWebApp_myserver)]
registering getior servlet with initArgs 'null'>
[att1.html]
-
Need ant script to compile, package, and deploy to Oracle AS 10.3.1
I have a test app with ADF faces/jsf for front-end and EJB 3.0 Session Facade/Entity beans for back-end. The project structure/layout is similar to the SRDEMO app in JDeveloper. I was able to compile, package, and deploy within JDeveloper 10g to Oracle AS 10g successfully. Is there a sample ant script to compile, package, and deploy to Oracle AS 10g that I can run from command line? The build.xml that came with SRDEMO only do the compilation, not packaging and deployment. I was able to modify the SRDEMO's build.xml to compile my test app though. I still need the script to package and deploy it.
Thanks,Hi,
How are you referring to the class path. I have created my custom build file and I refer like this.
<path id="classpath">
<pathelement location="${oracle.home}/lib/aia.jar"/>
<pathelement location="${oracle.common.home}/modules/org.apache.commons.logging_1.0.4.jar"/>
</path> oracle.home is the location where my aia.jar resides.
In the compile-classes target I have
<!--Target for Class path details -->
<target name="compile-classes">
<mkdir dir="${sca-inf.classes.dir}"/>
<javac destdir="${sca-inf.classes.dir}" classpathref="classpath"
debug="on" nowarn="${javac.nowarn}"
deprecation="${javac.deprecation}" encoding="Cp1252"
source="1.6" target="1.6">
<src path="${src.dir}"/>
</javac>
</target> Regards,
Neeraj Sehgal
Maybe you are looking for
-
Help with Flash AS 2.0 Buttons
Hi, I really need some help with this file, I m fairly inexperience in action script and have great difficulty getting this to work. what happens is when you click on the Performance button on the left, the Learn more buttons below the gloves on the
-
Pass a datarow as input parameter in a stored procedure
Hi everyone! I wonder if anyone know how to pass a datarow (better if tipized like "tablenameRow") as input parameter for a stored procedure. links or suggestions are welcome! (i'm newbie in .net programming, so if you can post some code i'll be real
-
I'm creating an instance in this way: var newhouse:House = new House(); But I need to create fourty of these objects named: "newhouse1","newhouse2",...,"newhouse40" How can I name the var dynamicly, since the syntax won't allow brackets
-
How to Web enabled my forms?
Hi, Now i am working in two tier architech. I want to go for 3 tier. My database server --- Oracle 9i (Separate Sever,Linux) Forms and Reports execution files are kept into Separate server(Application,linux) Client side i am installing Runtime enviro
-
Catalyst Express 500 Series WS-CE500-24PC PoE
Inline power (PoE) Can some one confirm PoE Spec's and a little confused reading the spe'c the spec say ●All 24 PoE ports on the Cisco Catalyst Express 500-24PC can supply up to 15.4W (IEEE 802.3af standard maximum) of power over Category 5 cable, fo