[Jboss-opentool-development] [ jboss-opentool-Bugs-586615 ] Exception trace on WebApp node rebuild
Status: Inactive
Brought to you by:
mredeker
From: <no...@so...> - 2002-07-31 16:16:48
|
Bugs item #586615, was opened at 2002-07-25 11:11 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=446294&aid=586615&group_id=46485 Category: None Group: None Status: Closed Resolution: Later Priority: 5 Submitted By: Russ Ferriday (russf) Assigned to: Marcus Redeker (mredeker) Summary: Exception trace on WebApp node rebuild Initial Comment: Exception occurred during event dispatching: java.lang.UnsupportedOperationException: Method getJspCompiler() not yet impleme nted. at de.gedoplan.opentools.jboss.web.JBossWebServerSetup24.getJspCompiler( JBossWebServerSetup24.java:49) at com.borland.jbuilder.build.JspBuildTask.<init>(Unknown Source) at com.borland.jbuilder.build.JspBuilder.a(Unknown Source) at com.borland.jbuilder.build.JspBuilder.a(Unknown Source) at com.borland.jbuilder.build.JspBuilder.a(Unknown Source) at com.borland.jbuilder.build.JspBuilder.a(Unknown Source) at com.borland.jbuilder.build.JspBuilder.updateBuildProcess(Unknown Sour ce) at com.borland.primetime.build.BuildProcess.a(Unknown Source) at com.borland.primetime.build.BuildProcess.addNode(Unknown Source) at com.borland.jbuilder.build.BuildActionPool.buildNodes(Unknown Source) at com.borland.jbuilder.build.gb.actionPerformed(Unknown Source) at com.borland.primetime.ide.BrowserAction.actionPerformed(Unknown Sourc e) at com.borland.primetime.actions.db.actionPerformed(Unknown Source) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:14 50) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra ctButton.java:1504) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel .java:378) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250 ) at javax.swing.AbstractButton.doClick(AbstractButton.java:279) at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseRelease ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-07-31 09:16 Message: Logged In: NO The following code changes to JBossWebServerSetup24.java provide a temporary fix to the problem. JSP pre-compilation is not supported, but war deployment to the appserver works correctly. public class JBossWebServerSetup24 implements ServerSetup { protected DeploymentDescriptorSupport[] supportedDDs; protected AppServer myAppServer = null; public JBossWebServerSetup24() { myAppServer = (JBossAppServer24)AppServerManager.getAppServer(JBossResource.getDefaultName24()); supportedDDs = new DeploymentDescriptorSupport[] { new WebXmlSupport(), new JBossWebXmlSupport(JBossResource.get("SERVER_VERSION24")) }; } public static void initOpenTool(byte byte0, byte byte1) { ServerManager.registerServer("JBoss 2.4.x", new JBossWebServerSetup24()); if( PrimeTime.isVerbose() ) { System.out.println("#####################################################################"); System.out.println("# JBossWebServerSetup24 registered #"); System.out.println("#####################################################################"); } } public String fixupClassPath(String parm1) { /**@todo: Implement this com.borland.jbuilder.runtime.servlet.ServerSetup method*/ //throw new java.lang.UnsupportedOperationException("Method fixupClassPath() not yet implemented."); return parm1; } public JspCompiler getJspCompiler() { /**@todo: Implement this com.borland.jbuilder.runtime.servlet.ServerSetup method*/ //throw new java.lang.UnsupportedOperationException("Method getJspCompiler() not yet implemented."); return null; } public DeploymentDescriptorSupport[] getDeploymentDescriptors() { return supportedDDs; } public ServerStarter newStarter() { /**@todo: Implement this com.borland.jbuilder.runtime.servlet.ServerSetup method*/ throw new java.lang.UnsupportedOperationException("Method newStarter() not yet implemented."); } public String getJspImplementationClass() { /**@todo: Implement this com.borland.jbuilder.runtime.servlet.ServerSetup method*/ //throw new java.lang.UnsupportedOperationException("Method getJspImplementationClass() not yet implemented."); return "com.sun.jsp.runtime.HttpJspBase"; } public String[] getPackages() { return new String[]{"org.jboss.*"}; } public String getJspClassPath() { return getClassPath(); } public String getSourcePath() { return ""; } public String getClassPath() { return myAppServer.getFullClassPathString(); } public boolean configure() { JOptionPane.showMessageDialog(Browser.getActiveBrowser(), "alert", "alert", JOptionPane.ERROR_MESSAGE); return false; } public boolean attemptDefaultConfiguration() { return isConfigured(); } public boolean isConfigured() { return myAppServer.isSetup(); } public PathSet getServletApiPathSet() { return PathSetManager.getLibrary(myAppServer.getClientLibraryName()); } public int getServletMinorVersion() { return 2; } public int getServletMajorVersion() { return 2; } } ---------------------------------------------------------------------- Comment By: Marcus Redeker (mredeker) Date: 2002-07-25 14:27 Message: Logged In: YES user_id=455609 Russ, you have to uncheck "Appserver is Webserver". I am still working on this and this is why it throws an UnsupportedOperationException. But even with that unchecked you can build WebApplications just select the Tomcat from the DropDown and you are ready to go. --Marcus ---------------------------------------------------------------------- Comment By: Russ Ferriday (russf) Date: 2002-07-25 11:13 Message: Logged In: YES user_id=478441 JB6 - default JRE for IDE, 1.4.0_01 for app. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=446294&aid=586615&group_id=46485 |