• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubt on executing a struts application in jboss server

 
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a doubt whether it is possible to execute a struts application in jboss server.
With regards,
Padma priya N.G.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes its possible.
 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Is it similar to the execution of a servlet? Can you please explain.

Thanks in Advance,
PadmaPriya.N.G
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 437
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 437
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Padma priya Gururajan
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 437
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, that would suffice the requirement !!!

Cheers !!!
Sumit Malik
 
reply
    Bookmark Topic Watch Topic
  • New Topic