Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » WTP1.0 Not Publishing /Bad publish.xml
WTP1.0 Not Publishing /Bad publish.xml [message #155932] Wed, 11 January 2006 13:45 Go to next message
Eclipse UserFriend
Windows 2000
WTP 1.0
Tomcat 5.0.28

We did a clean install of WTP 1.0 with a new workspace on box A. When we
try to run any webapp project, we get a 404. Eclipse is not publishing the
webapp to Tomcat. No error information is written to the server log.

The publish.xml in the .metadata folder contains the following:
<?xml version="1.0" encoding="UTF-8"?>
<server>
<module module-ids="org.eclipse.jst.j2ee.server:TAS_TAB_J2EE"
name="TAS_TAB_J2EE"/>
</server>

As you can see, loads of information is missing from the "publish" file.

We did a clean install of WTP1.0 with new workspaces on 3 other boxes,
grabbed projects from CVS, and ran the webapps without issues.

We replaced the "publish" file on box A with a correct one from one of the
other PCs. When we tried to run the webapp again on box a, we got the same
problem, and all the information in the "publish" file had been replaced
with the simple entry above.

Does anyone know what would cause the WTP to not publish to Tomcat
correctly - to not add robust entries to the publish.xml file? How do we
fix this?

Thanks in advance!
Re: WTP1.0 Not Publishing /Bad publish.xml - workaround for the very buggy publishing routine [message #155959 is a reply to message #155932] Wed, 11 January 2006 15:17 Go to previous messageGo to next message
Eclipse UserFriend
First of all, I would recommend the current maintainance build from:
http://download.eclipse.org/webtools/committers/

That fixed a few problems with errors after deleting/renaming web files or performance problems (starting tomcat took about 20 minutes for publishing our projects, now it "just" takes 30 secs.)

But it also brings new problems:
All newly created projects are not published correctly: Just the first level of files/folders in the web directory are copied, the content of the folders is not copied.
We couldn't find out so far, what the according difference is between a new (incompletely published) and an old (completely published) project.

Workaround: Create your own publishing routine:
Create a script which copies the files and add this script at the end of the project's builders.

Project properties dialog -> Builders

Make sure to check "During manual builds" and "During auto builds" in the "Build Options" of the builder entry.
As script we used a windows batch file with the line:

xcopy "C:\Programme\eclipse\workspace\myproject\WebContent\*" " C:\Programme\eclipse\workspace\.metadata\.plugins\org.eclips e.wst.server.core\tmp0\webapps\myproject " /D /S /V /C /I /R /K /Y

(tmp0 is the wtp-folder for the server. Check, if yours is the same.)

This way all the newly created or changed files are definitely copied to the server after any file change.

Chily
Re: WTP1.0 Not Publishing /Bad publish.xml [message #155967 is a reply to message #155932] Wed, 11 January 2006 15:33 Go to previous message
Eclipse UserFriend
Additional information:

This problem is only happening on one of the 4 PCs that has WTP 1.0
installed. All 4 PCs previously had WTP 0.7.1 installed. Both the Eclipse
and workspace directories were deleted before WTP 1.0 was installed.
All web projects were created with WTP 0.7.1.

We created a new dynamic web project and copied the files from an existing
web project into the new project. The new project published and ran
without issue. So, is there some project configuration setting that
interacts with the desktop that would prevent an existing web project
(created with WTP 0.7) from publishing?
Previous Topic:ctrl-d in JS editor causing null pointer exception
Next Topic:Getting off the ground with WTP 1.0
Goto Forum:
  


Current Time: Tue Mar 18 00:57:52 EDT 2025

Powered by FUDForum. Page generated in 0.02617 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top