NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Netbeans 6.8 + weblogic 10 + JDK 6. How to?

 
Post new topic   Reply to topic    NetBeans Forums -> Profiler Users
View previous topic :: View next topic  
Author Message
nightmare



Joined: 21 Dec 2009
Posts: 1

PostPosted: Mon Dec 21, 2009 3:33 pm    Post subject: Netbeans 6.8 + weblogic 10 + JDK 6. How to? Reply with 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)
        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.





PostPosted: Wed Dec 23, 2009 12:56 pm    Post subject: Re: Netbeans 6.8 + weblogic 10 + JDK 6. How to? Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Profiler Users 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo