wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse import war problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse import war problem" Watch "Eclipse import war problem" New topic
Author

Eclipse import war problem

vijay kumarg
Ranch Hand

Joined: Dec 14, 2006
Posts: 105
I have imported one war file into eclipse workspace.
But in tomcat manager window I am not able to see that application which is imported.The environment is tomcat 5.5 and eclipse 3.1.2 and jdk 1.5
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29241
    
139

Vijay,
Are you using a Tomcat plugin? If so, which one?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

It's hard to know where to start.

First off, I'm not sure what an Eclipse "Tomcat Manager Window" is supposed to be. That may be because Eclipse itself has no inherent J2EE support. I use sysdeo's Tomcat plugin, and there's nothing I'd call a "Tomcat Manager Window" in it. About the closest I could come would be the Tomcat topic that sysdeo adds to the Window/Preferences Dialog.

Eclipse can import source code to build a project, but it doesn't import finished products such as WARs except in the sense that an eclipse project can be set up to reference class directories or jarfiles that were built outside of Eclipse.


Customer surveys are for companies who didn't pay proper attention to begin with.
vijay kumarg
Ranch Hand

Joined: Dec 14, 2006
Posts: 105
Hello Jeanne and Tim,
In the eclipse installation directory this plugin is avilable
C:\Program Files\eclipse\plugins\com.sysdeo.eclipse.tomcat_3.1.0.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

OK, that should mean that you have the sysdeo plugin. Additional clues are the little cat icons that probably show up on your toolbar and/or a Tomcat menu.

However, I still don't understand what you expected "importing" a WAR to do for you.
vijay kumarg
Ranch Hand

Joined: Dec 14, 2006
Posts: 105
Tim,
My intention behind that is I want to use some demo applications avilable on differenr sites which are packaged as wars.
For this how should I proceed?

Thanks,
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

OK, I think I'm beginning to get an idea. The sysdeo plugin is a full-fledged Tomcat manager, so it can handle both Eclipse projects and binary apps. It's actually Tomcat running this stuff, so Eclipse doesn't get involved at all. You can just copy the WAR to the TOMCAT_HOME/webapps directory, or you can setup a web context in the TOMCAT_HOME/conf/Catalina/localhost directory that establishes a URL context and points to the WAR file, wherever you have it stored. This is slightly different in Tomcat4, but Tomcat4 is now about 3 years past end-of-life, so I sincerely hope you're using a Tomcat 5 or later.

Just to run the WARs under that Tomcat server requires nothing more than that. Like I said, Eclipse doesn't care. However, if you have source code for the WARs, you can create Eclipse Java Projects, which you'll usually want to do with one project per WAR. You'd then import the WAR source code into those projects. Finally, you'd use the Tomcat options on the Window/Preferences menu to indicate to sysdeo that the source code is related to the WARs. At that point, you'll be able to set breakpoints on the source files and do all the other debugging techniques same as if you'd built up your own WARs from your own source code.

Hope that makes things a little clearer.
[ February 20, 2007: Message edited by: Tim Holloway ]
vijay kumarg
Ranch Hand

Joined: Dec 14, 2006
Posts: 105
Thanks Tim,
Your broader explanation helped me to look into for more details.

Thanks,
Vijay
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse import war problem
 
Similar Threads
how to map dynamic web project name to root directory
/build.xml:372: java.net.UnknownHostException: root +ant
about GWT deploy to existing WAR file
Where to put war file
How to generate a .war file in Eclipse ?