aspose file tools*
The moose likes Other Application Frameworks and the fly likes simpleFormController problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "simpleFormController problem." Watch "simpleFormController problem." New topic
Author

simpleFormController problem.

Ranganath Junpal
Ranch Hand

Joined: Aug 31, 2006
Posts: 76
Hi all,

I am new to spring. I am facing a problem with the simpleformcontroller I am having a problem to build a simple login form. the code is as follows.

app-servlet.xml
===================================================================
<!-- Form Controller for the Login page -->
<bean id="loginValidator" class="com.con.app.businessobjects.LoginValidator"/>
<bean id="LoginController" class="com.con.app.controller.LoginController">
<property name="formView"><value>index.jsp</value></property>
<property name="successView"><value>RacesGeneralList.do</value></property>
<property name="sessionForm"><value>true</value></property>
<property name="commandName"><value>Login</value></property>
<property name="commandClass"><value>com.con.app.beans.Login</value></property>
<property name="validator"><ref bean="loginValidator"/></property>
<property name="loginFacade">
<ref bean="LoginIbatis"/>
</property>
</bean>



<!-- Login Mappings -->
<bean id="LoginIbatis"
class="com.con.app.persistence.sqlmapdao.LoginSqlMapDAO">
<property name="ibatisWrapper">
<ref bean="sqlMapClientTemplate" />
</property>
</bean>



<bean id="sqlMapClientTemplate"
class="org.springframework.orm.ibatis.SqlMapClientTemplate">
<property name="sqlMapClient">
<ref bean="sqlMapClient" />
</property>
</bean>


<bean id="sqlMapClient"
class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
<property name="configLocation">
<value>WEB-INF/sql-map-config.xml</value>
</property>
<property name="dataSource">
<ref bean="dataSource" />
</property>
</bean>


<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://localhost:3306/f1" />
<property name="username" value="root" />
<property name="password" value="Passmein" />
</bean>


-----------------------------------------------------------------------------
web.xml
-----------------------------------------------------------------------------
<web-app>


<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/log4j.properties</param-value>
</context-param>


<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/f1App-servlet.xml</param-value>
</context-param>
<!--Context Load Listener.-->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

<listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>



<servlet>
<servlet-name>f1App</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>f1App</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

<taglib>
<taglib-uri>/spring</taglib-uri>
<taglib-location>/WEB-INF/lib/spring.tld</taglib-location>
</taglib>


<taglib>
<taglib-uri>/ctag</taglib-uri>
<taglib-location>/WEB-INF/lib/c.tld</taglib-location>
</taglib>


<!-- optional elements include -->

</web-app>


-----------------------------------------------------------------------------
LoginController
-----------------------------------------------------------------------------
package com.cons.app.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.SimpleFormController;
import org.springframework.web.servlet.view.RedirectView;

import com.cons.app.beans.Login;
import com.cons.app.iface.ILogin;

import org.apache.log4j.Logger;


public class LoginController extends SimpleFormController
{
Logger log=Logger.getLogger(LoginController.class);
/**
* instance of the Request Controller.
*/
private ILogin loginFacade;
private HttpSession session;

public LoginController()
{}

/**
* handles the Request.
*
*/
public ModelAndView onSubmit(Object command)
{
logger.debug("onSubmit Begin.........");
Login login=(Login)command;

System.out.println("<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>"+login.getUsername());
System.out.println("<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>"+login.getPasswd());
System.out.println("<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>"+login.getRole());

if(null!=login.getUsername() && null!=login.getPasswd())
{
session.invalidate();
return new ModelAndView(new RedirectView(getSuccessView()));
}
logger.debug("onSubmit end");
return new ModelAndView(new RedirectView(getFormView()));
}


public ILogin getLoginFacade()
{
return loginFacade;
}

public void setLoginFacade(ILogin loginFacade)
{
this.loginFacade = loginFacade;
}

protected Object formBackingObject(HttpServletRequest request)
{
Login login=loginFacade.getLoginCredentials(request.
getParameter("txtUserId"),request.getParameter("pwdPassword"));

session=request.getSession(false);
session.setAttribute("LoginDetails",login);
System.out.println("hre in Login Controller...............");
if(login == null)
{
login=new Login();
}
System.out.println("before returnin...............");
return login;
}
}



