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 26724 - Adding a WAR file from the server node makes an invalid declaration
Summary: Adding a WAR file from the server node makes an invalid declaration
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: -FFJ-
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-22 23:54 UTC by Ana.von Klopp
Modified: 2006-02-27 16:07 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 Ana.von Klopp 2002-08-22 23:54:19 UTC
0) Mount a WAR file as an archive file system in the IDE
1) Select the run time tab in the explorer
2) Go to the Server Registry node > Installed Servers
3) To deploy on the internal server, expand the node to 
where it says localhost:port and then choose "add 
context" . 
4) The drop down menu shows the war file as an option
5) The declaration into the server.xml is incorrect and 
omits the path to the WAR file, so it cannot be executed. 
eg

<Context path="/mondemo" docBase="mondemo.war">
<Logger className="org.apache.catalina.logger.FileLogger" 
prefix="localhost_mondemo_log." suffix=".txt" 
timestamp="true"/>
</Context>

It should use the full path to the war file. Also, why 
does it not declare the monitor valve to run? 

Workaround: select "Configure (edit server.xml)" on the 
server node and modify the declaration by hand.
Comment 1 Milan Kuchtiak 2002-09-02 10:53:58 UTC
It's really a bug.Adding war file as a new context results 
in a wrong docBase string.The war file should be identified 
by the full path in the <Context> element.
Comment 2 Milan Kuchtiak 2003-03-03 13:14:49 UTC
Adding war file should be resolved differently than 
adding "in-place" context.
Comment 4 Jaroslav Pospisil 2006-02-27 16:07:07 UTC
VERIFIED