aspose file tools*
The moose likes JBoss/WildFly and the fly likes please help in running this program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "please help in running this program" Watch "please help in running this program" New topic
Author

please help in running this program

Dinuka Arsakularatne
Ranch Hand

Joined: Aug 12, 2006
Posts: 198
hi guys,

i am new to the jboss app server. i just tried runnig this simple code given in the book called begining j2ee 5. but i get an error saying no such a directory. the code is as follows;

1) a usual jsp file named index.jsp
2) a application.xml file which is under META-INF directory. it is as follows;

<?xml version="1.0"?>
<application>
<display-name>Hello Java EE World!</display-name>
<module>
<web>
<web-uri>web-app.war</web-uri>
<context-root>/hello</context-root>
</web>
</module>
</application>

then according to the book i made a WAR file containing the index.jsp and a EAR file containing the WAR file +the META-INF directory.

then i copied the .ear file in to jboss/server/all/deploy directory.

when i run the server and type in localhost:8080/hello it gives an error saying that the resource is not found. what am i doing wrong? please help

thank you


if who i am is what i have, and what i have is lost, then who am i?<br /> <br />SCJP 5.0<br />SCWCD 1.4<br />SCBCD preparing
Dinuka Arsakularatne
Ranch Hand

Joined: Aug 12, 2006
Posts: 198
sorry guys. i made a slight mistake. its working now... sorry about it...

cheers
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Dinuka

"jboss/server/all/deploy"

Are you just playing around right now, or did you specifically want clustering?

The "all" configuration of JBoss adds clustering, whereas default is the core J2EE Services.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Dinuka Arsakularatne
Ranch Hand

Joined: Aug 12, 2006
Posts: 198
hey thank you mark for that piece of information , i didnt know that. actually the book said to put it into the all directory and didnt specify why. so thank you for that bit of information.

cheers
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: please help in running this program