------------------------------------------------------------------------------
LoginValidator
------------------------------------------------------------------------------
package com.cons.app.businessobjects;

import org.springframework.validation.Validator;
import org.springframework.validation.Errors;
import org.apache.log4j.Logger;
import com.cons.app.beans.Login;


public class LoginValidator implements Validator
{
private static Logger logger=Logger.getLogger(LoginValidator.class);

public boolean supports(Class aClass)
{
logger.info("Login class of Validator");
return aClass.equals("Login.class");
}


public void validate(Object object,Errors errors)
{
Login login=(Login)object;

System.out.println("IN validator$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");

if(login==null)
{
logger.info("login is null");
errors.rejectValue("Login","The User Name/Password is Incorrect.");
}
else
{
if(login.getUsername()==null || "".equals(login.getUsername()))
{
logger.info("Invalid User Name");
errors.rejectValue("User Name","Invalid User Name");
}

if(login.getPasswd()==null || "".equals(login.getPasswd()))
{
logger.info("Invalid Password");
errors.rejectValue("Password","Invalid Password");
}
}
}
}




------------------------------------------------------------------------------
and i have Login.java. which is just a pojo with username,password getters and setters

the problem is like when i use <spring:bind path="login.username"> in the jsp page. I am getting 404 error. I am not able to figure out wht the problem is. I tried googling and reading some articles etc. But couldnt solve it. Please if some one can guide me to solve this.. i would be thankful.

the error i am getting in the tomcat console there is also an error regarding the log4j but i think for time being we can ignore it. The main problem is the 404 error when i access my login page.
---------------------------------------------------------------------
Jun 27, 2007 10:54:50 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jun 27, 2007 10:54:50 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive f1.war
Jun 27, 2007 10:54:52 AM org.apache.catalina.loader.WebappClassLoader validateJa
rFile
INFO: validateJarFile(D:\apache-tomcat-5.5.23\webapps\f1\WEB-INF\lib\servlet-api
.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: ja
vax/servlet/Servlet.class
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.D
igester).
log4j:WARN Please initialize the log4j system properly.
Jun 27, 2007 10:54:54 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 27, 2007 10:54:54 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/f1] startup failed due to previous errors
Jun 27, 2007 10:54:55 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 27, 2007 10:54:56 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jun 27, 2007 10:54:56 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/78 config=null
Jun 27, 2007 10:54:56 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jun 27, 2007 10:54:56 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 6359 ms
-----------------------------------------------------------------------

Thank you
Regards
[ June 27, 2007: Message edited by: Ranganath Junpal ]
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

the problem is like when i use <spring:bind path="login.username"> in the jsp page.

Why do you think it is ? I can't understand why you would have a 404 error with this tag. Please explain how you are trying to access your page, and when does the error occur.


[My Blog]
All roads lead to JavaRanch
Mukhtiar Ahmed
Greenhorn

Joined: Jun 27, 2007
Posts: 7
Hi,
there are problem in context listener

Jun 27, 2007 10:54:54 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart


if you do not have any applicationContext.xml file do not you contextLoaderListener

<!--Context Load Listener.-->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>


use DAO bean definition in applicationContext.xml


<!-- Login Mappings -->
<bean id="LoginIbatis"
class="com.con.app.persistence.sqlmapdao.LoginSqlMapDAO">
<property name="ibatisWrapper">
<ref bean="sqlMapClient" />
</property>
</bean>


<bean id="sqlMapClient"
class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
<property name="configLocation">
<value>WEB-INF/sql-map-config.xml</value>
</property>
<property name="dataSource">
<ref bean="dataSource" />
</property>
</bean>


<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://localhost:3306/f1" />
<property name="username" value="root" />
<property name="password" value="Passmein" />
</bean>

and define in web.xml like this

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>applicationContext.xml</param-value>
</context-param>
<!--Context Load Listener.-->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

and implement your DAO class like this

public class LoginSqlMapDAOIbatis extends extends SqlMapClientDaoSupport implements LoginSqlMapDAO {

}

