NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
nightmare
Joined: 21 Dec 2009 Posts: 1
|
Posted: Mon Dec 21, 2009 3:33 pm Post subject: Netbeans 6.8 + weblogic 10 + JDK 6. How to? |
|
|
I am trying to profile an application running on weblogic 10.3. The domain is using SUN JDK 6 but this error always occur:
| Code: | java.lang.UnsupportedOperationException: Starting in profile mode is not supported by this server.
at org.netbeans.modules.j2ee.deployment.plugins.spi.StartServer.startProfiling(StartServer.java:254)
at org.netbeans.modules.j2ee.deployment.impl.ServerInstance._startProfile(ServerInstance.java:1419)
at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startProfile(ServerInstance.java:1028)
at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startProfile(ServerInstance.java:1163)
at org.netbeans.modules.j2ee.ant.StartProfiledServer.execute(StartProfiledServer.java:109)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:278)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:498)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) |
Are there some plugin for this? Anyone already can do it? |
|
| Back to top |
|
 |
Tomas Hurka Posted via mailing list.
|
Posted: Wed Dec 23, 2009 12:56 pm Post subject: Re: Netbeans 6.8 + weblogic 10 + JDK 6. How to? |
|
|
Hi,
On 21 Dec 2009, at 16:33, nightmare wrote:
| Quote: | I am trying to profile an application running on weblogic 10.3. The
domain is using SUN JDK 6 but this error always occur:
Code:
java.lang.UnsupportedOperationException: Starting in profile mode is
not supported by this server.
at
org
.netbeans
.modules
.j2ee
.deployment.plugins.spi.StartServer.startProfiling(StartServer.java:
254)
at
org
.netbeans
.modules
.j2ee
.deployment.impl.ServerInstance._startProfile(ServerInstance.java:
1419)
at
org
.netbeans
.modules
.j2ee
.deployment.impl.ServerInstance.startProfile(ServerInstance.java:1028)
at
org
.netbeans
.modules
.j2ee
.deployment.impl.ServerInstance.startProfile(ServerInstance.java:1163)
at
org
.netbeans
.modules
.j2ee.ant.StartProfiledServer.execute(StartProfiledServer.java:109)
| [..]
| Quote: | at org.apache.tools.ant.Project.executeTargets(Project.java:
1189)
at
org
.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:
278)
at
org
.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:
498)
at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:
151)
Are there some plugin for this? Anyone already can do it?
|
It looks like direct profiling of Weblogic server is not supported.
However, you can profile WebLogic server using the NetBeans profiler.
The WebLogic server must be running with a special 'agentpath'
argument. Follow the Attach Wizard instructions for WebLogic server:
1. Choose 'Profile' | 'Attach Profiler...' in IDE menu
2. Select your project in 'Attach To:' combo.
3. Click 'define...' at the bottom of the Attach Profiler dialog
4. Choose 'J2EE Web/App Server' and 'WebLogic', 'Local' and 'Direct'
and follow the manual integration steps to setup the server for
profiling.
HTH,
--
Tomas Hurka <mailto:address-removed>
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.dev.java.net
Software Engineer, Developer Platforms Group
Sun Microsystems, Praha Czech Republic |
|
| Back to top |
|
 |
|
|
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 You can attach files in this forum You can download files in this forum
|
|