Include jar in the war generated by jwsc
Hello,
How can i add jar's in the war archive generated by jwsc ?
Regards,
Fabrice
Weblogic 9.2 does not support zip need to add sepate task like below
<project name="webservices-complex" default="build-service">
<path id="dependencyfinder">
<pathelement location="C:/bea/weblogic92/server/lib/weblogic.jar"/>
</path>
<taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
<classpath refid="dependencyfinder"/>
</taskdef>
<target name="build-service">
<jwsc srcdir="src"
destdir="." keepGenerated="true" verbose="on" debug="true"
debuglevel="lines,vars,source"
listfiles="true" classpathref="dependencyfinder">
<classpath>
<pathelement path="${java.class.path}" />
<pathelement path="c:/CustInfo.jar" />
</classpath>
<jws file="ServiceConsumer.java" >
</jws>
</jwsc>
<zip destfile="ServiceConsumer.war" update="true">
<zipfileset dir="src" prefix="docs/user-guide"/>
<zipfileset dir="build" prefix="build"/>
<zipfileset dir="Webcontent/WEB-INF/lib" includes="CustInfo.jar" fullpath="WEB-INF/lib/CustInfo.jar"/>
</zip>
</target>
</project>
Similar Messages
-
How to include .xml on .war generated by jwsc?
Hello there!
When i build my web service i cannot be able to put in the war file my .xml files they are copy out of the war :__ I need those files because are for ibatis
This is my build.xml
<target name="build.WebService">
<jwsc
srcdir="${src.dir}/ActivacionBlackBerryWS"
destdir="${dest.dir}"
keepGenerated="yes" >
<module contextPath="test" name="testWS">
<jwsfileset srcdir="${src.dir}/testWS">
<include name="**/*.java" />
</jwsfileset>
</module>
</jwsc>
<copy todir="${dest.dir}">
<fileset dir="${src.dir}/testWS" excludes="**/*.java"/>
</copy>
</target>
i have 2 packages... 1 for web service and the other one with sqlMapConfig.xml and statements.xml
and the result is a .war with my WS but out of this files are the package with the .xml
what can i do??
thanx in advanceHi,
Try using the following to Update your WAR/EAR file...:
<taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask" />
<target name="build-target">
<jwsc srcdir="src" destdir="${ear-dir}" listfiles="true">
<jws file="TargetImpl.java" compiledWsdl="${cowDir}/target/Target_wsdl.jar" type="JAXWS"/>
</jwsc>
<font color=maroon>
<zip destfile="${ear-dir}/jws.war" update="true">
<zipfileset dir="src/examples/webservices/callback" prefix="wsdls">
<include name="Callback*.wsdl"/>
</zipfileset>
</zip>
</font>
</target>
For real demo of this <Zip> tag please refer to : http://weblogic-wonders.com/weblogic/2010/01/09/username-token-in-jaxws-webservice/
Thanks
Jay SenSharma
http://weblogic-wonders.com/weblogic/webservices/ (WebLogic Wonders Are Here) -
Include jars for compiling and exclude jars for war
Hello,
In the context of using ant to create a war, I have some doubts:
Actually to compile my web application codes, I put in classpath the following two jars as:
<pathelement location="${lib.dir}/${servlet-api.jar}"/>
<pathelement location="${lib.dir}/${jsp-api.jar}"/> without these two jars I would get compiling errors.
To create a war, I have to exclude these two jars:
<lib dir="${webapp.dir}/WEB-INF/lib">
<exclude name="servlet-api.jar"/>
<exclude name="jsp-api.jar"/>
</lib>If I kept these two jars in the war, JBOSS application server would complain of duplicate classes.
My approach works. But my question is:
Is it the best practice to include jars for compiling codes and exclude jars if the application servers already have them?
Best regards,
PengyouYes. That is the best practice.
In fact its the only practice to do it properly.
You are compiling against Interface only. Your code will work as long as that interface is implemented by the server, even if it does different things under the hood. This is what lets your web application work on whatever server you deploy it on - Jboss, Tomcat, Weblogic - it shouldn't matter as they all implement the same basic interfaces.
You could also expand that list to include common APIs which you know are available on your server if you don't want to bundle them with every web application.
JSTL jars are one potential example. -
Adding all the classes and external jars in webservice WAR using servicegen
Hi,
Can someone please tell me how do I include all the classes and my external jar files to the ear/war file that is created using servicegen. I don't see any option in servicegen tag where I can include my classes and jar files to the ear/war file. The war it creates only contains the web service implementation class but I want to all the classes in the service code and jars in the same war. Any ideas on how to do that instead of putting in the classpath.
here is the snippet of my build file
<servicegen
destEar="${deploy}/myservice.ear"
warName="myservice.war">
<service
javaClassComponents="com.ws.service.TestService"
targetNamespace="http://xmlns.test.com/tool/myservice"
serviceName="myservice"
serviceURI="/myservice"
style="document"
protocol="http"
expandMethods="True">
</service>
<classpath>
<pathelement path="${classes}"/>
<pathelement path="${lib}/*.jar"/>
<pathelement path="C:/bea/weblogic92/server/lib/webserviceclient.jar"/>
</classpath>
</servicegen>
..........................ThanksHi,
The work around I am using to overcome this problem is Unzipping th ear/war file created by servicegen task and including all the classes. Then creating the ear file again by creating a new ant target.
I know this is not a neater way, but this works for me. -
JAR in a WAR Classloading a .class from the WARs web-inf/class
A little backround on my environment:
I have a jar that contains some common functionality (common.jar) that is shared among all my web apps. There is a scheduler function in the JAR that queries the applications datasource for schedules to run. Each schedule contains a class that implements the interface ScheduleCommand and has an execute method. The ScheduleManager get the list of schedules from the db and uses a classloader to load the schedule command and call the execute method.
ScheduleCommand cmd = (ScheduleCommand) Class.forName(scheduleCommands.getClassName()).newInstance();
The issue:
I have some common schedule command in the common.jar like clean temp folder, monitor memory, etc. I also want to be able to include additional schedule commands in the WAR that are unique to that web app.
WAR
--web-inf
----classes
------CustomScheduleCommand.class
----lib
------common.jar
When I do this however the ScheduleManager in the common.jar is not able to find the CustomScheduleCommand.class in the WAR�s web-inf/classes. Do I need to use a different classloader or do I need to add a classpath to the manifest of the WAR?Hi Michael,
there are diffrent options to do this, depending on whats needs to be achieved.
a) Easiest way (but only possible, if no action has to go back to your template): Create an RRI-Jump-Target to your ABAP report
b) Also only possible when no additional interaction on your template has to take place: Create a bsp and call the bsp when clicking on the button. Advantage in comparison to a) you could get a new window with for example a sucess or error message
c) Use an own helpservice class. Now this as you have seen can get more complex, as interaction with your webtemplate can take place. In principal you need to create a class inherit from cl_rsr_www_help_window and overwrite the process_cmd method. Now you can paste your coding inside and you are finished (when you register the help service class to a web item).
Heike -
Unable to deploy the war file generated from jdeveloper to tomcat
Hi
I was able to deploy the war file after modification in the web.xml but unable to run the servlet application
Please Help
DolphyAfter going thru all the steps specified in online help to deploy the web application in Tomcat server.
I am getting the following error
first the webapps could not be deployed because of url pattern
<servlet-mapping>
<servlet-name>mypackage1.BIController1</servlet-name>
<url-pattern>mypackage1.BIController1</url-pattern>
</servlet-mapping>
which when i change to
<servlet-mapping>
<servlet-name>mypackage1.BIController1</servlet-name>
<url-pattern>\mypackage1\BIController1</url-pattern>
</servlet-mapping>
deploys the application
but i get the following errors in the tomcat log file
2004-05-03 10:34:12 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
2004-05-03 10:34:12 StandardContext[jsp-examples]ContextListener: contextInitialized()
2004-05-03 10:34:12 StandardContext[jsp-examples]SessionListener: contextInitialized()
2004-05-03 10:34:13 StandardContext[servlets-examples]ContextListener: contextInitialized()
2004-05-03 10:34:13 StandardContext[servlets-examples]SessionListener: contextInitialized()
2004-05-03 10:34:13 StandardContext[webapp1]Marking servlet uix as unavailable
2004-05-03 10:34:13 StandardContext[webapp1]Error loading WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
StandardClassLoader
delegate: true
repositories:
file:C:\tomcat\shared\classes\
----------> Parent Classloader:
StandardClassLoader
delegate: true
repositories:
file:C:\tomcat\common\classes\
file:C:\tomcat\common\endorsed\xercesImpl.jar
file:C:\tomcat\common\endorsed\xmlParserAPIs.jar
file:C:\tomcat\common\lib\ant.jar
file:C:\tomcat\common\lib\commons-collections.jar
file:C:\tomcat\common\lib\commons-dbcp-1.1.jar
file:C:\tomcat\common\lib\commons-el.jar
file:C:\tomcat\common\lib\commons-pool-1.1.jar
file:C:\tomcat\common\lib\jasper-compiler.jar
file:C:\tomcat\common\lib\jasper-runtime.jar
file:C:\tomcat\common\lib\jmx.jar
file:C:\tomcat\common\lib\jsp-api.jar
file:C:\tomcat\common\lib\naming-common.jar
file:C:\tomcat\common\lib\naming-factory.jar
file:C:\tomcat\common\lib\naming-java.jar
file:C:\tomcat\common\lib\naming-resources.jar
file:C:\tomcat\common\lib\servlet-api.jar
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@4afa9e
oracle.cabo.servlet.UIXServlet
java.lang.ClassNotFoundException: oracle.cabo.servlet.UIXServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1383)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:979)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
2004-05-03 10:34:13 StandardContext[webapp1]Servlet /webapp1 threw load() exception
javax.servlet.ServletException: Wrapper cannot find servlet class oracle.cabo.servlet.UIXServlet or a class it depends on
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:989)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
----- Root Cause -----
java.lang.ClassNotFoundException: oracle.cabo.servlet.UIXServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1383)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:979)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Thanks
Dolphy -
How To Access a jar file present outside the war file through a jnlp
Aoa
I m new to this forum
I m having problem with my jnlp file
i want to know is there any way to access a jar file through jnlp.The problem is that my jnlp file is present in the war file
and i want to know how to acess a jar file through this jnlp.The scenerio is as below
I m using ear file on jboss.Its hirerchy is as
-PAN-war.war
-launch.jnlp
-PAN-app-client.jar
my jnlp file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080/" href="PAN/launch.jnlp">
<information>
<title>PanEmirates</title>
<vendor>M Fazal Ur Rehman</vendor>
<description>PanEmirates</description>
<description kind="short">PanEmirates</description>
<homepage href=""/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+"/>
<jar href="PAN-app-client.jar" download="eager"/>
<jar href="lib/javafxrt.jar" main="true" download="eager" />
<jar href="lib/Filters.jar" download="eager"/>
<jar href="lib/javafx-netbeans-fxuserlib.jar" download="eager"/>
<jar href="lib/swing-layout-1.0.3.jar" download="eager"/>
</resources>
<application-desc main-class="net.java.javafx.FXShell">
<argument>pan.Main</argument>
</application-desc>
</jnlp>
when i run launch.jnlp file it says unable to download resource http://localhost:8080/PAN/PAN-app-client.jar
how to access this jar file
Any help or comment would be highly appreciated
Regards
M Fazal Ur RehmanExcellent question. I don't see any client-jar in your EAR file structure. So I am assuming you are writing a separate client application which will talk to the ejbs deployed as part of this EAR. You need to do the following:
Write another EAR file with the following structure:
ear:
META-INF/application.xml
util.jar
client.jar
client.jar should have a META-INF/MANIFEST.MF and that should contain Class-Path:util.jar and value for Main-Class attribute.
Now deploy this new ear to your application server and execute it using Application Client Container that comes with your app server.
If you don't want to write another EAR file, then bundle th client.jar in your original EAR file.
Points to note are:
you have to repackage util.jar again inside this ear file.
For portability reason, you should use Class-Path manifest entry in client.jar. Refer to http://java.sun.com/j2ee/verified/packaging.html and J2EE platform spec section #8.2.
Hope this helps,
Sahoo -
WLS 7.0 - util jars being accessed from the war file
Some of classes in the warfile (servlets) need access to some of the util jars in my ear file. I really don't want to put them in the war file/WEB-INF/lib directory and in the ear file. Is there any way to do this without putting them in the classpath.
Any info would be appreciated.
Thanks,
IanIan,
Examine the following link on packaging utility classes and the Weblogic classloader
architecture
This link should provide (hopefully :-) ) the answer to your question
http://e-docs.bea.com/wls/docs70/programming/classloading.html
Chuck Nelson
DRE
BEA Technical Support -
Revision: 3140
Author: [email protected]
Date: 2008-09-08 09:04:17 -0700 (Mon, 08 Sep 2008)
Log Message:
Modifying build.xml to include templates in the jar from the new location.
Modified Paths:
flex/sdk/trunk/modules/antTasks/build.xmlDon't be so impatient and don't multipost! I've deleted your other thread about the same topic.
-
The difference of jar files that were generated from wsdl
hello there:
I used maven's jaxws plugin to generate jar files from two wsdl links. The links are pretty much the same except for one line:
<wsdlsoap:address location="http://<env>.XXXXXX"the <env> indicate the environment is a prod or uat. Other than that, the wsdl is the same.
The question is, can the jars generated from respective wsdl be used interchangably? I did notice there a few bytes different from the resultant two jars, and the test shows they CAN'T be used interchangably.
Can anyone explain why?
Thanks,
JohnnyYou may use them interchangeably if the code that uses the classes in the jar(s) does not depend on the default address of the web service but instead always passes the URL during initialization of such stub classes.
-
Revision: 5267
Author: [email protected]
Date: 2009-03-12 11:17:14 -0700 (Thu, 12 Mar 2009)
Log Message:
Update 3.x branch to include browserServer.jar in the packaged qa sdk zip.
Modified Paths:
blazeds/branches/3.x/qa/apps/qa-regress/build.xmlI've been playing with this too.
What kills it for me is my inability to get intelfb running properly on my eee 900 (says the module is loaded but there is no /dev/fb/0 device). One suggestion is to use a vga= code instead of video=intelfb:[etc] in my /boot/grub/menu.lst . But that makes it impossible to have the 1024x600 resolution of the eee's screen, so I haven't even tried it.
Why intelfb? Because mplayer's directfb driver has tearing even with buffermode=triple and mplayer's -double tag enabled when using uvesafb. Maybe I am assuming too much that the intelfb would have the hardware acceleration hooks necessary to make it work?
The other thing that cripples it for me is the "stuck at 16 colors" nature of Linux console even when running a framebuffer with a 32-bit background. I've gotten a tip on changing those colors but it is obtuse at best. Very surprised that there hasn't been a 256 color (at least) framebuffer console developed yet. (Unless screen magically enables the extra colors?) dfbterm looks interesting but the last thing I want is windowed terminals when I am trying to use CLI.
Last edited by jceasless (2009-06-03 18:54:51) -
How can I add the requester name in the To: field of the email generated when a Smart Card certificate is issued on his behalf.
I want to address the possibility of someone (Enrollment Agent) issuing a Smart Card certificate on behalf of a user, assign a PIN and use it without the user's knowledge.
There doesn't seem to be a way in the registry to define a variable to be used in a manner similar to the TitleArg & TitleFormat way of using %1.
Jamal Saket OSFI CanadaHi,
Thank you for your question.
I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
Thank you for your understanding and support.
TechNet Subscriber Support
If you are
TechNet Subscription
user and have any feedback on our support quality, please send your feedback
here.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Can you help me , how to create the war file.
I am using the tomcat 5.0 server, i have book folder in webapp.
how i can create the war file? what is command?
help me
ramyausing jar command u can create a war file
jar -cmf myweb.war *.*<files to be included in war file>
regd,
ritu -
How to include .jars?
Hello,
I have been unable to find out how to include in the .ear file generated by wsgen the supporting .jar files that my Web Service EJB needs.
I thought this could be done with the "classpath" parameter in the wsgen tag in build.xml, but it doesn't seem to do anything.
Can someone please provide a hint?
Thanks,
PereHi Pete,
You mentioned the <wsgen> Ant task, so I'm assuming that you're using WLS 6.1
An automated way to do this, is to include a series of <exec> Ant tasks after
the <wsgen> one. These <exec> Ant tasks would call the jar.exe and look something
like this:
<exec
dir="."
executable="jar.exe"
failonerror="yes"
>
<arg line="xvf ${APPLICATIONS}/MyWS.ear myEJB.jar"/>
</exec>
<delete dir="myEJB-jar"/>
<mkdir dir="myEJB-jar"/>
<exec
dir="myEJB-jar"
executable="jar.exe"
failonerror="yes"
>
<arg line="xvf myEJB.jar"/>
</exec>
<copy todir="myEJB-jar">
<fileset dir=".">
<include name="jar1-used-by-EJB.jar"/>
<include name="jar2-used-by-EJB.jar"/>
</fileset>
</copy>
<copy todir="myEJB-jar/META-INF">
<fileset dir=".">
<include name="MANIFEST.MF"/>
</fileset>
</copy>
<jar jarfile="myEJB.jar" basedir="myEJB-jar" />
<exec
dir="."
executable="jar.exe"
failonerror="yes"
>
<arg line="uvf ${APPLICATIONS}/MyWS.ear myEJB.jar"/>
</exec>
I realize this seems like a lot of steps, but they are at least automated :-)
Note that the contents of the MANIFEST.MF that you copy in must look like this:
Manifest-Version: 1.0
Created-By: Ant 1.4
Class-path: jar1-used-by-EJB.jar jar2-used-by-EJB.jar
in order for the EJBs to find the newly included .jar files.
HTH,
Mike Wooten
Pere Torrodellas <[email protected]> wrote:
Hello,
I have been unable to find out how to include in the .ear file generated
by wsgen the supporting .jar files that my Web Service EJB needs.
I thought this could be done with the "classpath" parameter in the wsgen
tag in build.xml, but it doesn't seem to do anything.
Can someone please provide a hint?
Thanks,
Pere -
How to include jar files in WS assembling
HI, There:
I have a webservice project works well except I canot include lib files in WEB-INF. I need following dir in war files
WEB-INF
--classes/com.xyz.....
--lib/my.jar
I use following target in build.xml
<target name="webservice-setup" depends="setup,compile-webservice">
<echo message="-----> Assembling the webservice"/>
<oracle:assemble appName="${app.name}"
serviceName="${app.name}"
interfaceName="com.ivgn.protomineWS.service.ProtomineService"
className="com.ivgn.protomineWS.service.ProtomineServiceImpl"
input="${bld.webservice.dir}"
output="${out.dir}"
ear="${lib.dir}/${ear.name}.ear">
<classpath>
<pathelement location="${OC4J_HOME}/webservices/lib/wsa.jar"/>
</classpath>
</oracle:assemble>
</target>
where can i add the lib directory so that many jar files for this application can get into lib directory. Looks like this "assemble" command has no argument for "lib". The "input" argument only handle the classes files.
Thanks
TZhangThere are two way to do this.
1) you assemble the .ear file, expand it's content, make modification and re-package using jar command (plain ant style).
2) instead of using the -ear option, you can use the -war option. It will leave the content in is expanded form, and you can then do the packaging in your own way, after making modifications.
You may also want to take a look at the 'appendToExistingDDs' flag of the assemble command (see chapter 16 of the user's guide [1]).
appendToExistingDDs <true|false>
Determines whether entries for a new Web service will be appended to the existing
deployment descriptors or whether they will be overwritten. The deployment
descriptors that can be affected by this argument are oracle-webservices.xml,
web.xml, and webservices.xml.
Beware; this style of assembly is a little hard to use, as you cannot re-run the same target twice, without to restore the original files.
Hope this helps,
Eric
[1] http://download-west.oracle.com/otn_hosted_doc/ias/preview/web.1013/b14434.pdf
Maybe you are looking for
-
Cannot open file error message
Whenever I go to open a PDF file for university I cannot open it, it comes up with an error message of opening Adobe Acrobat and accepting the End user license agreement?
-
DMS Tab it's not visible in Project Management (PPM 5.0)
Hello Gurus; I have been active the SAP DMS option in: SPRO --> SAP Portfolio and Project Management --> Project Management --> Structure --> Define Project Types And configured the document settings: SPRO --> SAP Portfolio and Project Management -->
-
hi, alv interractive:first displayed basic list.now iam double click on vendor acc nubmer after that it displays the second seconday list.for this porpose which function module we can use?
-
HT204053 What is a DS vetting client
I was purchasing an app on the app store and I it prompted me to verify my payment information which then stated that my appleIDand payment information was incorrect. I reset my appleiID password. When I finished changing the password, it asked for
-
I'm sorry if this is in the wrong forum, but I didn't see a better/more relevant spot for it. Is there a way to download the Solaris 10 without having a SunSolve account? When I tried to download it I get redirected to a login/register page which req