do not define f1App-servlet.xml file in context param spring automatic load it.
Ranganath Junpal
Ranch Hand

Joined: Aug 31, 2006
Posts: 76
Thanks a lot muktiar. I will try and get back to you.
Ranganath Junpal
Ranch Hand

Joined: Aug 31, 2006
Posts: 76
Hi,

The problem was not there.. Infact the problem is in the LoginValidator and f1app-servlet.xml.

I am getting the error as follows. If some one knows the cause of the problem a kind help will be appreciated

==============================================================================
Error Log.
==============================================================================
2007-06-28 11:13:15,437 ERROR [org.springframework.web.context.ContextLoader] -
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'LoginController' defined in ServletContext resource [/WEB-INF/f1App-serv
let.xml]: Initialization of bean failed; nested exception is java.lang.IllegalAr
gumentException: Validator [com.cons.app.businessobjects.LoginValidator@11756
a4] does not support command class [com.cons.app.beans.Login]
Caused by:
java.lang.IllegalArgumentException: Validator [com.cons.app.businessobjects.L
oginValidator@11756a4] does not support command class [com.cons.app.beans.Log
in]
at org.springframework.web.servlet.mvc.BaseCommandController.initApplica
tionContext(BaseCommandController.java:304)
at org.springframework.context.support.ApplicationObjectSupport.setAppli
cationContext(ApplicationObjectSupport.java:73)
at org.springframework.context.support.ApplicationContextAwareProcessor.
postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:72)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanF
actory.java:301)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1167)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:425)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
at org.springframework.context.support.AbstractApplicationContext.getBea
n(AbstractApplicationContext.java:733)
at org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.reg
isterHandler(AbstractUrlHandlerMapping.java:256)
at org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.regis
terHandlers(SimpleUrlHandlerMapping.java:125)
at org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.initA
pplicationContext(SimpleUrlHandlerMapping.java:103)
at org.springframework.context.support.ApplicationObjectSupport.setAppli
cationContext(ApplicationObjectSupport.java:73)
at org.springframework.context.support.ApplicationContextAwareProcessor.
postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:72)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanF
actory.java:301)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1167)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:425)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:287)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:244)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:187)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3764)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
216)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:74
0)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)

at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714
)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
48)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
2007-06-28 11:13:15,453 ERROR [org.apache.catalina.core.ContainerBase.[Catalina]
.[localhost].[/f1]] - Exception sending context initialized event to listener in
stance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'LoginController' defined in ServletContext resource [/WEB-INF/f1App-serv
let.xml]: Initialization of bean failed; nested exception is java.lang.IllegalAr
gumentException: Validator [com.constela.f1.businessobjects.LoginValidator@11756
a4] does not support command class [com.cons.app.beans.Login]
Caused by:
java.lang.IllegalArgumentException: Validator [com.cons.app.businessobjects.L
oginValidator@11756a4] does not support command class [com.cons.app.beans.Log
in]
at org.springframework.web.servlet.mvc.BaseCommandController.initApplica
tionContext(BaseCommandController.java:304)
at org.springframework.context.support.ApplicationObjectSupport.setAppli
cationContext(ApplicationObjectSupport.java:73)
at org.springframework.context.support.ApplicationContextAwareProcessor.
postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:72)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanF
actory.java:301)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1167)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:425)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
at org.springframework.context.support.AbstractApplicationContext.getBea
n(AbstractApplicationContext.java:733)
at org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.reg
isterHandler(AbstractUrlHandlerMapping.java:256)
at org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.regis
terHandlers(SimpleUrlHandlerMapping.java:125)
at org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.initA
pplicationContext(SimpleUrlHandlerMapping.java:103)
at org.springframework.context.support.ApplicationObjectSupport.setAppli
cationContext(ApplicationObjectSupport.java:73)
at org.springframework.context.support.ApplicationContextAwareProcessor.
postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:72)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanF
actory.java:301)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1167)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:425)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:287)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:244)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:187)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3764)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
216)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:74
0)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)

