BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to set remote debug for weblogic 8

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Enterprise
View previous topic :: View next topic  
Author Message
John Woo
Guest





PostPosted: Tue Sep 27, 2005 6:05 pm    Post subject: how to set remote debug for weblogic 8 Reply with quote



Hi

I know it's not a new topic, but I need a detail on setting up the remote
debug for weblogic 8.

the following command-line is in my startWeblogic.cmd

%JAVA_HOME%binjava %JAVA_VM% %MEM_ARGS%
%JAVA_OPTIONS% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt
_socket,address=3999,suspend=y,server=y -Dweblogic.Name=%SERVER_NAME% -Dwebl
ogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy="%WL_HOM
E%serverlibweblogic.policy" weblogic.Server

after deploying a smiple EJB via JBuilder_x, creating a ejb test client and
configuring the running time env, enabling remote-debug, pointing to port
3999 for launch mode,

the error message for trying to run this ejb-client is

Could not locate JBuilder Remote Debugger Server on host "localhost"
Connection refused: connect

Can any one figure it out?

--
Thanks

John
Toronto


Back to top
Lori M Olson [TeamB]
Guest





PostPosted: Tue Sep 27, 2005 9:21 pm    Post subject: Re: how to set remote debug for weblogic 8 Reply with quote



John Woo wrote:
Quote:
Hi

I know it's not a new topic, but I need a detail on setting up the remote
debug for weblogic 8.

the following command-line is in my startWeblogic.cmd

%JAVA_HOME%binjava %JAVA_VM% %MEM_ARGS%
%JAVA_OPTIONS% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt
_socket,address=3999,suspend=y,server=y -Dweblogic.Name=%SERVER_NAME% -Dwebl
ogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy="%WL_HOM
E%serverlibweblogic.policy" weblogic.Server

after deploying a smiple EJB via JBuilder_x, creating a ejb test client and
configuring the running time env, enabling remote-debug, pointing to port
3999 for launch mode,

the error message for trying to run this ejb-client is

Could not locate JBuilder Remote Debugger Server on host "localhost"
Connection refused: connect

Can any one figure it out?

--
Thanks

John
Toronto



Do you have your Windows firewall turned on? If so, you need to tell it
to allow connections on port 3999.

--

Regards,

Lori Olson [TeamB]

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html

Back to top
John Woo
Guest





PostPosted: Tue Sep 27, 2005 9:43 pm    Post subject: Re: how to set remote debug for weblogic 8 Reply with quote




"Lori M Olson [TeamB]" <javadragon (AT) techie (DOT) com> wrote

Quote:
John Woo wrote:
Hi

I know it's not a new topic, but I need a detail on setting up the
remote
debug for weblogic 8.

the following command-line is in my startWeblogic.cmd

%JAVA_HOME%binjava %JAVA_VM% %MEM_ARGS%

%JAVA_OPTIONS% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt

_socket,address=3999,suspend=y,server=y -Dweblogic.Name=%SERVER_NAME% -Dwebl

ogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy="%WL_HOM
E%serverlibweblogic.policy" weblogic.Server

after deploying a smiple EJB via JBuilder_x, creating a ejb test client
and
configuring the running time env, enabling remote-debug, pointing to
port
3999 for launch mode,

the error message for trying to run this ejb-client is

Could not locate JBuilder Remote Debugger Server on host "localhost"
Connection refused: connect

Can any one figure it out?

--
Thanks

John
Toronto



Do you have your Windows firewall turned on? If so, you need to tell it
to allow connections on port 3999.


No, no any thing like that installed.

--
John



Back to top
Lori M Olson [TeamB]
Guest





PostPosted: Wed Sep 28, 2005 1:41 am    Post subject: Re: how to set remote debug for weblogic 8 Reply with quote

John Woo wrote:
Quote:


Do you have your Windows firewall turned on? If so, you need to tell it
to allow connections on port 3999.



No, no any thing like that installed.


John, not to harp, but if you have Windows XP SP2 installed, then you
have the Windows firewall installed.

Firewall problems are virtually the ONLY reason for the error message
you are reporting.

--

Regards,

Lori Olson [TeamB]

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html

