This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Getting Error while deployement of project in JBOSS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Getting Error while deployement of project in JBOSS" Watch "Getting Error while deployement of project in JBOSS" New topic
Author

Getting Error while deployement of project in JBOSS

rakesh kopperapu
Greenhorn

Joined: Oct 17, 2008
Posts: 8
Hi
I taken latest project from repository.
I deployed the project into JBOSS,and i started the server
I am facing the following problems
1)java.util.zip.ZipException: invalid entry size (expected 1282408456 but got 25 bytes)
2)org.jboss.deployment.DeploymentException: URL file:/C:/jboss-4.0.2/server/default/deploy/TCCSite.war/ deployment failed

Please assist me

Kuldip Shetty
Ranch Hand

Joined: Jan 07, 2010
Posts: 39

As mentioned in your error discription I am assuming that error 1 and 2 are related. As per the exception TCCSite.war file might be corrupted. Verify the TCCSite.war file format.

Kuldip
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

What tool did you use to create the WAR file? Some ZIP utilities create files that are not compatible with the compression mechanisms used for Java archive files (JAR, WAR, etc)


JBoss In Action
Rohithaksha Kalluraya
Greenhorn

Joined: Jan 12, 2010
Posts: 10
Use view and verify the content. If this fails, your war file is certainly corrupt.
rakesh kopperapu
Greenhorn

Joined: Oct 17, 2008
Posts: 8
I m using my eclipse,But i am able to deploy and run the other application.
I am facing problem while deploying this.Even i deleted the project and i taken latest again from repository..
Even i am facing same issue
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9947
    
161

For the time being, try deploying this outside of the IDE. Place the application in the deploy folder of the server and then from the command prompt start the server. See if that works.

By the way, when you deploy the application from Eclispe, is the server already up and running? Maybe the hot deployment scanner picks up the deployment even before it is completely copied to deploy folder.

And finally, did you try out the various suggestions already given in this thread?

[My Blog] [JavaRanch Journal]
rakesh kopperapu
Greenhorn

Joined: Oct 17, 2008
Posts: 8
Ya i tried all possible ways,i dont know why the error is coming,even i tried to create the war file in cmd prompt also.
And i deployed using the my eclipse into the folder C:\jboss-4.0.2\server\default\deploy,And i tried in both ways means i deployed while running the server as well as after shutting down the server..
varnita gupte
Greenhorn

Joined: Aug 06, 2009
Posts: 12
Hi,

Remove the generated files in the work as well as in the tmp folder.
some times the catched files also give problem.


Varnita
rakesh kopperapu
Greenhorn

Joined: Oct 17, 2008
Posts: 8
even i tried to create war file in different ways i am getting the same exceptions,first one is
java.util.zip.ZipException: invalid entry size (expected 1282408456 but got 25 bytes)
and the second one deployemnt failed
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9947
    
161

Rakesh,

You haven't yet answered the questions asked earlier in this thread. Please re-read the replies in this thread.
Ravichandran Kg
Greenhorn

Joined: Dec 23, 2009
Posts: 1
Rakesh,

Are you deploying the war in to server? I had a problem similar this, in which i was uploading the war to server in TEXT format. If it is not working in your local itself, then my suggestion will be useless for you .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting Error while deployement of project in JBOSS
 
Similar Threads
Error whiile using JBoss Tool with eclips
JBoss 4.2.0 and Oracle 10g Configuration Issue with new DataSource
How to deploy a JAVA application in JBOSS as a Dynamic web Application?
how to track thestatus JBoss server.
Apache andTomcat server