at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714
)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
48)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Jun 28, 2007 11:13:15 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 28, 2007 11:13:15 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/f1] startup failed due to previous errors
2007-06-28 11:13:15,453 DEBUG [org.apache.catalina.core.ContainerBase.[Catalina]
.[localhost].[/f1]] - Stopping filters
2007-06-28 11:13:15,453 INFO [org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/f1]] - Closing Spring root WebApplicationContext
2007-06-28 11:13:15,453 DEBUG [org.apache.catalina.session.ManagerBase] - Stoppi
ng
2007-06-28 11:13:15,453 DEBUG [org.apache.catalina.session.ManagerBase] - Unload
ing persisted sessions
2007-06-28 11:13:15,453 DEBUG [org.apache.catalina.session.ManagerBase] - Saving
persisted sessions to SESSIONS.ser
2007-06-28 11:13:15,453 DEBUG [org.apache.catalina.session.ManagerBase] - Unload
ing 1 sessions
2007-06-28 11:13:15,453 DEBUG [org.apache.catalina.core.ContainerBase.[Catalina]
.[localhost].[/f1]] - writeObject() storing session 41F8412C61FD356A30B444816961
4F1C
2007-06-28 11:13:15,453 DEBUG [org.apache.catalina.session.ManagerBase] - Expiri
ng 1 persisted sessions
2007-06-28 11:13:15,453 DEBUG [org.apache.catalina.session.ManagerBase] - Unload
ing complete
Jun 28, 2007 11:13:16 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 28, 2007 11:13:16 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jun 28, 2007 11:13:16 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/109 config=null
Jun 28, 2007 11:13:16 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jun 28, 2007 11:13:16 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 13922 ms


==============================================================================

Thank you
Herman Schelti
Ranch Hand

Joined: Jul 17, 2006
Posts: 387
hi,

here is your error:
nested exception is java.lang.IllegalArgumentException: Validator [com.cons.app.businessobjects.LoginValidator@11756
a4] does not support command class [com.cons.app.beans.Login]

I think 'return aClass.equals("Login.class")' is incorrect
(it will return false)

Can you try
return Login.class.isAssignableFrom(aClass);
?

Good luck,
Herman
Ranganath Junpal
Ranch Hand

Joined: Aug 31, 2006
Posts: 76
thanks a lot herman. i will try and get back to you.

Regards
R
Ranganath Junpal
Ranch Hand

Joined: Aug 31, 2006
Posts: 76
Hi again,

I got my previous problem solved thanks to herman. Now i am getting yet another exception. The Exception fired in my tomcat console is as follows. kindly if any one is aware of the problem. please let me know the solution at the earliest.

