Etat HTTP 500 - No action.. après l'ajout des jars Hibernate sur un projet Struts
Bonsoir tous le monde,
Cela fais deux jours que j'essaye de résoudre l'erreur suivante:
Etat HTTP 500 - No action instance for path /register could be created
En fait le path /register existe dans struts-config.xml et mon formulaire JSP ma permis bien avant d'injecté hibernate d'envoyer les données à l'action!!
Voici mn struts-config.xml :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<data-sources />
<form-beans>
<form-bean name="register" type="com.kb.actionform.UserInputForm" ></form-bean>
<form-bean name="updateRegister" type="com.kb.actionform.UserInputForm" ></form-bean>
<form-bean name="DeleteUser" type="com.kb.actionform.UserInputForm" ></form-bean>
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings>
<action
path="/register"
attribute="UserInputForm"
input="/index.jsp"
name="register"
type="com.kb.action.UserInputAction">
<forward name="registedSuccess" path="/index.jsp" />
</action>
<action
attribute="UserInputForm"
input="/updateUser.jsp"
name="updateRegister"
path="/updateRegister"
type="com.kb.action.UserInputAction">
<forward name="registedSuccess" path="/index.jsp" />
</action>
<action
attribute="UserInputForm"
input="/index.jsp"
name="DeleteUser"
path="/DeleteUser"
type="com.kb.action.UserInputAction">
<forward name="registedSuccess" path="/index.jsp" />
</action>
</action-mappings>
<message-resources parameter="com.kb.struts.ApplicationResources" />
</struts-config> |
et mon hibernate.cfg.xml :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration>
<session-factory>
<property name="connection.username">root</property>
<property name="connection.url">
jdbc:mysql://localhost/usersdb
</property>
<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>
<property name="myeclipse.connection.profile">
mySqlConn
</property>
<property name="connection.password">root</property>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<mapping resource="com/kb/commun/Utilisateurs.hbm.xml" />
</session-factory>
</hibernate-configuration> |
Merci de votre aide, cela fait trois jours que j'essaye de trouvé une solution à cette erreur mais sans issue.