• 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

Deploying Struts 2 in weblogic

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,

I am new to Struts, but I am given a task to deploy an struts appliation as a war file.

My code structure is :

~example(folder)
--HelloWorld.jsp
--HelloWorldA.jsp
~META-INF
~WEB-INF -
--> Classes
---example.xml
---struts.xml
---example(folder)
****ExampleSupport.class
****HelloWorld.class
****HelloWorldA.class
--> lib
---struts2-core-2.3.1
---xwork-2.1.3
---ognl-2.6.11
---freemarker-2.3.8
-->web.xml
-->weblogic.xml

(two different levels will have different symbols)

If the below figure is confusing, please refer this - indicates 1st level, -- indicated folder with folder i..e 2 levels from web app folder and so on


-example(folder)
--HelloWorld.jsp
--HelloWorldA.jsp
-META-INF
-WEB-INF -
-- Classes
---example.xml
---struts.xml
---example(folder)
----ExampleSupport.class
----HelloWorld.class
----HelloWorldA.class
-- lib
---struts2-core-2.3.1
---xwork-2.1.3
---ognl-2.6.11
---freemarker-2.3.8
--web.xml
--weblogic.xml

The code is:
example.xml :



struts.xml


ExampleSupport.java :

package example;
import com.opensymphony.xwork2.ActionSupport;
public class ExampleSupport extends ActionSupport {
}

HelloWorldA.java :


HelloWorld.java :


web.xml :


weblogic.xml




Now I get the below error, if I deploy the appliation
There is no Action mapped for namespace / and action name HelloWorld.

The url given is,
http://10.210.43.136:7001/testing/abc/HelloWorld.action

Please respond ASAP, thanks a ton!!
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The only obvious thing is that you have a directory named WEB-INF/Classes where it should be WEB-INF/classes
 
hari gutta
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Joe Ess wrote:The only obvious thing is that you have a directory named WEB-INF/Classes where it should be WEB-INF/classes



Nope, it's jus a typo..
I had 'classes' in my war
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI

Can you replace namespace attribute like this namespace="/"

i am not sure but can you try this one please. and hit the browser http://10.210.43.136:7001/testing/HelloWorld.action

thanks
 
asr chowdary
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Did you get the solution?? is it working??


thanks
 
hari gutta
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Suresh babua wrote:Hi

Did you get the solution?? is it working??


thanks



Nope I just gave it up. But my original application is working

To understand the structure better I tried this one, which I got online.
 
asr chowdary
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Thanks For your Reply

Its Okay ! If you get The Solutions for your queries Please Post them,Then Its useful for Others.


Good Luck ..!
reply
    Bookmark Topic Watch Topic
  • New Topic