Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!

Bug 194137

Summary: [70cat][j2ee] Jetty server plugin has broken support for Jetty 7/8
Product: serverplugins Reporter: marcotts
Component: JettyAssignee: issues <issues.netbeans.org>
Status: NEW --- QA Contact: issues <issues.netbeans.org>
Priority: P2 CC: Emperorlou, gtzabari, marcotts, pjiricka, sgtgarcia
Version: 6.x   
Target Milestone: TBD   
Hardware: All   
OS: All   
Whiteboard: EXCEPTIONS_REPORT
Issue Type: DEFECT Exception Report: 175681
Attachments: stacktrace
stacktrace

Description marcotts 2011-01-08 12:31:01 UTC
Build: NetBeans IDE Dev (Build 201101040001)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Windows 7

User Comments:
marcotts: running web app on jetty




Stacktrace: 
javax.management.InstanceNotFoundException: org.mortbay.jetty.webapp:type=webappcontext,name=ULTRAmls-web-rf,id=0
   at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1094)
   at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getClassLoaderFor(DefaultMBeanServerInterceptor.java:1438)
   at com.sun.jmx.mbeanserver.JmxMBeanServer.getClassLoaderFor(JmxMBeanServer.java:1276)
   at javax.management.remote.rmi.RMIConnectionImpl$5.run(RMIConnectionImpl.java:1326)
   at java.security.AccessController.doPrivileged(AccessController.java:0)
   at javax.management.remote.rmi.RMIConnectionImpl.getClassLoaderFor(RMIConnectionImpl.java:1323)
Comment 1 marcotts 2011-01-08 12:31:06 UTC
Created attachment 104807 [details]
stacktrace
Comment 2 marcotts 2011-01-12 22:32:49 UTC
Created attachment 104940 [details]
stacktrace

run a web app in jetty 8
Comment 3 marcotts 2011-01-19 07:24:23 UTC
jetty plugin for Jetty 7 and Jetty 8 is broken: i.e. one cannot debug, start a web app from the ide using the Jetty server plugin.

Eclipse Foundation refactored Jetty 7 (and thus also Jetty 8) packages, so in order to fix the plugin, it is necessary (at least) to update the referenced Jetty classes in the source code of the plugin.

references:
http://wiki.eclipse.org/Jetty/Getting_Started/Porting_to_Jetty_7/Refactoring

http://stackoverflow.com/questions/2451572/jetty-7-mysql-config-java-lang-classnotfoundexception-org-mortbay-jetty-webap
Comment 4 Fred2M 2011-04-14 13:37:38 UTC
Information on wether this bug is likely to be fixed within the next month, would be appreciated. I would like to use Jetty 7. Right now I'm considering to go through the hassle of porting my existing Glassfish Netbeans Project to Maven, just to better integrate Jetty.
Comment 5 Petr Jiricka 2012-01-03 08:26:26 UTC
*** Bug 198393 has been marked as a duplicate of this bug. ***
Comment 6 Petr Jiricka 2012-01-03 08:37:09 UTC
The Oracle NetBeans team currently does not have the resources to maintain the Jetty plugin, but contributions/patches from the community would be greatly appreciated. Is there any volunteer who would be willing to look at this issue? The code is in the main/contrib repository under "j2ee.jetty", see:
http://wiki.netbeans.org/HgHowTos#Understanding_the_NetBeans_repositories
http://wiki.netbeans.org/HgHowTos#Getting_all_repositories
Comment 7 Exceptions Reporter 2012-06-04 15:19:14 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=175681
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo