This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 54506 - In-place deployment not working: java.lang.ClassCastException
Summary: In-place deployment not working: java.lang.ClassCastException
Status: RESOLVED DUPLICATE of bug 55177
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-03 18:28 UTC by barddzen
Modified: 2005-09-14 15:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (108.47 KB, text/plain)
2005-02-11 19:57 UTC, barddzen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description barddzen 2005-02-03 18:28:40 UTC
Trying to deploy a very simple servlet.  .war
builds just fine, but when select Run, Debug or
Redeploy, get the following in console:

init:
deps-jar:
compile:
compile-jsps:
do-dist:
dist:
debug:
Stopping server Bundled Tomcat (5.0.28)
Stopping Tomcat process...
Tomcat server stopped.
Starting debug server Bundled Tomcat (5.0.28)
Starting Tomcat process...
Tomcat server started.
In-place deployment not supported
Deployment error: null.  See the messages.log file
for details.
C:\Development\NB41EA2\ZipCodeRadius\nbproject\build-impl.xml:336:
org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment$DeploymentException:
Deployment error: null.  See the messages.log file
for details.
BUILD FAILED (total time: 10 seconds)
Comment 1 barddzen 2005-02-11 19:13:17 UTC
Is there a work around suggsted until this can get reviewed?  I tried
copying the .war into the typical Tomcat folder and it isn't picking
up the .war and doing a hot deploy with the bundled Tomcat.

I can take the same .war and do the same thing with a seperate version
of Tomcat 5 (in another folder structure) and it picks it up and does
the deployment just fine as runs as expected; or, if I manually
install it into Tomcat it also works as expected.
Comment 2 Sherold Dev 2005-02-11 19:50:05 UTC
This could be caused by upgrade of the bundled Tomcat to a 5.5.x 
version. Could you please try it out with a fresh user dir? If the 
problem still persists attache the $NB_USERDIR/var/log/messages.log 
file to this issue. 
 
The auto deployment is disabled for the bundled Tomcat by default 
see the host element in your server.xml file. 
 
Please let me know if the new user dir helped. 
Comment 3 barddzen 2005-02-11 19:57:23 UTC
Created attachment 20325 [details]
messages.log
Comment 4 Sherold Dev 2005-02-18 13:19:18 UTC
This seems to be a duplicate of issue 55177. 

*** This issue has been marked as a duplicate of 55177 ***
Comment 5 clever 2005-09-14 14:51:29 UTC
I'd like to reopen this issue.  I'm using the Sun App Server and, based on a tip
on the mailing list, have enabled "Directory Based Deployment Possible", hoping
that it will allow me to develop and debug JSP's and my web service without a
full fledged redeployment.
When I attempt to deploy (After undeploying the existing webapp), I get the
following symptoms:

IDE Exception:
-------------------------
java.lang.ClassCastException
	at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:91)
[catch] at java.lang.Thread.run(Thread.java:534)


The server output shows:
-------------------------
nothing.


The (run-deply) output window shows:
-------------------------
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
Copying 2 files to C:\Data\Projects\<projdir>
Enterprise-war\build\web
wscompile-init:
ADAccountTools_wscompile:
command line: wscompile "C:\Program Files\Java SDK 1.4.2_09\jre\bin\java.exe" ...
[creating model: ADAccountTools]
[creating service: ADAccountTools]
[creating port: com.tekelec.corpdir.ws.ADAccountToolsSEI]
[creating operation: changeUserPassword]
compile:
compile-jsps:
Building jar: C:\Data\Projects\<projdir>
Enterprise-war\dist\<myapp>.war
do-dist:
dist:
run-deploy:
In-place deployment at C:\Data\Projects\<projdir>war\build\web
Start registering the project's server resources
Finished registering server resources
..


And thats it. Nothing happens.  Looks like I'm back to full deployment for every
minor change.. :0(

Cheers!
-Sean
Comment 6 Petr Blaha 2005-09-14 15:18:46 UTC
Hi clever, this is different issue. I filed new issue #64353 and marked as Beta
stopper. It means that should be definitely fixed in upcomming beta release.

*** This issue has been marked as a duplicate of 55177 ***