X

Geertjan's Blog

  • July 20, 2005

Download it now! JBoss Plug-in for NetBeans IDE!

Geertjan Wielenga
Product Manager

Join the discussion

Comments ( 16 )
  • Chris Johnston Wednesday, July 20, 2005
    Nice little plugin, except that it does not work. I keep getting the following everytime I try and start the server:
    Annotation: Exception occurred in Request Processor
    javax.xml.parsers.FactoryConfigurationError: Provider org.apache.crimson.jaxp.DocumentBuilderFactoryImpl not found

    at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:99)

    at org.netbeans.modules.j2ee.jboss4.ide.ui.JBPluginUtils.getJnpPort(JBPluginUtils.java:152)

    at org.netbeans.modules.j2ee.jboss4.ide.JBStartServer.isReallyRunning(JBStartServer.java:137)

    at org.netbeans.modules.j2ee.jboss4.ide.JBStartServer.isRunning(JBStartServer.java:177)

    at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.isRunningWithinMillis(ServerInstance.java:336)

    at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.isRunning(ServerInstance.java:329)

    at org.netbeans.modules.j2ee.deployment.impl.ui.ServerStatusBar.setCommandControlButtons(ServerStatusBar.java:265)

    at org.netbeans.modules.j2ee.deployment.impl.ui.ServerStatusBar.startProgressUI(ServerStatusBar.java:98)

    at org.netbeans.modules.j2ee.deployment.impl.ui.actions.ServerStatusAction$1.run(ServerStatusAction.java:58)

    at org.openide.util.Task.run(Task.java:189)

    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
    [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:721)
    ==>
    java.lang.ClassNotFoundException: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl

    at java.net.URLClassLoader$1.run(URLClassLoader.java:199)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

    at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:93)

    at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:187)

    at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:93)

    at org.netbeans.modules.j2ee.jboss4.ide.ui.JBPluginUtils.getJnpPort(JBPluginUtils.java:152)

    at org.netbeans.modules.j2ee.jboss4.ide.JBStartServer.isReallyRunning(JBStartServer.java:137)

    at org.netbeans.modules.j2ee.jboss4.ide.JBStartServer.isRunning(JBStartServer.java:177)

    at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.isRunningWithinMillis(ServerInstance.java:336)

    at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.isRunning(ServerInstance.java:329)

    at org.netbeans.modules.j2ee.deployment.impl.ui.ServerStatusBar.setCommandControlButtons(ServerStatusBar.java:265)

    at org.netbeans.modules.j2ee.deployment.impl.ui.ServerStatusBar.startProgressUI(ServerStatusBar.java:98)

    at org.netbeans.modules.j2ee.deployment.impl.ui.actions.ServerStatusAction$1.run(ServerStatusAction.java:58)

    at org.openide.util.Task.run(Task.java:189)

    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
    [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:721)
  • Geertjan Wednesday, July 20, 2005
    Odd. I don't get that error at all. What's your OS, JDK version etc.? Anything special installed? Does the same thing occur after deleting the user directory? If you can't find a related issue in Issuezilla, please add it.
  • VHF Wednesday, July 20, 2005
    Two problems I have, one is an easy fix, not sure about the other.
    Using Red Hat WS, the Jboss start-up tries to use the GCJ based Java instead of the JDK 5 that I have installed. Easy fix since it looks like the plug-in is just calling the run.sh script to start JBoss, so just adding the correct VM path should fix it.
    The other issue is that after defining a Jboss server, the Sun App server is no longer listed under the server tree and Tomcat is listed twice. I added the server via the "add server" context menu on the server tree node under the runtime tab.
    The Sun server is still defined, removing the JBoss server brings the Sun one back. If I go to the server dialog from the tools menu and add the server via there I don't seem to have an issue. This may not be a plug-in issue so much as an issue with how servers are added.
    It is great to see support for more than the Sun App Server in Netbeans.
  • Geertjan Wednesday, July 20, 2005
    Are you sure that the "Tomcat is listed twice" isn't just because there are two VERSIONS of Tomcat? Tomcat 5.0 and Tomcat 5.5 are bundled by default. The other issues I don't know about, but will look into. Please also look at Issuezilla and see if your issues are reported there (if not, it would be good to add them).

    And, yes, it's really cool to have JBoss included in the IDE. I've liked JBoss a lot for quite a while now -- ever since I started this blog I've been blogging a lot about JBoss -- initially from the perspective of using Ant scripts, but now it's a plug-in. Yay!

  • Chris Johnston Wednesday, July 20, 2005
    OS: Windows XP
    JDK: J2SE 1.4.2_08
    NetBeans: 4.1
    JBoss: 4.0.2
    As for anything special installed, I have a custom classpath setup in my environment variables and jdk added to my path, but that is about it. I can start JBoss without any problems from the command line, so the problem must be with the NetBeans module.
  • Geertjan Saturday, July 23, 2005
    Hi Chris, are you still experiencing the same problem? Or is it resolved? Have you got any further in working out what the reason is?
  • suresh kr Wednesday, August 31, 2005
    Hi Geertjan,
    I am also facing the same problem, this issue has been reported in quite a no of places, but no solution yet.
    Is there a workaround for this. My configuration is same as that of Chris Johnston
  • Geertjan Wednesday, August 31, 2005
    Hi Suresh, Very recently there was a new update in the Update Center for JBoss, and several things were fixed. If you have a NetBeans installation of 4.1, and have a fresh JBoss plug-in downloaded from the Update Center, and are still encountering this problem, you should create an issue in Issuezilla (and make it a P2). Hope this helps, if not, please leave another question.
  • Geertjan Wednesday, August 31, 2005
    PS: Note that in the IDE Dev build for the next release (5.0), which you can download from NetBeans.org, JBoss support is much better -- it's even integrated right into the IDE, so that you don't have to install a plug-in, for example.
  • suresh kr Thursday, September 1, 2005
    Hi Geertjan,
    Thanks for your reply.
    I downloaded netbeans 4.1 and JBoss plugin today only [5-6 hours back].So i assume i do have the latest version. For raising issue in IssueZilla i did saw already one issue raised for this [dont remember the ID though],
    Maybe i will try with IDE DEV build 5.0 and update this blog.
  • Geertjan Thursday, September 1, 2005
    Yes, that would be great. Thanks Suresh.
  • suresh kr Thursday, September 1, 2005
    Cool,
    I tried in IDE Dev build (5.0)[netbeans-javaee5-daily-bin-200508312200], i am able to start stop JBoss from Netbeans without any issues. Thats great. Thanks a lot.
    Will try to develop new application now.
  • Geertjan Thursday, September 1, 2005
    Excellent, please leave comments here on how things are going! One thing I'm going to look into is web services in relation to JBoss -- you need to have the Sun Java System Application Server to build them (because you need the wscompile tool which comes with the Sun Java System Application Server) but after that you should be able to deploy them to JBoss (but there are a few workarounds you need to do first). So, I'll be blogging about this soon!
  • suresh kr Thursday, September 1, 2005
    I just made a post. But it disappeared.
    Anyway i am currently doing a struts based web application to be deployed in JBoss. I will be looking forward to your Webservice blog related to JBoss as we need that one too. Thanks
  • Geertjan Tuesday, September 6, 2005
    Hi Suresh, here it is!
  • heveral Tuesday, September 27, 2005
    Me encant Netbeans
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.