You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Rout, Biswajit" <bi...@hp.com> on 2012/04/20 14:44:51 UTC

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

Hello All,

Project architecture based on Struts 2 + Spring 3 + Spring JDBC<http://www.coderanch.com/forums/f-3/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<http://www.coderanch.com/forums/f-58/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
Planned Vacation : From 2-July-2012 to 6-July-2012