This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Services and the fly likes Compile build.xml with Ant for web service on Weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Compile build.xml with Ant for web service on Weblogic" Watch "Compile build.xml with Ant for web service on Weblogic" New topic
Author

Compile build.xml with Ant for web service on Weblogic

sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 813

Hi Friends,

I have a web service with annotations, using javax.annotation.PostConstruct, and javax.annotation.PreDestroy.

I have a build.xml to create a EAR for this web service.

When I run the ant task, the build complete successfully but the .war file cannot be deployed on the WLS server. Taking a closer look, I see that the required files such as, webservices.xml, weblogic.xml, weblogic-webservices.xml, Provision.wsdl files are not generated.

Following is the build.xml file:



Can you please point out what else is to be done and where exactly am I going wrong in writing the build.xml file.

Let me know if some else information is required.

P.S : Cross Post: https://forums.oracle.com/forums/thread.jspa?threadID=2313460&stqc=true
sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 813

This is what I get when I run the ant task:

Buildfile: C:\JDeveloper\mywork\ProvisioningService_Test2\Provision\resource\build.xml

build-service:
[jwsc] JWS: processing module /com/fox/provision/webservice/endpoint/impl/ProvisionEndPointImpl
[jwsc] Parsing source files
[jwsc] Parsing source files
[jwsc] 1 JWS files being processed for module /com/.../provision/webservice/endpoint/impl/ProvisionEndPointImpl
[jwsc] [JAM] Warning: failed to resolve class org.apache.xmlbeans.XmlObject
[jwsc] [JAM] Warning: failed to resolve class com.bea.xml.XmlObject
[jwsc] [JAM] Warning: failed to resolve class javax.xml.rpc.holders.Holder
[jwsc] JWS: C:\..\...\..\...\code\ProvisioningService\src\com\...\provision\webservice\endpoint\impl\..EndPointImpl.java Validated.
[jwsc] Processing 1 JAX-WS web services...
[jwsc] warning: Specified AnnotationProcessorFactory, 'com.sun.istack.ws.AnnotationProcessorFactoryImpl', not found on search path.
warning: No annotation processors found but annotations present.
2 warnings
[jwsc] Compiling 2 source files to C:\DOCUME~1\....\LOCALS~1\Temp\_lsgijm
[jwsc] Building jar: C:\..\...\..\...\code\ProvisioningService\src\com\...\provision\webservice\deploy\ear_directory\com\fox\provision\webservice\endpoint\impl\...EndPointImpl.war
[jwsc] Created JWS deployment outputFile: C:\..\...\..\...\code\ProvisioningService\src\com\...\provision\webservice\deploy\ear_directory\....\...\provision\webservice\endpoint\impl\..EndPointImpl.war
[jwsc] [EarFile] Application File : C:\..\...\..\...\code\ProvisioningService\src\com\.....\provision\webservice\deploy\ear_directory\META-INF\application.xml
[AntUtil.deleteDir] Deleting directory C:\DOCUME~1\....\LOCALS~1\Temp\_lsgijm

BUILD SUCCESSFUL
Total time: 7 seconds

-----------

Due to some limitations, I edited the path in the build.xml files.

Please let me know what can be done. Thanks.

---------
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3775

Are any suggestions given here help?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 813

Thanks Vijitha,

The link is helpful to some extent. Actually my problem was a little different. I could not generate the correct war file to deploy the application.

Then, using JDeveloper, I deployed the application straight to the remote application server and the application worked fine.

By the way Vijitha, do we have a forum for Oracle Fusion Middleware and ADF?

Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3775

...do we have a forum for Oracle Fusion Middleware and ADF?

You may post in Oracle/OAS Forum which includes Oracle and related products.
sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 813

Thanks Vijitha
 
wood burning stoves
 
subject: Compile build.xml with Ant for web service on Weblogic
 
Similar Threads
Builded file using clientgen does not have my jar files
Problem in adding jar files to the building war file using ant
Problem in adding jar files to the building war file using ant
Exposing a java method as WebService
Builded file using clientgen does not have my jar files