• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jboss not able to read .war file

 
geeta vemula
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am creating one ejb application which is having one ejb(ejb project) and one client application(Dynamic web project) using eclipse. when i am deploying the above two in jboss, it is creating .jar file for ejb project (in D:\jboss-5.0.1.GA\server\default\deploy folder) and .war for the dynamic web project in the same folder. But when I try to access jsp page which is in dynamic web project , it is saying page is unavailble(404 error),

I realized the problem is jboss server is not able to read .war file which it created. So how to solve this.

Thanks,
Geeta.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has the application deployed successfully? Check the logs to make sure that the application was picked up and deployed without errors.
 
geeta vemula
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes it is properly deployed in jboss. it is giving build successfull in blue color and also it is showing deploy .war file.

thanks,
geeta
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At what context is the application deployed? What URL do you use to access the application?
 
geeta vemula
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all,

I am creating one SimpleCalculator EJB application using eclipse and jboss

First I have craeted EJB application as SimpleCalculator. I am having one interface and one class which is placed under ejbmodule in eclipse. Then I say run on server automtically it gets deployed as SimpleCalculator.jar in jboss-home directory/server/default/deploy folder. and also it is giving as build successfull in eclipse console.

After this i am creating client application(Dynamic web project) called SimpleCalculatorWeb which access the SimpleCalculator EJB. This project is having one index page(home page) which is under webcontent folder in eclipse file structure and one servlet which will be under src/default package. For this client application I am am showing the path of EJB application by adding projects.

When I am trying to run the client application(SimpleCalculatorWeb) then in the console window of eclipse it is saying build successfull, deploy SimpleCalculatorWeb.war
but in the browser part of eclise where it is suppose to show index.jsp( home page), it is giving 404 error saying page not available.
I checked jboss deploy folder where SimpleCalculatorWeb.war file is there but why it is still not able to display index.jsp page?

When i say run on server automatically it is showing in the address bar as
http://localhost:8083/SimpleCalculatorWeb/index.jsp
and in the body it is giving 404 error.

Kindly help me in this regard.
Thanks,
Geeta



 
geeta vemula
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well i realized even if I try to run simple jsp file its not able to recognize giving class not found error. I realized jbossweb-tomcat-55.sar is nopt there in jboss-home/server/default/deploy folder.
so how to get it then?
one solution i got is to download jboss file which is having src in its name, so i downloaded so jboss-5.0.1.GA-src.zip file fromm jboss downloads. this folder is having tomcat folder but no bin..
I am very much confused how to get the tomcat in jboss

thanks
Geeta
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
giving class not found error.

Please post the full error message. It is hard to help you if we don't know which class is missing.
 
geeta vemula
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java]Deployment "vfszip:/E:/jboss-5.0.1.GA/server/default/deploy/counterEJBClient.war/" is in error due to the following reason(s): java.lang.ClassNotFoundException: org.jboss.web.tomcat.service.deployers.TomcatDeployment from BaseClassLoader@1dfe1a{VFSClassLoaderPolicy@115632d{name=vfsfile:/E:/jboss-5.0.1.GA/server/default/deployers/jbossweb.deployer/ domain=ClassLoaderDomain@1a19458{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader@ca0b6} roots=[MemoryContextHandler@19014134[path= context=vfsmemory://5c4o2s1g-hmhwl8-fyiwl3tw-1-fyiwlat7-b real=vfsmemory://5c4o2s1g-hmhwl8-fyiwl3tw-1-fyiwlat7-b], FileHandler@31702491[path=jbossweb.deployer context=file:/E:/jboss-5.0.1.GA/server/default/deployers/ real=file:/E:/jboss-5.0.1.GA/server/default/deployers/jbossweb.deployer/], DelegatingHandler@12952311[path=jbossweb.deployer/jboss-web-deployer.jar context=file:/E:/jboss-5.0.1.GA/server/default/deployers/ real=file:/E:/jboss-5.0.1.GA/server/default/deployers/jbossweb.deployer/jboss-web-deployer.jar]] delegates=null exported=[, org.jboss.web.tomcat.service.deployers, META-INF] <IMPORT-ALL>NON_EMPTY}}
Deployment "jboss.web:service=WebServer" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.web:service=WebServer' **
Deployment "vfszip:/E:/jboss-5.0.1.GA/server/default/deploy/Jsps.war/" is in error due to the following reason(s): java.lang.ClassNotFoundException: org.jboss.web.tomcat.service.deployers.TomcatDeployment from BaseClassLoader@1dfe1a{VFSClassLoaderPolicy@115632d{name=vfsfile:/E:/jboss-5.0.1.GA/server/default/deployers/jbossweb.deployer/ domain=ClassLoaderDomain@1a19458{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader@ca0b6} roots=[MemoryContextHandler@19014134[path= context=vfsmemory://5c4o2s1g-hmhwl8-fyiwl3tw-1-fyiwlat7-b real=vfsmemory://5c4o2s1g-hmhwl8-fyiwl3tw-1-fyiwlat7-b], FileHandler@31702491[path=jbossweb.deployer context=file:/E:/jboss-5.0.1.GA/server/default/deployers/ real=file:/E:/jboss-5.0.1.GA/server/default/deployers/jbossweb.deployer/], DelegatingHandler@12952311[path=jbossweb.deployer/jboss-web-deployer.jar context=file:/E:/jboss-5.0.1.GA/server/default/deployers/ real=file:/E:/jboss-5.0.1.GA/server/default/deployers/jbossweb.deployer/jboss-web-deployer.jar]] delegates=null exported=[, org.jboss.web.tomcat.service.deployers, META-INF] <IMPORT-ALL>NON_EMPTY}}

at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863)
at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:806)
---------------------------------------------------------------------------------------------------------------------------------------------------------
kindly see the above part of log file which i got while running the application in eclipse. I have highlighted the concerned message . Here i am trying to run jsps project(jspss.war) is created but not able to read tomact file.
Kindly tell from where to get that file
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The missing class should be located in E:/jboss-5.0.1.GAserver/standard/deploy/jbossweb.sar/jboss-web-service.jar
The fact that you are getting this error message leads me to believe that your JBoss AS installation is corrupt. I suggest reinstalling JBoss AS.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic