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 93741 - I can run my project, but I can't debug the project
Summary: I can run my project, but I can't debug the project
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-31 22:46 UTC by ieising
Modified: 2007-03-15 10:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ieising 2007-01-31 22:46:32 UTC
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
Comment 1 Libor Kotouc 2007-02-01 09:49:06 UTC
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.
Comment 2 Libor Kotouc 2007-02-01 12:24:49 UTC
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
Comment 3 ieising 2007-02-01 12:42:06 UTC
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
Comment 4 Vince Kraemer 2007-02-02 04:12:48 UTC
you may be able to start the app server and then attach to it....

Which build of the app server are you running?

Comment 5 ieising 2007-02-02 20:21:51 UTC
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
Comment 6 Vince Kraemer 2007-02-05 21:40:11 UTC
lowering the priority since there is a w-a
Comment 8 Michal Mocnak 2007-03-15 10:36:51 UTC
Verified