Trouble setting up a WebLogic remote configuration

I have a WL 10 instance running on a remote Solaris machine.
The WL home directory is (samba) exported and I have it mounted/mapped on my windows machine where I do my development.
I'm setting up a WebLogic instance (remote) and am running into some trouble.  I've had this setup under eclipse so I know
some of the values for the settings.

First, from the settings dialog I go to the Application Servers setting and add a new application server.
I choose a WL server.  My WL home is in a subdirectory of the the mapped directory (W:\bea100) so I choose that.
IDEA correctly determines that the BEA version is 10.0.1.0 which is great.  I click OK.


Back on the Application Servers setup I have a warning that "Class 'javax.servlet.Servlet' not found in application server
so I attach classes W:\bea100\wlserver_10.0\server\lib\api.jar which makes the error go away.  I click OK to dismiss the
settings dialog.

Next I go to the "Edit Configuration" dropdown and add a remote WebLogic Instance.  I give it a name and uncheck the
start browser checkbox.  I'm not sure what the user/password/server settings are for so I guess my first question is "what are they"?
I've set the host and port under the Remote Connection Settings.

Now, when I try to connect a debugging session to the running instance I receive an error dialog.
It is titled "Run Error" and the message is "Error running WL remote: weblogic.Server".

Can anyone help me to get this working properly?
Thanks,
Kevin.

6 comments
Comment actions Permalink

I forgot to say, I'm running IDEA 8.1.3 build #9886

0
Comment actions Permalink

Are there any exceptions in /.IntelliJIdea8x/system/log/idea.log file?

I have a WL 10 instance running on a remote Solaris machine.
The WL home directory is (samba) exported and I have it mounted/mapped on my windows machine where I do my development.
I'm setting up a WebLogic instance (remote) and am running into some trouble.  I've had this setup under eclipse so I know
some of the values for the settings.

First, from the settings dialog I go to the Application Servers setting and add a new application server.
I choose a WL server.  My WL home is in a subdirectory of the the mapped directory (W:\bea100) so I choose that.
IDEA correctly determines that the BEA version is 10.0.1.0 which is great.  I click OK.


Back on the Application Servers setup I have a warning that "Class 'javax.servlet.Servlet' not found in application server
so I attach classes W:\bea100\wlserver_10.0\server\lib\api.jar which makes the error go away.  I click OK to dismiss the
settings dialog.

Next I go to the "Edit Configuration" dropdown and add a remote WebLogic Instance.  I give it a name and uncheck the
start browser checkbox.  I'm not sure what the user/password/server settings are for so I guess my first question is "what are they"?
I've set the host and port under the Remote Connection Settings.

Now, when I try to connect a debugging session to the running instance I receive an error dialog.
It is titled "Run Error" and the message is "Error running WL remote: weblogic.Server".

Can anyone help me to get this working properly?
Thanks,
Kevin.

---
Original message URL: http://www.jetbrains.net/devnet/message/5248701#5248701



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

No, there are no exceptions there.

I have just added weblogic.jar to the classes in the application server configuration
and fixed the debug port listed on the Startup/Connection page (should have been 8804).

Now when I try to connect the debugger I get a short pause and then an error dialog comes up with the following:

Run Error
Error running WL remote: Error Connecting to WebLogic server.
Exception occurred : java.io.IOException
Exception message : null
----

But still no exceptions or log messages in either the idea.log or on the WL server.
I feel that I'm closer but still no dice.

0
Comment actions Permalink

I'm having the same problem (or at least the same error message).
I'm trying to connect to Weblogic 10.3
I see the following exception in the log file C:\Documents and Settings\myusername\.IntelliJIdea11\system\log\idea.log

2012-09-11 16:16:50,795 [21813768]   INFO - tion.impl.ExecutionManagerImpl - Error Connecting to WebLogic Server.
Exception occurred : java.io.IOException
Exception message : null
com.intellij.execution.ExecutionException: Error Connecting to WebLogic Server.
Exception occurred : java.io.IOException
Exception message : null
    at com.intellij.javaee.run.execution.J2EERemoteState.execute(J2EERemoteState.java:61)
    at com.intellij.debugger.engine.DebugProcessImpl.attachVirtualMachine(DebugProcessImpl.java:1656)
    at com.intellij.debugger.impl.DebuggerSession.attach(DebuggerSession.java:367)
    at com.intellij.debugger.impl.DebuggerManagerImpl.attachVirtualMachine(DebuggerManagerImpl.java:220)
    at com.intellij.debugger.ui.DebuggerPanelsManager.attachVirtualMachine(DebuggerPanelsManager.java:108)
    at com.intellij.debugger.impl.GenericDebuggerRunner.attachVirtualMachine(GenericDebuggerRunner.java:79)
    at com.intellij.debugger.impl.GenericDebuggerRunner.createContentDescriptor(GenericDebuggerRunner.java:67)
    at com.intellij.debugger.impl.GenericDebuggerRunner.doExecute(GenericDebuggerRunner.java:48)
    at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:85)
    at com.intellij.execution.impl.ExecutionManagerImpl$2.run(ExecutionManagerImpl.java:154)
    at com.intellij.execution.impl.ExecutionManagerImpl.compileAndRun(ExecutionManagerImpl.java:131)
    at com.intellij.execution.impl.ExecutionManagerImpl.startRunProfile(ExecutionManagerImpl.java:184)
    at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:78)
    at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:62)
    at com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:88)
    at com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:97)
    at com.intellij.execution.ExecutorRegistryImpl$ExecutorAction.actionPerformed(ExecutorRegistryImpl.java:233)
    at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:169)
    at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:133)
    at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:310)
    at java.awt.Component.processEvent(Component.java:6055)
    at java.awt.Container.processEvent(Container.java:2039)
    at java.awt.Component.dispatchEventImpl(Component.java:4653)
    at java.awt.Container.dispatchEventImpl(Container.java:2097)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
    at java.awt.Container.dispatchEventImpl(Container.java:2083)
    at java.awt.Window.dispatchEventImpl(Window.java:2482)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:607)
    at java.awt.EventQueue$1.run(EventQueue.java:605)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    at java.awt.EventQueue$2.run(EventQueue.java:621)
    at java.awt.EventQueue$2.run(EventQueue.java:619)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
    at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:699)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:534)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:420)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

There is no other cause or any other detailed message.
It seems to be some kind of NullPointerException at com.intellij.javaee.run.execution.J2EERemoteState.execute(J2EERemoteState.java:61),
but since I don't have access to the Intellij IDEA sources, this stacktrace has no use for me....

0
Comment actions Permalink

Ah, yes, also it's worth mentioning that in the weblogic console there is continuously displayed this message:
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed
Debugger failed to attach: handshake failed - connection prematurally closed

I had to close IDEA in order to stop getting these error messages. (although in IDEA there was no indication that it's still trying to attach to the weblogic debug session...)

0
Comment actions Permalink

Same problem here. Any news on that one?

Debugger failed to attach: handshake failed - received >t3 10.3.3 AS:2< - excepted >JDWP-Handshake<
Debugger failed to attach: handshake failed - connection prematurally closed

Regards
Christoph

0

Please sign in to leave a comment.