How to do auto-deployment on weblogic 9.2

259 views
Skip to first unread message

Amit Jain

unread,
Dec 5, 2008, 12:22:29 AM12/5/08
to Java Web Application
Hi All,

I am using Weblogic9.2 server. I am developing server side code (DAOs,
Business Objects) I dont change the EJBs often but I do change the
Business Objects and DAOs mutiple times during development, and many a
times I have to restart the Weblogic server, whcih I dont like doing.

My problem is, that I want to auto-deploy my "CoreBO.jar" which
consists of code (DAOs, Business Objects) but I don't want to deploy
my complete appliaction/ all application modules.

So I wanted to set up hot deployment, which is called as auto-
deployment in Weblogic only for "CoreBO.jar"

Thanks in advance .
Amit Jain

Nisar Ahmad

unread,
Dec 9, 2008, 5:33:40 AM12/9/08
to javaw...@googlegroups.com
look at this.

I hope you will be benefited by this.

2008/12/5 Amit Jain <amitat...@gmail.com>

Amit Jain

unread,
Dec 11, 2008, 7:32:56 AM12/11/08
to Java Web Application
Hi,

Thanks for reply,

I followed step as given link in your earlier post but got exception
as below:

<Dec 11, 2008 5:33:08 PM IST> <Error> <Deployer> <BEA-149265> <Failure
occured in the execution of deployment request with I
D '1228996968910' for task '0'. Error is:
'weblogic.management.DeploymentException: J2EE:160177The application
at "C:\abc\mydomain\servers\myServer\stage\_appsdir_CoreBO_jar
\CoreBO.jar" 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.xm
l. WAR files require a WEB-INF/web.xml, and RARs require a META-INF/
ra.xml. A JMS deployment should be an XML file whose nam
e ends with "-jms.xml". A JDBC deployment should be an XML file whose
name ends with "-jdbc.xml". For other application type
s, please consult the WebLogic Server documentation.'
weblogic.management.DeploymentException: J2EE:160177The application at
"C:\abc\mydomain\servers\myServer\stage\_appsdir_CoreBO_jar
\CoreBO.jar" was not recognized as a valid application type. If this
is an EAR file, please ensur
e the META-INF/application.xml exists. EJB-JARs should have a META-INF/
ejb-jar.xml. WAR files require a WEB-INF/web.xml, and
RARs require a META-INF/ra.xml. A JMS deployment should be an XML file
whose name ends with "-jms.xml". A JDBC deployment s
hould be an XML file whose name ends with "-jdbc.xml". For other
application types, please consult the WebLogic Server docum
entation.
at weblogic.application.internal.DeploymentManagerImpl.createDeployment
(DeploymentManagerImpl.java:109)
at
weblogic.deploy.internal.targetserver.BasicDeployment.createDeployment
(BasicDeployment.java:146)
at
weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer
(ActivateOperation.ja
va:184)
at
weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare
(ActivateOperation.java:87)
at
weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare
(AbstractOperation.java:217)
Truncated. see log file for complete stacktrace

From above exception its clear that my "CoreBO.jar" is not deployed,
could you please suggest me to resolve exception.

Thanks in advance,

Amit Jain

On Dec 9, 3:33 pm, "Nisar Ahmad" <nisarj...@gmail.com> wrote:
> look at this.http://egeneration.beasys.com/wls/docs100/deployment/autodeploy.html
>
> I hope you will be benefited by this.
>
> 2008/12/5 Amit Jain <amitatgro...@gmail.com>
>
>
>
>
>
> > Hi All,
>
> > I am using Weblogic9.2 server. I am developing server side code (DAOs,
> > Business Objects) I dont change the EJBs often but I do change the
> > Business Objects and DAOs mutiple times during development, and many a
> > times I have to restart the Weblogic server, whcih I dont like doing.
>
> > My problem is, that I want to auto-deploy my "CoreBO.jar" which
> > consists of code (DAOs, Business Objects) but I don't want to deploy
> > my complete appliaction/ all application modules.
>
> > So I wanted to set up hot deployment, which is called as auto-
> > deployment in Weblogic only for "CoreBO.jar"
>
> > Thanks in advance .
> > Amit Jain- Hide quoted text -
>
> - Show quoted text -

Ravish

unread,
Dec 21, 2008, 5:35:06 AM12/21/08
to Java Web Application
Hi Amit,

Your understanding is correct, that "CoreBO.jar" is not deployed.
To resolve this exception I would like to know by which means are you
deploying the project like is it .war, .ear or .rar file etc.

Please have a look the following requirements :

1. If it is an EAR file, please ensure the META-INF/application.xml
exists.
2. EJB-JARs should have a META-INF/ejb-jar.xml.
3. WAR files require a WEB-INF/web.xml, and
4. RARs require a META-INF/ra.xml.

And remember a JMS deployment should be an XML file whose name ends
with "-jms.xml". Where as a JDBC deployment should be an XML file
whose name ends with "-jdbc.xml".


Regards,

Ravish Mody
http://orkutsharing.blogspot.com
Shares Everything About Orkut !
Reply all
Reply to author
Forward
0 new messages