Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

vfszip deployment error in Jboss 5.0.1 while deploying struts2 application

 
vikram mishra
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
following is the console message i got while deploying my app...; kindly reply as early as possible. i have been struggling for past one week with this.


 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Always followed the "caused by" trail on the first exception stack trace. The root cause is:

Caused by: Action class [com.vikram.actions.WelcomeAction] not found - action - vfszip:/home/vikram/Vikram's%20folder/Softwares/jboss-5.0.1.GA/server/default/deploy/Struts2final%20attempt.war/WEB-INF/classes/struts.xml:10:70

This tells me that the struts.xml file, on line(?) 10 is referencing the com.vikram.actions.WelcomeAction class, but that class cannot be found.

Where, exactly, in your application is this class located?

I also noticed that you WAR file name has a space in it (the %20): Struts2final%20attempt.war. That is a very bad idea. Get rid of the space. Also get rid of the space and the apostrophe in the directory name Vikram's%20folder. There is nothing like putting spaces and special characters in directory names to confuse Java code.
 
vikram mishra
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you peter for your valuable suggestion but the problem is actually "Caused by: Unable to load vfszip-/...../struts.xml - Class: org.jboss.virtual.plugins.cache.AbstractVFSCache
File: AbstractVFSCache.java
Method: getFile
Line: 75 - org/jboss/virtual/plugins/cache/AbstractVFSCache.java:75:-1"

i donno how come this doesn't work..
when i make application with "annotations" it works but with xml it doesn't . kindly enlighten me what is goin around here with vfszip loading
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I said "first exception stack trace", you focused on the second exception stack trace. Fix the first one, then the second will probably go away.

Please do not use large amounts of colored text. I fixed your post for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic