This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes Deploying Struts 2 in weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Deploying Struts 2 in weblogic" Watch "Deploying Struts 2 in weblogic" New topic
Author

Deploying Struts 2 in weblogic

hari gutta
Ranch Hand

Joined: Mar 03, 2013
Posts: 33
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!!
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8935
    
    9

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


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
hari gutta
Ranch Hand

Joined: Mar 03, 2013
Posts: 33
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
asr chowdary
Ranch Hand

Joined: Mar 14, 2013
Posts: 35
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

Joined: Mar 14, 2013
Posts: 35
Hi

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


thanks
hari gutta
Ranch Hand

Joined: Mar 03, 2013
Posts: 33
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

Joined: Mar 14, 2013
Posts: 35
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 ..!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying Struts 2 in weblogic