aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Problem regarding import/exporting .War files in dynamic project application 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 "Problem regarding import/exporting .War files in dynamic project application" Watch "Problem regarding import/exporting .War files in dynamic project application" New topic
Author

Problem regarding import/exporting .War files in dynamic project application

Priyanka Reddy Chitla
Greenhorn

Joined: Nov 03, 2011
Posts: 2
I am using Eclipse 3.5 JavaEE for development purpose.Whenever any .war file related to dynamic project development is being imported/exported,it is causing problem with the content java Resources. after importing the .war file, it's package structure is blank, I have to again copy and paste those source codes to deploy dynamic projects. Please give me a solution asap.
Thanks & Regards,
Priyanka Reddy.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5837
    
    7

I think you need to be a little more specific as to what is happening. Like what to you mean by import and export (exactly what menu items or dialog buttons are you clicking on), and what are the "content Java Resources"?

When I work with a Dynamic Web Project, it deploys and runs just fine.


JBoss In Action
Priyanka Reddy Chitla
Greenhorn

Joined: Nov 03, 2011
Posts: 2
I am unable to extract a .War with .java and .classes source files which are under the packages in the Dynamic web project in the eclipse IDE 3.5. After we import the generated .War file , .java and .class files are missing in the file.


Thanks & Regards,
Priyanka Reddy
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5837
    
    7

You ignored this part of my post:

exactly what menu items or dialog buttons are you clicking on


So let me give you an example of what I mean. I have a Dynamic Web Project with a servlet. I did the following:

1) Built the project: right-clicked the project, selected Build Project
2) Exported a WAR: File | Export | Web | WAR file
2a) In the WAR Export dialog, I gave a full path Destination (left the rest at the defaults)

The resulting WAR file contained:
* META-INF/MANIFEST.MF
* WEB-INF/classes/path /to/my/Servlet.class

So I have the .class files in my WAR.

Now how is what you are doing different from what I did?
 
jQuery in Action, 2nd edition
 
subject: Problem regarding import/exporting .War files in dynamic project application