Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within BEA/Weblogic
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
BEA/Weblogic
deployment of WAR file from ANT fails
Vicenç Aleix
Greenhorn
Posts: 4
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have a war file that I can deploy just fine from the WebLogic console.
When I use
ANT
to deploy it I get an error.
ANT:
<taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" classpath="${weblogic.home}/server/lib/weblogic.jar" /> <target name="deploy"> <wldeploy action="deploy" verbose="true" debug="true" remote="false" name="${warname}" upload="true" source="${dist}" user="${weblogic.user}" password="${weblogic.password}" adminurl="t3://${weblogic.server}:${weblogic.port}" targets="${weblogic.target}" /> </target>
The error:
[wldeploy] [BasicOperation.execute():423] : Initiating deploy operation for app, smp.war, on targets: [wldeploy] [BasicOperation.execute():425] : AdminServer [wldeploy] Task 2 initiated: [Deployer:149026]deploy application smp.war on AdminServer. [wldeploy] dumping Exception stack [wldeploy] Task 2 failed: [Deployer:149026]deploy application smp.war on AdminServer. [wldeploy] Target state: deploy failed on Server AdminServer [wldeploy] weblogic.management.DeploymentException: [J2EE:160177]The application at "C:\bea\user_projects\domains\base_domain\servers\AdminServer\upload\smp.war\app\dist" was not recognized as a valid application type. If this is an EAR file, please ensure the META-INF/application.xml exists. EJB-JARs should have a META-INF/ejb-jar.xml or corresponding annotations exist. If this is an exploded WAR, the name of directory must be end with ".war". RARs require a META-INF/ra.xml. A JMS deployment should be an XML file whose name ends with "-jms.xml". A JDBC deployment should be an XML file whose name ends with "-jdbc.xml". For other application types, please consult the WebLogic Server documentation.
In the upload folder of the server I see this structure
smp.war folder app folder dist folder war folder WEB-INF folder smp.war file
I am not sure where is that structure coming from....
However, when I deploy it from a war folder as an expanded WAR (source="${dist}/war") it works fine.
Thank you!
German Gonzalez-Morris
Ranch Hand
Posts: 378
2
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I remember that wldeploy cannot deploy war files. You need to package it into an ear file.
http://devwebcl.blogspot.com/
They worship nothing. They say it's because nothing lasts forever. Like this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
unable to depoly ear file in weblogic8
WebLogic Deployment Issue
Problem running ant script chapter 1 of ejb 3 in action with weblogic 10
Struts2:NoClassDefFoundError for pdf parsing using itext
WLS - wldeploy
More...