I have set my commandName as Login in app-servlet.xml as follows
-------------------------------------------------------------------------------
app-servlet.xml
-------------------------------------------------------------------------------
<!-- Form Controller for the Login page -->
<bean id="loginValidator" class="com.con.app.businessobjects.LoginValidator"/>
<bean id="LoginController" class="com.con.app.controller.LoginController">
<property name="formView"><value>index.jsp</value></property>
<property name="successView"><value>RacesGeneralList.do</value></property>
<property name="sessionForm"><value>true</value></property>
<property name="commandName"><value>Login</value></property>
<property name="commandClass"><value>com.con.app.beans.Login</value></property>
<property name="validator"><ref bean="loginValidator"/></property>
<property name="loginFacade">
<ref bean="LoginIbatis"/>
</property>
</bean>
-------------------------------------------------------------------------------
Exceptions fired is as follows.
-------------------------------------------------------------------------------
2007-06-29 11:26:15,468 DEBUG [org.apache.jasper.compiler.SmapUtil$SDEInstaller]
- class attrCount incremented
2007-06-29 11:26:15,562 DEBUG [org.springframework.web.util.ExpressionEvaluation
Utils] - Found JSP 2.0 ExpressionEvaluator
2007-06-29 11:26:15,562 DEBUG [org.springframework.web.util.ExpressionEvaluation
Utils] - Found Jakarta JSTL ExpressionEvaluatorManager
2007-06-29 11:26:15,578 ERROR [org.springframework.web.servlet.tags.BindTag] - N
either BindingResult nor plain target object for bean name 'Login' available as
request attribute
javax.servlet.jsp.JspTagException: Neither BindingResult nor plain target object
for bean name 'Login' available as request attribute
at org.springframework.web.servlet.tags.BindTag.doStartTagInternal(BindT
ag.java:119)
at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTa
g(RequestContextAwareTag.java:77)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:120)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:328)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
15)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:685)
at java.lang.Thread.run(Thread.java:619)
2007-06-29 11:26:15,781 ERROR [org.apache.catalina.core.ContainerBase.[Catalina]
.[localhost].[/f1].[jsp]] - Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspTagException: Neither BindingResult nor plain target object
for bean name 'Login' available as request attribute
at org.springframework.web.servlet.tags.BindTag.doStartTagInternal(BindT
ag.java:119)
at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTa
g(RequestContextAwareTag.java:77)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:120)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:328)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
15)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:685)
at java.lang.Thread.run(Thread.java:619)
2007-06-29 11:26:36,375 DEBUG [org.apache.catalina.session.ManagerBase] - Start
expire sessions StandardManager at 1183141596375 sessioncount 7
2007-06-29 11:26:36,375 DEBUG [org.apache.catalina.session.ManagerBase] - End ex
pire sessions StandardManager processingTime 0 expired sessions: 0
2007-06-29 11:27:36,421 DEBUG [org.apache.catalina.session.ManagerBase] - Start
expire sessions StandardManager at 1183141656421 sessioncount 7
2007-06-29 11:27:36,437 DEBUG [org.apache.catalina.session.ManagerBase] - End ex
pire sessions StandardManager processingTime 0 expired sessions: 0
2007-06-29 11:28:36,453 DEBUG [org.apache.catalina.session.ManagerBase] - Start
expire sessions StandardManager at 1183141716453 sessioncount 7
2007-06-29 11:28:36,453 DEBUG [org.apache.catalina.session.ManagerBase] - End ex
pire sessions StandardManager processingTime 0 expired sessions: 0
2007-06-29 11:29:36,484 DEBUG [org.apache.catalina.session.ManagerBase] - Start
expire sessions StandardManager at 1183141776484 sessioncount 7
2007-06-29 11:29:36,484 DEBUG [org.apache.catalina.session.ManagerBase] - End ex
pire sessions StandardManager processingTime 0 expired sessions: 0
2007-06-29 11:30:36,500 DEBUG [org.apache.catalina.session.ManagerBase] - Start
expire sessions StandardManager at 1183141836500 sessioncount 7
2007-06-29 11:30:36,500 DEBUG [org.apache.catalina.session.ManagerBase] - End ex
pire sessions StandardManager processingTime 0 expired sessions: 0
2007-06-29 11:31:36,546 DEBUG [org.apache.catalina.session.ManagerBase] - Start
expire sessions StandardManager at 1183141896546 sessioncount 7
2007-06-29 11:31:38,687 DEBUG [org.apache.catalina.session.ManagerBase] - End ex
pire sessions StandardManager processingTime 2141 expired sessions: 1

-------------------------------------------------------------------------------

The Login pojo binding is not happening with my html form. its firing the above exceptions.
-------------------------------------------------------------------------------
my jsp page spring:bind code
-------------------------------------------------------------------------------
<spring:bind path="Login.username">
<input type="text" name="txtUserId" class="txtfield"/>
</spring:bind>
</td>
</tr>
<tr>
<td width="40%" class="txt"><font color="#FF0000">*</font> Password :</td>
<td width="30%">
<spring:bind path="Login.passwd">
<input type="password" name="pwdPassword" class="txtfield"/>
</spring:bind>
-------------------------------------------------------------------------------


Thank you
Regards
[ June 29, 2007: Message edited by: Ranganath Junpal ]
Herman Schelti
Ranch Hand

Joined: Jul 17, 2006
Posts: 387
hi Ranganath,

I'm only glad I could help.

About your new question: you jsp is looking for a bean called 'Login', and it should be an instance of the class Login.

You can create this object by overriding the formBackingObject-method of SimpleFormController, something like


Spring has a very nice reference manual at http://www.springframework.org/documentation

It's really worth reading!

Herman
Ranganath Junpal
Ranch Hand

Joined: Aug 31, 2006
Posts: 76
Dear Herman,

I think you would have not seen my controller class. I do have my formBackingObject returning the instance of Login object. But still i am having this error. ie where i am stuck. Please go through the code and i do have full code in my first post. kindly let me know the solution if there is any thing wrong here.. Thanks a lot.


LoginController
-----------------------------------------------------------------------------
package com.cons.app.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.SimpleFormController;
import org.springframework.web.servlet.view.RedirectView;

import com.cons.app.beans.Login;
import com.cons.app.iface.ILogin;

import org.apache.log4j.Logger;


public class LoginController extends SimpleFormController
{
Logger log=Logger.getLogger(LoginController.class);
/**
* instance of the Request Controller.
*/
private ILogin loginFacade;
private HttpSession session;

public LoginController()
{}

/**
* handles the Request.
*
*/
public ModelAndView onSubmit(Object command)
{
logger.debug("onSubmit Begin.........");
Login login=(Login)command;

System.out.println("<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>"+login.getUsername());
System.out.println("<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>"+login.getPasswd());
System.out.println("<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>"+login.getRole());

if(null!=login.getUsername() && null!=login.getPasswd())
{
session.invalidate();
return new ModelAndView(new RedirectView(getSuccessView()));
}
logger.debug("onSubmit end");
return new ModelAndView(new RedirectView(getFormView()));
}


public ILogin getLoginFacade()
{
return loginFacade;
}

public void setLoginFacade(ILogin loginFacade)
{
this.loginFacade = loginFacade;
}

protected Object formBackingObject(HttpServletRequest request)
{
Login login=loginFacade.getLoginCredentials(request.
getParameter("txtUserId"),request.getParameter("pwdPassword"));

session=request.getSession(false);
session.setAttribute("LoginDetails",login);
System.out.println("hre in Login Controller...............");
if(login == null)
{
login=new Login();
}
System.out.println("before returnin...............");
return login;
}
}

===========================================================================
Herman Schelti
Ranch Hand

Joined: Jul 17, 2006
Posts: 387
hi Ranganath,

You are right, I had not seen that method in your code.

The name of the bean in this method should be the same as the one in your jsp.

session.setAttribute("LoginDetails",login);
<spring:bind path="Login.username">

So: use LoginDetails or Login, but not both.

Hope this helps.

Herman
Ranganath Junpal
Ranch Hand

Joined: Aug 31, 2006
Posts: 76
hi herman,

Thanks a lot. the problem got sorted out.

Regards
anwar pasha
Greenhorn

Joined: Jun 10, 2008
Posts: 19
HI, I am getting this error,i have seen fas-services-servlet.xml file bean sqlMapClient calling db.........

9:15:09,826 ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/fas-services-servlet.xml]: Invocation of init method failed; nested exception is java.lang.ExceptionInInitializerError
Caused by:
java.lang.ExceptionInInitializerError
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.<init>(SqlMapConfigParser.java:55)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.<init>(SqlMapConfigParser.java:42)
at com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:62)
at org.springframework.orm.ibatis.SqlMapClientFactoryBean.buildSqlMapClient(SqlMapClientFactoryBean.java:329)
at org.springframework.orm.ibatis.SqlMapClientFactoryBean.afterPropertiesSet(SqlMapClientFactoryBean.java:280)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1175)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:276)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:241)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy38.start(Unknown Source)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy39.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:490)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: Error creating logger for class class com.ibatis.sqlmap.engine.impl.SqlMapClientImpl. Cause: java.lang.ClassCastException: com.ibatis.common.logging.jakarta.JakartaCommonsLoggingImpl cannot be cast to com.ibatis.common.logging.Log
at com.ibatis.common.logging.LogFactory.getLog(LogFactory.java:33)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.<clinit>(SqlMapClientImpl.java:41)
... 152 more
Caused by: java.lang.ClassCastException: com.ibatis.common.logging.jakarta.JakartaCommonsLoggingImpl cannot be cast to com.ibatis.common.logging.Log
at com.ibatis.common.logging.LogFactory.getLog(LogFactory.java:31)
... 153 more
19:15:09,830 ERROR [[/fas-services]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
 
 
subject: simpleFormController problem.