This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
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.
At what context is the application deployed? What URL do you use to access the application?
geeta vemula
Ranch Hand
Joined: Jul 18, 2008
Posts: 208
posted
0
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?
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
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
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.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.