File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Doubt on executing a struts application in jboss server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Doubt on executing a struts application in jboss server" Watch "Doubt on executing a struts application in jboss server" New topic
Author

Doubt on executing a struts application in jboss server

Padma priya Gururajan
Ranch Hand

Joined: Oct 05, 2006
Posts: 434
Hi,
I have a doubt whether it is possible to execute a struts application in jboss server.
With regards,
Padma priya N.G.


Padma priya N.G.
Be the change you want to be - Mahatma Gandhi
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10033
    
163

Yes its possible.


[My Blog] [JavaRanch Journal]
Padma priya Gururajan
Ranch Hand

Joined: Oct 05, 2006
Posts: 434
Hi,
Is it similar to the execution of a servlet? Can you please explain.

Thanks in Advance,
PadmaPriya.N.G
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10033
    
163

Sorry, i did not understand your question. Are you asking whether Struts is similar to servlets? Or are you asking whether running a Struts application on JBoss is similar to running a Servlet on JBoss?

If you are looking for an answer for the latter question, then yes, running a Struts application will be similar to running a servlet application in JBoss. You just have to package the application into a .war (or may be even a .ear) and place it inside the deploy folder.
Padma priya Gururajan
Ranch Hand

Joined: Oct 05, 2006
Posts: 434
Hi,
Is the jar files available in
http://jakarta.apache.org/builds/jakarta-struts/release/v1.0.2 be included under the
directory structure.
With regards,
Padma priya N.G.
Padma priya Gururajan
Ranch Hand

Joined: Oct 05, 2006
Posts: 434
Hi,
I am clear that the war file has to be placed in the deploy folder. But, should the war file be placed in the web-apps folder. If so, should the folder "web-apps" be manually created?
With regards,
Padma priya N.G.
Sumit Malik
Ranch Hand

Joined: Jan 05, 2007
Posts: 84
Hi Padmapriyagururajan Priya,

Let me try to describe you in easier terms. Well, if you want to enable struts as in web layer then you need to place necessary jar's in lib directory of web module and even you have compile all actions(classes) with struts dependency.

By default its you who need to place dependent jars in lib folder of web module and if you are saying that is it already placed then answer is no because may be two web modules may be implemented on different framework and its totally upto you which dependent jars you are placing for both modules..

Another solution would be that you can add jar's in classpath but according to me its not an efficient approach because you will keep on adding jars as and when you need to work on different framework. In classpath we need to place only those jars which are generic for all modules.

I hope i have made myself clear...... Do let me know if i can assist you more....

Cheers !!!
Sumit Malik


If at first you don't succeed, don't try skydiving
Padma priya Gururajan
Ranch Hand

Joined: Oct 05, 2006
Posts: 434
Hi,
Can you explain what are the jars that needs to be included which are generic to the modules?
Thanks in advance.
Padma priya N.G.
Sumit Malik
Ranch Hand

Joined: Jan 05, 2007
Posts: 84
Hi Padmapriyagururajan Priya,

I would say this is very wide question... Let suppose your company or you are always instructed to use custom framework classes in all your projects that could be utility classes or it could be logging classes or it could be anything pertain to a standard defined for a classes.... Apart from that if you want runtime support for your classes then additional jars can be placed in lib directory of web module..... At runtime i suppose jars are first searched in classpath and then in lib directory....

I hope this would clarify your doubt....

Cheers !!!
Sumit Malik
Padma priya Gururajan
Ranch Hand

Joined: Oct 05, 2006
Posts: 434
Hi,
Is it fine if I include the struts-related jar files in the path /deploy/Arbitron1.war/web-inf/lib folder.
(Arbitron1.war is the root application).
with regards,
Padma priya N.G.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10033
    
163

Yes, that should be fine.

P.S.: Make sure that the you name the WEB-INF folder in upper case.
[ January 30, 2007: Message edited by: Jaikiran Pai ]
Sumit Malik
Ranch Hand

Joined: Jan 05, 2007
Posts: 84
Yes, that would suffice the requirement !!!

Cheers !!!
Sumit Malik
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt on executing a struts application in jboss server