Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
3eclipseusers
Post subject: Hot Deploy on weblogic  PostPosted: Mar 03, 2010 - 08:04 PM



Joined: Mar 03, 2010
Posts: 2

I am using MyEclipse 6.6 and welogic 8.1 SP6. Deploying the application on the server through Myeclipse has been a problem. I have two issues:

1. When I deploy, even before the deployment finishes, weblogic throws an error:
weblogic.management.ApplicationException: [J2EE:160028]No J2EE deployment descriptor found at "C:\bea\user_projects\domains\mydomain\applications\tams".
at weblogic.j2ee.J2EEApplicationContainerFactory.handleError(J2EEApplicationContainerFactory.java:741)
at weblogic.j2ee.J2EEApplicationContainerFactory.initializeDeployment(J2EEApplicationContainerFactory.java:477)
at weblogic.management.deploy.DeployerRuntime.unprotectedActivate(DeployerRuntime.java:856)
at weblogic.management.deploy.DeployerRuntime.access$000(DeployerRuntime.java:69)
at weblogic.management.deploy.DeployerRuntime$1.run(DeployerRuntime.java:1568)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.management.deploy.DeployerRuntime.checkAndPerformDeployerActions(DeployerRuntime.java:1559)
at weblogic.management.deploy.DeployerRuntime.activate(DeployerRuntime.java:192)
at weblogic.management.deploy.DeployerRuntime.activate(DeployerRuntime.java:182)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:755)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:734)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:990)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:948)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:948)
at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:475)
at weblogic.management.runtime.DeployerRuntimeMBean_Stub.activate(DeployerRuntimeMBean_Stub.java:1139)
... 10 more
>

2. Even if I get the application to deploy, by sometimes repeatedly deploying, sometimes restarting the server- the hot deploy does not work. If I change something in the jsps, the application gets updated but if I change something in the action classes, the application does not get updated and I get classCastException if I try to access the page.
My application is simple struts application.
 
 View user's profile Send private message  
Reply with quote Back to top
support-shalini
Post subject: RE: Hot Deploy on weblogic  PostPosted: Mar 04, 2010 - 06:02 AM
Registered Member
Registered Member


Joined: May 18, 2009
Posts: 1532

3eclipseusers,
Please refer to the following link -
http://www.myeclipseide.com/PNphpBB2-viewtopic-t-18242.html
Also, I noticed that you are using an old version of MyEclipse. Is there any specific reason why you are using an older version?
The Current stable version is ME8.0. I would recommend you to upgrade to the latest version.

_________________
Shalini
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
3eclipseusers
Post subject:   PostPosted: Mar 04, 2010 - 03:35 PM



Joined: Mar 03, 2010
Posts: 2

We have Eclipse 3.3.2. So I downloaded ME6.6 which is compatible with 3.3 series. Not sure if the new version will work with Eclipse 3.3.2. We are using Java 1.4.
I have tried changing the weblogic.xml file. But it doesnt work. We have the following in our file

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
"http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">

<weblogic-web-app>
<context-root>/xyz</context-root>
<jsp-descriptor>
<jsp-param>
<param-name>pageCheckSeconds</param-name>
<param-value>10</param-value>
</jsp-param>
<jsp-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</jsp-param>
</jsp-descriptor>

<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>

Also, when we use the ME to deploy, does it mean that changes we make in java code will get reflected without redeploying. I have been deleting the deployment and then deploying the application again, everytime I make changes in java code which takes up lot of time and like I said lot of times I get the error above.
 
 View user's profile Send private message  
Reply with quote Back to top
support-shalini
Post subject:   PostPosted: Mar 05, 2010 - 04:16 AM
Registered Member
Registered Member


Joined: May 18, 2009
Posts: 1532

3eclipseusers,
MyEclipse 8 is based on Eclipse 3.5.1 classic. you can download the latest version from http://www.myeclipseide.com/module-htmlpages-display-pid-4.html.

Can you clarify if you are deploying in packaged mode or in exploded mode? When deployed in Exploded mode, changes made to the project are immediately reflected on the server.
Please refer to the following link -
http://www.myeclipseide.com/documentation/quickstarts/webprojects/#deploy_testing_debug

_________________
Shalini
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits