It's not a secret anymore!
The moose likes Struts and the fly likes Request is not coming into Struts2 action method while running in Weblogic 10.3.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Request is not coming into Struts2 action method while running in Weblogic 10.3.4" Watch "Request is not coming into Struts2 action method while running in Weblogic 10.3.4" New topic
Author

Request is not coming into Struts2 action method while running in Weblogic 10.3.4

Biswajit Rout
Greenhorn

Joined: Apr 20, 2012
Posts: 1
Hello All,

I am doing one development activity based on Struts 2 + Spring 3 + Spring JDBC Template + Extjs 4.1 + Oracle 11g + Weblogic 10.3.4
I have used Extjs 4.1 to develop the UI layer. In the js page i want the combo box to be populated based on the data available on the DB.
Here is the part of my js file

var crudComboStore = new Ext.data.JsonStore({
storeId: 'table_list',
proxy: {
type: 'ajax',
url: 'adminProcess.action',
reader: {
type: 'json',
root: 'crudData'
}
},
fields : ['tablename', 'displayName']
});
crudComboStore.load();

So when request will come to the above js page it will call adminProcess.action to get the data for combo box.
Here is the struts.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="false" />

<package name="default" namespace="/" extends="struts-default">

<action name="adminForm">
<result>admin/admin.html</result>
</action>

<action name="adminProcess" method="getMasterTableList"
class="com.gm.gpd.admin.action.AdminAction">
<result name="input">admin/admin.html</result>
<result name="error">admin/admin.html</result>
<result name="success">admin/success.jsp</result>
</action>
</package>
</struts>

So if you will check the struts.xml the request should now come into getMasterTableList method of the AdminAction.java.
However it is not at all entering into the getMasterTableList method.

FYI
The above piece of code is working fine with Tomcat.
Don't understand why it is not working in Weblogic.
Kindly suggest me a solution so that it will start working in weblogic as well.
Thanks in advance.


Best regards,
Biswajit
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Request is not coming into Struts2 action method while running in Weblogic 10.3.4
 
Similar Threads
Struts2: From One Action to another
Newbie HelloWorld Struts.xml problem
Struts 2 jsp Error.
Struts + Tomcat 6 + HelloWorld = Pain
Little Bit of Information