- This topic has 8 replies, 2 voices, and was last updated 20 years, 11 months ago by Herbie Wilson.
-
AuthorPosts
-
Herbie WilsonMemberWhen I try to deploy my web application as a .WAR file (Packaged Archive), nothing happens. Is there a log file or something I can look at to see what went wrong? Does this happen to anyone else?
W2K
Eclipse 2.1.2
JDK 1.4.2
MyEclipse 2.6.4
Scott AndersonParticipantHmmm…. The log file is at <workspace-directory>/.metadata/.log. Can you also post your complete configuration information as we request in the ‘Posting Guidelines’ thread? With that and the log we should be able to figure out what’s up.
–Scott
MyEclipse Support
Scott AndersonParticipantNever mind the config info. I saw it in one of your other posts. The log we need though.
–Scott
MyEclipse Support
Herbie WilsonMemberHere is the contents of the platform.cfg.log file:
LogEntry.0=START_INSTALL_LOG
LogEntry.1=ALL_FEATURES_INSTALLED
LogEntry.2=END_INSTALL_LOG
eof=eofOK
Scott AndersonParticipantOops. Sorry, but that’s not the log file I meant. 🙂
The log file is located at <workspace>/.metadata/.log. It may not be visible in the explorer on windows if you have it set to ‘hide file extensions’.
When I try to deploy my web application as a .WAR file (Packaged Archive), nothing happens.
When you say nothing happens, do you mean that your application isn’t deployed, or that it’s not available via the browser? Can you also provide all the configuration information we request in the Posting Guidelines thread at the top of this forum? That often helps us quickly see the issue.
–Scott
MyEclipse Support
Herbie WilsonMember@scott wrote:
Oops. Sorry, but that’s not the log file I meant. 🙂
The log file is located at <workspace>/.metadata/.log. It may not be visible in the explorer on windows if you have it set to ‘hide file extensions’.
Gotcha. . .here is the contents of .log:
!SESSION Dec 12, 2003 11:03:17.906 ———————————————
java.version=1.4.2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -install file:C:/eclipse/
!ENTRY com.genuitec.eclipse.ast.deploy.core 1 1 Dec 12, 2003 11:03:17.906
!MESSAGE Build Exception
!STACK 0
Deployment descriptor: C:\development\workspace\communitylist-WAR\Web-Content\WEB-INF\web.xml does not exist.
at org.apache.tools.ant.taskdefs.War.setWebxml(War.java:121)
at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.privExportWebProject(Unknown Source)
at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.exportWebProject(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentPackager.exportWebProject(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.WebDeployment.deployAsPackageArchive(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizard$1.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)When you say nothing happens, do you mean that your application isn’t deployed, or that it’s not available via the browser?
The .war file never gets created in the <tomcat>/webapps folder.
Scott AndersonParticipantDeployment descriptor: C:\development\workspace\communitylist-WAR\Web-Content\WEB-INF\web.xml does not exist.
This looks like the culprit. It appears that your web project isn’t deployable because it lacks a web.xml file. That’s really odd since we put one in there when we create web projects. In any case, until you have a valid one, this things is going nowhere. 🙂
I’ve entered a bug report to get a better error message, like one that doesn’t require reading the log.
–Scott
MyEclipse Support
Herbie WilsonMemberNever mind. . .after actually reading that .log file, I notice the line that reads:
Deployment descriptor: C:\development\workspace\communitylist-WAR\Web-Content\WEB-INF\web.xml does not exist.
Once I added a generic web.xml file, it deployed just fine. Thanks for your responses! Keep up the great work.
Herbie WilsonMemberNot sure why Eclipse didn’t create the web.xml file for me automatically. Oh well. . .
-
AuthorPosts