Back to top
John Woo
Guest





PostPosted: Wed Sep 28, 2005 11:51 am    Post subject: Re: how to set remote debug for weblogic 8 Reply with quote


"Lori M Olson [TeamB]" <javadragon (AT) techie (DOT) com> wrote

Quote:
John Woo wrote:


Do you have your Windows firewall turned on? If so, you need to tell it
to allow connections on port 3999.



No, no any thing like that installed.


John, not to harp, but if you have Windows XP SP2 installed, then you
have the Windows firewall installed.

Firewall problems are virtually the ONLY reason for the error message
you are reporting.

Hi Lori,

Thanks for the tips, actually it's running in Windows 2000 server version.
the only thing in that computer "blocking" IP is the Symantec AntiVirus.

Can you tell for windows O.S., how to check/desable any firewall-software?

--
Thanks
John
Toronto



Back to top
Lori M Olson [TeamB]
Guest





PostPosted: Thu Sep 29, 2005 2:37 pm    Post subject: Re: how to set remote debug for weblogic 8 Reply with quote

John Woo wrote:
Quote:
Hi

I know it's not a new topic, but I need a detail on setting up the remote
debug for weblogic 8.

the following command-line is in my startWeblogic.cmd

%JAVA_HOME%binjava %JAVA_VM% %MEM_ARGS%
%JAVA_OPTIONS% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt
_socket,address=3999,suspend=y,server=y -Dweblogic.Name=%SERVER_NAME% -Dwebl
ogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy="%WL_HOM
E%serverlibweblogic.policy" weblogic.Server


Ok, let's go back to the beginning. I was just reading this in great
detail, and discovered...

suspend=y,server=y

The suspend part is wrong. You never want to do that unless you are
running Weblogic from INSIDE JBuilder, where you will have the control
to make it start. Because it is suspended, it is not really listening
on the port, so you could get that message. Try "suspend=n", and let me
know if that worked.

If not, I'll run through some basics on how to check your ports to see
if anything is listening on them, and if you can connect to them.

--

Regards,

Lori Olson [TeamB]

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html

Back to top
John Woo
Guest





PostPosted: Fri Sep 30, 2005 1:49 pm    Post subject: Re: how to set remote debug for weblogic 8 Reply with quote


"Lori M Olson [TeamB]" <javadragon (AT) techie (DOT) com> wrote

Quote:
John Woo wrote:
Hi

I know it's not a new topic, but I need a detail on setting up the
remote
debug for weblogic 8.

the following command-line is in my startWeblogic.cmd

%JAVA_HOME%binjava %JAVA_VM% %MEM_ARGS%

%JAVA_OPTIONS% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt

_socket,address=3999,suspend=y,server=y -Dweblogic.Name=%SERVER_NAME% -Dwebl

ogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy="%WL_HOM
E%serverlibweblogic.policy" weblogic.Server


Ok, let's go back to the beginning. I was just reading this in great
detail, and discovered...

suspend=y,server=y

The suspend part is wrong. You never want to do that unless you are
running Weblogic from INSIDE JBuilder, where you will have the control
to make it start. Because it is suspended, it is not really listening
on the port, so you could get that message. Try "suspend=n", and let me
know if that worked.

If not, I'll run through some basics on how to check your ports to see
if anything is listening on them, and if you can connect to them.


if the command line is (start weblogic in dos-command-prompt)

java %JAVA_VM% %MEM_ARGS%
%JAVA_OPTIONS% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt
_socket,server=y,address=3999,suspend=n -Dweblogic.Name=%SERVER_NAME% -Dweb
logic.ProductionModeEnabled=false -Djava.security.policy="%WL_HOME%serverl
ibweblogic.policy" weblogic.Server

then the error in JBuilder_x, when runing the remote-debug-launch for
testing an ejb is

Could not locate JBuilder Remote Debugger Server on host "localhost"
Connection refused: connect


when runing the remote-debug-attach for testing an ejb is

-- IOException attaching Remote Java debug process --
java.net.ConnectException: Connection refused: connect


I'm also wondering how to start or stop weblogic in JBuilder (so far I just
deploy EJB inside JBuilder)



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Enterprise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.