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.
Hi, When I run my project all goes fine and the application gets deployed in Sun AS9. But when I instead debug the project, the build fails. The following is output by Ant: pre-init: init-private: init-userdir: init-user: init-project: do-init: post-init: init-check: init: deps-jar: deps-j2ee-archive: pre-pre-compile: pre-compile: do-compile: post-compile: compile: pre-dist: do-dist-without-manifest: do-dist-with-manifest: post-dist: dist: run-debug: Starting debug server Sun Java System Application Server 9 Distributing C:\Iwan\SticktailGames\projects\FriendOrFoe\backend\IFFServer\dist\IFFServer.ear to [localhost:4848_server] Start registering the project's server resources Finished registering server resources deployment started : 0% deployment finished : 100% Deploying application in domain completed successfully Trying to create reference for application in target server completed successfully Trying to start application in target server completed successfully Deployment of application IFFServer completed successfully Enable of IFFServer in target server completed successfully Enable of application in all targets completed successfully All operations completed successfully Duplicated project name in import. Project IFFServer-impl defined first in C:\Iwan\SticktailGames\projects\FriendOrFoe\backend\IFFServer\nbproject\ant-deploy.xml and again in C:\Iwan\SticktailGames\projects\FriendOrFoe\backend\IFFServer\nbproject\build-impl.xml connect-debugger: Non-existing path "C:\Iwan\SticktailGames\projects\FriendOrFoe\backend\IFFServer\${javac.classpath}" provided. Attached JPDA debugger to localhost:9009 pre-run-deploy: Redeploying C:\Iwan\SticktailGames\projects\FriendOrFoe\backend\IFFServer\dist\IFFServer.ear Start registering the project's server resources Finished registering server resources While redeploying, trying to stop the application in target server completed successfully While redeploying, trying to remove reference for application in target server completed successfully deployment started : 0% Deploying application in domain failed; Could not rename C:\Programs\Sun\AppServer\9.UR1\domains\domain1\applications\j2ee-apps\IFFServer to C:\Programs\Sun\AppServer\9.UR1\domains\domain1\applications\j2ee-apps\IFFServer_old At least one operation failed C:\Iwan\SticktailGames\projects\FriendOrFoe\backend\IFFServer\nbproject\build-impl.xml:174: Deployment error: The module has not been deployed. See the server log for details. BUILD FAILED (total time: 39 seconds) I have no idea as to why a re-deploy is necessary, but fact is that something is going wrong. Please note that I didn't change anything in the build process and all code I am testing with is pretty much generated by NB, including the PersistenceUnit, the stateless Session bean I use as a facade, the entities I want to persist through the session-facade and the WS in my -war project that is accessing the session facade. Persistence is thru Toplink, DDL is dropped and created everytime I run the application. Iwan
It doesn't seem like a problem w/ the debugger. What I am not sure about is the error during the re-deploy process: >Deploying application in domain failed; Could not rename >C:\Programs\Sun\AppServer\9.UR1\domains\domain1\applications\j2ee-apps\IFFServer >to >C:\Programs\Sun\AppServer\9.UR1\domains\domain1\applications\j2ee-apps\IFFServer_old Could it be a configuration problem w/ AS or the project? Reassigning to the AS plugin for evaluation.
Maybe I found the answer; the reporter already asked his issue on nbusers, here is the answer: http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=83984
The only thing I can think of is setting in the persistence.xml not to do anything. Currently it states that it should drop and create the tables for all entities, I've tried to only create them and I also tried to not do anything, in other words I've tried all three options, but at not use. If I need to change something elsewhere, please advice. Yet also be adviced that I didn't alter any of the generated code other than the WS' business functions. Please not that when plain running the app it works, I just can't debug the application. In that case it won't deploy the application, which will be deployed when running the application. Iwan
you may be able to start the app server and then attach to it.... Which build of the app server are you running?
Hi, The build of the server is: Sun Java System Application Server Platform Edition 9.0_01 (build b14) Your hint to start the app server and attach the debugger to it works nicely. So that is a nice work around. Still I think that this is a bug. Let me know what else you need from me. Iwan
lowering the priority since there is a w-a
There are a few reports about this in the GF issue tracker. See: https://glassfish.dev.java.net/issues/buglist.cgi?component=glassfish&issue_status=UNCONFIRMED&issue_status=NEW&issue_status=STARTED&issue_status=REOPENED&issue_status=RESOLVED&issue_status=VERIFIED&issue_status=CLOSED&email1=&emailtype1=exact&emailassigned_to1=1&email2=&emailtype2=exact&emailreporter2=1&issueidtype=include&issue_id=&changedin=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=Could+not+rename&long_desc_type=substring&issue_file_loc=&issue_file_loc_type=substring&status_whiteboard=&status_whiteboard_type=substring&field0-0-0=noop&type0-0-0=noop&value0-0-0=&cmdtype=doit&namedcmd=All+JDBC%2FJMS%2FJCA+bugs&newqueryname=&order=Reuse+same+sort+as+last+time&Submit+query=Submit+query The most detailed one is https://glassfish.dev.java.net/issues/show_bug.cgi?id=539 The "fix" appears to be using 9.1. If your app uses struts, you may be able to update the struts jars to address this issue. closing
Verified