This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 21328 - Cannot execute a JSP on external multi-user tomcat installation
Summary: Cannot execute a JSP on external multi-user tomcat installation
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: -FFJ-
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-07 22:14 UTC by jhoffman
Modified: 2002-06-21 13:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jhoffman 2002-03-07 22:14:14 UTC
I nave configured my external tomcat 4.0.2 in a multi-user way, so that:

Home is c:\Work\tomcat4 which contains bin, classes, common, lib and server
subdirectories.
Base is c:\Work\tomcat4base which contains conf, logs, webapps and work
subdirectories

When I attempt to execute a simple JSP on this instance (after installing it
under the Tomcat 4 node on the Runtime tab Installed Servers node), I get the
following exception:

Thu Mar 07 13:52:30 PST 2002: java.lang.NullPointerException: Posted StackTrace
Annotation: Exception occurred in Request Processor
org.openide.util.RequestProcessor$Holder: Posted StackTrace(task
org.netbeans.core.ModuleActions$1@f2a026 [-4625, 1, -1])
        at
org.openide.util.RequestProcessor$Holder.fillInStackTrace(RequestProcessor.java:300)
        at java.lang.Throwable.<init>(Throwable.java:195)
        at java.lang.Exception.<init>(Exception.java:41)
        at
org.openide.util.RequestProcessor$Holder.<init>(RequestProcessor.java:280)
        at
org.openide.util.RequestProcessor$Task.createHolder(RequestProcessor.java:333)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:100)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:73)
        at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:123)
        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:324)
        at org.openide.awt.Actions.invokeAction(Actions.java:446)
        at org.openide.awt.Actions$ButtonBridge.actionPerformed(Actions.java:425)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
        at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1092)
[catch] at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:932)
        at java.awt.Component.processMouseEvent(Component.java:5021)
        at java.awt.Component.processEvent(Component.java:4818)
        at java.awt.Container.processEvent(Container.java:1380)
        at java.awt.Component.dispatchEventImpl(Component.java:3526)
        at java.awt.Container.dispatchEventImpl(Container.java:1437)
        at java.awt.Component.dispatchEvent(Component.java:3367)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
        at java.awt.Container.dispatchEventImpl(Container.java:1423)
        at java.awt.Window.dispatchEventImpl(Window.java:1566)
        at java.awt.Component.dispatchEvent(Component.java:3367)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
Thu Mar 07 13:52:30 PST 2002: java.lang.NullPointerException: <no message>
java.lang.NullPointerException
        at
org.apache.xerces.dom.NamedNodeMapImpl.findNamePoint(NamedNodeMapImpl.java:474)
        at
org.apache.xerces.dom.NamedNodeMapImpl.getNamedItem(NamedNodeMapImpl.java:167)
        at org.apache.xerces.dom.ElementImpl.getAttribute(ElementImpl.java:220)
        at
org.netbeans.modules.web.xmlutils.XMLJ2eeUtils.addElement(XMLJ2eeUtils.java:483)
        at
org.netbeans.modules.tomcat.tomcat40.Tomcat40DataObject.addMonitorValve(Tomcat40DataObject.java:858)
        at
org.netbeans.modules.tomcat.tomcat40.Tomcat40DataObject.setNewContext(Tomcat40DataObject.java:514)
        at
org.netbeans.modules.tomcat.tomcat40.Tomcat40Installation.setTestComponent(Tomcat40Installation.java:406)
        at
org.netbeans.modules.tomcat.tomcat40.Tomcat40Installation.incrementalDeploy(Tomcat40Installation.java:393)
        at
org.netbeans.modules.tomcat.tomcat40.Tomcat40Instance.deploy(Tomcat40Instance.java:251)
        at
org.netbeans.modules.j2ee.impl.DefaultServerInstanceManager.doDeploy(DefaultServerInstanceManager.java:145)
        at
org.netbeans.modules.j2ee.impl.DefaultServerInstanceManager.startExecution(DefaultServerInstanceManager.java:159)
        at
org.netbeans.modules.j2ee.impl.DefaultServerInstanceManager.serverInstanceStartExecution(DefaultServerInstanceManager.java:104)
        at
org.netbeans.modules.j2ee.impl.DefaultExecPerformer.startExecution(DefaultExecPerformer.java:105)
        at
org.netbeans.modules.web.execution.WebDefaultExecPerformer.startExecution(WebDefaultExecPerformer.java:230)
        at
org.netbeans.modules.j2ee.impl.ServerExecutor.execute(ServerExecutor.java:74)
        at
org.netbeans.modules.j2ee.impl.ServerExecutor.execute(ServerExecutor.java:64)
        at org.netbeans.modules.j2ee.impl.ExecSupport.start(ExecSupport.java:125)
        at
org.netbeans.modules.j2ee.impl.ServerExecSupport.start(ServerExecSupport.java:139)
        at org.openide.actions.ExecuteAction.execute(ExecuteAction.java:140)
        at org.openide.actions.ExecuteAction.execute(ExecuteAction.java:237)
        at org.openide.actions.ExecuteAction.performAction(ExecuteAction.java:102)
        at org.openide.util.actions.NodeAction.performAction(NodeAction.java:180)
        at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:171)
        at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:105)
        at org.openide.util.Task.run(Task.java:152)
[catch] at
org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java:622)
Comment 1 Damian Frach 2002-03-08 11:21:20 UTC
works for me

win 2000; jdk 1.4; fresh ee (Build 20020308-1133); fresh tomcat 4.0.2

- copy 4 folders from the tomcat home to tomcat base dir
- start IDE
- add external installation (HOME dir, BASE dir, full install)
- create a simple JSP
- select target server
- execute JSP

all is OK

Comment 2 Damian Frach 2002-03-08 11:22:10 UTC
sorry:

- copy 4 folders from the tomcat home to tomcat base dir

not copy, but move

Comment 3 Petr Jiricka 2002-06-21 13:16:31 UTC
This seems unrelated to 21329, removing the dependency.