4 Replies Latest reply on Sep 2, 2008 5:47 PM by Max Rydahl Andersen

    Configuring JBoss Tools plugins in Eclipse 3.4

    Mario Rodriguez Newbie

      Hi

      I'm trying to configure JBoss Tools in a standard Eclipse 3.4 to be able to use RichFaces and Websphere App Server but for some reason the RichFaces/Ajax4jsf palette is not displayed.

      Do I need to install something else than the jboss tools plugins ?

      thanks

        • 1. Re: Configuring JBoss Tools plugins in Eclipse 3.4
          Mario Rodriguez Newbie

          To be more accurate, this is the error I'm getting:

          java.lang.ClassNotFoundException: org.eclipse.gef.internal.ui.palette.editparts.PaletteEditPart
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(Unknown Source)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Unknown Source)
          at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Unknown Source)
          at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.J9VMInternals.verifyImpl(Native Method)
          at java.lang.J9VMInternals.verify(Unknown Source)
          at java.lang.J9VMInternals.initialize(Unknown Source)
          at org.jboss.tools.vpe.ui.palette.CustomPaletteEditPartFactory.createDrawerEditPart(Unknown Source)
          at org.eclipse.gef.ui.palette.PaletteEditPartFactory.createEditPart(Unknown Source)
          at org.eclipse.gef.editparts.AbstractEditPart.createChild(Unknown Source)
          at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(Unknown Source)
          at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)
          at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)
          at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)
          at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)
          at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)
          at org.eclipse.gef.editparts.SimpleRootEditPart.setContents(Unknown Source)
          at org.eclipse.gef.ui.palette.PaletteViewer.setPaletteRoot(Unknown Source)
          at org.jboss.tools.vpe.ui.palette.PaletteAdapter.createControl(Unknown Source)
          at org.jboss.tools.common.model.ui.views.palette.PaletteViewPart.createPartControlImpl(Unknown Source)
          at org.jboss.tools.common.model.ui.views.palette.PaletteViewPart.createPartControl(Unknown Source)
          at org.eclipse.ui.internal.ViewReference.createPartHelper(Unknown Source)
          at org.eclipse.ui.internal.ViewReference.createPart(Unknown Source)
          at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Unknown Source)
          at org.eclipse.ui.internal.Perspective.showView(Unknown Source)
          at org.eclipse.ui.internal.WorkbenchPage.busyShowView(Unknown Source)
          at org.eclipse.ui.internal.WorkbenchPage$19.run(Unknown Source)
          at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source)
          at org.eclipse.ui.internal.WorkbenchPage.showView(Unknown Source)
          at org.eclipse.ui.internal.WorkbenchPage.showView(Unknown Source)
          at org.eclipse.ui.handlers.ShowViewHandler.openView(Unknown Source)
          at org.eclipse.ui.handlers.ShowViewHandler.execute(Unknown Source)
          at org.eclipse.ui.internal.handlers.HandlerProxy.execute(Unknown Source)
          at org.eclipse.core.commands.Command.executeWithChecks(Unknown Source)
          at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(Unknown Source)
          at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(Unknown Source)
          at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(Unknown Source)
          at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(Unknown Source)
          at org.eclipse.ui.menus.CommandContributionItem.access$10(Unknown Source)
          at org.eclipse.ui.menus.CommandContributionItem$4.handleEvent(Unknown Source)
          at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
          at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
          at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
          at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
          at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
          at org.eclipse.ui.internal.Workbench.access$4(Unknown Source)
          at org.eclipse.ui.internal.Workbench$5.run(Unknown Source)
          at org.eclipse.core.databinding.observable.Realm.runWithDefault(Unknown Source)
          at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
          at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
          at org.eclipse.ui.internal.ide.application.IDEApplication.start(Unknown Source)
          at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source)
          at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
          at org.eclipse.equinox.launcher.Main.run(Unknown Source)
          at org.eclipse.equinox.launcher.Main.main(Unknown Source)

          • 2. Re: Configuring JBoss Tools plugins in Eclipse 3.4
            Max Rydahl Andersen Master

            are you sure you are using JBoss Tools 3 alpha ?

            No version before it will work with Ganymede/Eclipse 3.4

            • 3. Re: Configuring JBoss Tools plugins in Eclipse 3.4
              Mario Rodriguez Newbie

              Hummm, ok, now I installed the version 3.0.0 and the toolbar is displayed but when I try to execute it on WAS 6.1 I got this exception:

              [9/2/08 10:04:48:560 CST] 0000001f ServletWrappe E SRVE0100E: Did not realize init() exception thrown by servlet Faces Servlet: java.lang.NullPointerException
              at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
              at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:199)
              at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:319)
              at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:393)
              at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
              at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3391)
              at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
              at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
              at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
              at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
              at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
              at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
              at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
              at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
              at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
              at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
              at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
              at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
              at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
              at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
              at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
              at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
              at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)

              [9/2/08 10:04:48:575 CST] 0000001f ServletWrappe E Deregister the mbean because of uncaught init() exception thrown by servlet Faces Servlet: javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception thrown by servlet
              at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:251)
              at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:319)
              at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:393)
              at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
              at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3391)
              at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
              at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
              at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
              at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
              at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
              at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
              at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
              at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
              at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
              at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
              at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
              at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
              at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
              at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
              at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
              at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
              at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
              ---- Begin backtrace for Nested Throwables
              java.lang.NullPointerException
              at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
              at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:199)
              at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:319)
              at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:393)
              at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
              at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3391)
              at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
              at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
              at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
              at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
              at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
              at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
              at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
              at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
              at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
              at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
              at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
              at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
              at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
              at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
              at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
              at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
              at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
              ,
              [9/2/08 10:04:48:716 CST] 0000001f ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened incident stream file C:\llbtools\Was6_profiles\UIFramework\logs\ffdc\server1_0000001f_08.09.02_10.04.48_0.txt
              [9/2/08 10:04:48:731 CST] 0000001f ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\llbtools\Was6_profiles\UIFramework\logs\ffdc\server1_0000001f_08.09.02_10.04.48_0.txt
              [9/2/08 10:04:48:747 CST] 0000001f WebApp E [Servlet Error]-[Faces Servlet]: java.lang.NullPointerException
              at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
              at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:199)
              at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:319)
              at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:393)
              at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
              at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3391)
              at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
              at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
              at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
              at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
              at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
              at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
              at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
              at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
              at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
              at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
              at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
              at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
              at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
              at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
              at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
              at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
              at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)



              and my configuration is very very simple, this is the web.xml :

              <?xml version="1.0"?>
              <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
              <display-name>a4jEchoText</display-name>
              <context-param>
              <param-name>org.richfaces.SKIN</param-name>
              <param-value>blueSky</param-value>
              </context-param>
              <context-param>
              <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
              <param-value>server</param-value>
              </context-param>

              <display-name>RichFaces Filter</display-name>
              <filter-name>richfaces</filter-name>
              <filter-class>org.ajax4jsf.Filter</filter-class>

              <filter-mapping>
              <filter-name>richfaces</filter-name>
              <servlet-name>Faces Servlet</servlet-name>
              REQUEST
              FORWARD
              INCLUDE
              </filter-mapping>

              <listener-class>com.sun.faces.config.ConfigureListener</listener-class>

              <!-- Faces Servlet -->

              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>

              <!-- Faces Servlet Mapping -->
              <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.jsf</url-pattern>
              </servlet-mapping>
              <login-config>
              <auth-method>BASIC</auth-method>
              </login-config>
              </web-app>


              and the faces-config.xml:


              <?xml version="1.0" encoding="UTF-8"?>
              <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
              "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
              <faces-config/>


              Any idea ?

              • 4. Re: Configuring JBoss Tools plugins in Eclipse 3.4
                Max Rydahl Andersen Master

                Ask in richfaces or seam forum - they might have experience with running it on WAS.

                /max