In the root directory with build.xml & build.properties file.
Run "ant build hosted"
If directory not have .classpath or .project file:
Run 'ant eclipse.generate'
Showing posts with label Spring. Show all posts
Showing posts with label Spring. Show all posts
Thursday, 1 September 2011
Master Detail
Nothing more than /object1/{object1.id}/object2/{object2.id}
url="{ownerId}/pets/{petId}/edit"
[c:forEach var="pet" items="${owner.pets}">
...
[c:forEach var="visit" items="${pet.visits}">
TABLE: owners
PRIMARY KEY id
TABLE: pets
PRIMARY KEY id
FOREIGN KEY owner_id references the owners table id field
TABLE: visits
PRIMARY KEY id
FOREIGN KEY pet_id references the pets table id field
(1)Database
Like, TABLE: owners
PRIMARY KEY id
TABLE: types
PRIMARY KEY id
TABLE: pets
PRIMARY KEY id
FOREIGN KEY type_id references the types table id field
FOREIGN KEY owner_id references the owners table id field
(2)Business Layer
Like, Entity or Validation
...petclinic.Owner
...validation.OwnerValidator
(3)Business + Persistence Layer (ApplicationContext-jpa.xml)
Like, JPA Clinic Implementation
...jpa.EntityManagerClinic
JPA configuration is provided by orm.xml & persistence.xml
(4)Presentation Layer (controller)
web.xml & petclinic-servlet.xml
url="{ownerId}/pets/{petId}/edit"
[c:forEach var="pet" items="${owner.pets}">
...
[c:forEach var="visit" items="${pet.visits}">
TABLE: owners
PRIMARY KEY id
TABLE: pets
PRIMARY KEY id
FOREIGN KEY owner_id references the owners table id field
TABLE: visits
PRIMARY KEY id
FOREIGN KEY pet_id references the pets table id field
(1)Database
Like, TABLE: owners
PRIMARY KEY id
TABLE: types
PRIMARY KEY id
TABLE: pets
PRIMARY KEY id
FOREIGN KEY type_id references the types table id field
FOREIGN KEY owner_id references the owners table id field
(2)Business Layer
Like, Entity or Validation
...petclinic.Owner
...validation.OwnerValidator
(3)Business + Persistence Layer (ApplicationContext-jpa.xml)
Like, JPA Clinic Implementation
...jpa.EntityManagerClinic
JPA configuration is provided by orm.xml & persistence.xml
(4)Presentation Layer (controller)
web.xml & petclinic-servlet.xml
Thursday, 25 August 2011
JSP Custom Tags
1.Make Java public Class "MyTag"
2.Declare the "MyTag" class under file MyTag.tld
3.In JSP, define the <%@ taglib prefix="tagtool" uri="/WEB-INF/tlds/MyTag.tld" %>
& start to use it.
2.Declare the "MyTag" class under file MyTag.tld
3.In JSP, define the <%@ taglib prefix="tagtool" uri="/WEB-INF/tlds/MyTag.tld" %>
& start to use it.
Wednesday, 24 August 2011
ROO project
Task 2 - point to list.jsp & delete.jsp
Task 1 - point to create.jsp & show.jsp
a.Create new Client Form
http://localhost:8080/simple/clients?form
Form:-
1.need (method = RequestMethod.GET) & (method = RequestMethod.POST)
2.POST need (@ModelAttribute("reservation") Reservation reservation,
BindingResult result, SessionStatus status) AS parameter
3.JSP need modelAttribute="reservation"
b.Show Client
http://localhost:8080/simple/clients/2
Answer :- change views.xml +
Task 1 - point to create.jsp & show.jsp
a.Create new Client Form
http://localhost:8080/simple/clients?form
Form:-
1.need (method = RequestMethod.GET) & (method = RequestMethod.POST)
2.POST need (@ModelAttribute("reservation") Reservation reservation,
BindingResult result, SessionStatus status) AS parameter
3.JSP need modelAttribute="reservation"
b.Show Client
http://localhost:8080/simple/clients/2
Answer :- change views.xml +
username : ${client.username}
Wednesday, 17 August 2011
Use Derby
1.For the sake of low memory consumption and easy configuration,chosen Apache Derby
as database engine.
2.For testing purposes, the client/server mode is more appropriate because it allows you to inspect and edit data with any visual database tools that support JDBC. Example, the Eclipse Data Tools Platform (DTP).
3.To start the Derby server in the client/server mode, execute the startNetworkServer script in the bin directory.
4.Under ij
5.connect 'jdbc:derby://localhost:1527/vehicle;create=true' ;
as database engine.
2.For testing purposes, the client/server mode is more appropriate because it allows you to inspect and edit data with any visual database tools that support JDBC. Example, the Eclipse Data Tools Platform (DTP).
3.To start the Derby server in the client/server mode, execute the startNetworkServer script in the bin directory.
4.Under ij
5.connect 'jdbc:derby://localhost:1527/vehicle;create=true' ;
Wednesday, 10 August 2011
Can not find the tag library descriptor for "http://java.sun.com/portlet"
To fix add pluto-taglib.jar
===========================
[!-- To solve porlet taglibs problem --]
[dependency]
[groupId]org.apache.portals.pluto[/groupId]
[artifactId]pluto-taglib[/artifactId]
[version]2.0.0[/version]
[type]jar[/type]
[scope]compile[/scope]
[/dependency]
Need Pluto
Get Pluto
===========================
[!-- To solve porlet taglibs problem --]
[dependency]
[groupId]org.apache.portals.pluto[/groupId]
[artifactId]pluto-taglib[/artifactId]
[version]2.0.0[/version]
[type]jar[/type]
[scope]compile[/scope]
[/dependency]
Need Pluto
Get Pluto
cvc-complex-type.4: Attribute 'version' must appear on element 'portlet-app'.
Before
======
[portlet-app
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"]
Fix
===
[portlet-app
version="2"
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"]
======
[portlet-app
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"]
Fix
===
[portlet-app
version="2"
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"]
Thursday, 28 July 2011
java.lang.ClassNotFoundException: org.jboss.el.ExpressionFactoryImpl
Problem
=======
java.lang.ClassNotFoundException: org.jboss.el.ExpressionFactoryImpl
Solution
========
[dependency>
[groupId>org.jboss.el[/groupId]
[artifactId]com.springsource.org.jboss.el[/artifactId]
[version]2.0.0.GA[/version]
[/dependency]
=======
java.lang.ClassNotFoundException: org.jboss.el.ExpressionFactoryImpl
Solution
========
[dependency>
[groupId>org.jboss.el[/groupId]
[artifactId]com.springsource.org.jboss.el[/artifactId]
[version]2.0.0.GA[/version]
[/dependency]
java.lang.ClassNotFoundException: org.ajax4jsf.Filter
Problem
=======
java.lang.ClassNotFoundException: org.ajax4jsf.Filter
Solution
========
[dependency]
[groupId]org.richfaces.framework[/groupId]
[artifactId]richfaces-api[/artifactId]
[version]3.3.1.GA[/version]
[/dependency]
[dependency]
[groupId]org.richfaces.framework[/groupId]
[artifactId]richfaces-impl[/artifactId]
[version]3.3.1.GA[/version]
[/dependency]
[dependency]
[groupId]org.richfaces.ui[/groupId]
[artifactId]richfaces-ui[/artifactId]
[version]3.3.1.GA[/version]
[/dependency]
=======
java.lang.ClassNotFoundException: org.ajax4jsf.Filter
Solution
========
[dependency]
[groupId]org.richfaces.framework[/groupId]
[artifactId]richfaces-api[/artifactId]
[version]3.3.1.GA[/version]
[/dependency]
[dependency]
[groupId]org.richfaces.framework[/groupId]
[artifactId]richfaces-impl[/artifactId]
[version]3.3.1.GA[/version]
[/dependency]
[dependency]
[groupId]org.richfaces.ui[/groupId]
[artifactId]richfaces-ui[/artifactId]
[version]3.3.1.GA[/version]
[/dependency]
Monday, 25 July 2011
java.io.InvalidObjectException: Could not find a SessionFactory named: null org.hibernate.impl.SessionFactoryImpl.readResolve(SessionFactoryImpl.java:642)
Problem
=======
org.springframework.webflow.execution.repository.snapshot.SnapshotUnmarshalException: IOException thrown deserializing the flow execution stored in this snapshot -- this should not happen!
org.springframework.webflow.execution.repository.snapshot.SerializedFlowExecutionSnapshot.unmarshal(SerializedFlowExecutionSnapshot.java:100)
org.springframework.webflow.execution.repository.snapshot.SerializedFlowExecutionSnapshotFactory.restoreExecution(SerializedFlowExecutionSnapshotFactory.java:80)
java.io.InvalidObjectException: Could not find a SessionFactory named: null
org.hibernate.impl.SessionFactoryImpl.readResolve(SessionFactoryImpl.java:642)
Solution
========
???
Alternative
===========
[webflow:listener ref="hibernateFlowExecutionListener"/]
[bean id="hibernateFlowExecutionListener"
class="org.springframework.webflow.persistence.HibernateFlowExecutionListener"]
[constructor-arg ref="sessionFactory"/]
[constructor-arg ref="transactionManager"/]
[/bean]
[beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd"]
[bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource"]
[property name="driverClassName"
value="org.apache.derby.jdbc.ClientDriver"/]
[property name="url"
value="jdbc:derby://localhost:1527/library"/]
[property name="username" value="app"/]
[property name="password" value="app"/]
[/bean]
[bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"]
[property name="dataSource" ref="dataSource"/]
[property name="annotatedClasses"]
[list]
[value]com.apress.springrecipes.library.domain.BorrowingRecord[/value]
[/list]
[/property]
[property name="hibernateProperties"]
[props]
[prop key="hibernate.session_factory_name"]mySessionFactory[/prop]
[prop key="hibernate.dialect"]org.hibernate.dialect.DerbyDialect[/prop]
[prop key="hibernate.show_sql"]true[/prop]
[prop key="hibernate.hbm2ddl.auto"]update[/prop]
[/props]
[/property]
[/bean]
[bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager"]
[property name="sessionFactory" ref="sessionFactory"/]
[/bean]
=======
org.springframework.webflow.execution.repository.snapshot.SnapshotUnmarshalException: IOException thrown deserializing the flow execution stored in this snapshot -- this should not happen!
org.springframework.webflow.execution.repository.snapshot.SerializedFlowExecutionSnapshot.unmarshal(SerializedFlowExecutionSnapshot.java:100)
org.springframework.webflow.execution.repository.snapshot.SerializedFlowExecutionSnapshotFactory.restoreExecution(SerializedFlowExecutionSnapshotFactory.java:80)
java.io.InvalidObjectException: Could not find a SessionFactory named: null
org.hibernate.impl.SessionFactoryImpl.readResolve(SessionFactoryImpl.java:642)
Solution
========
???
Alternative
===========
[webflow:listener ref="hibernateFlowExecutionListener"/]
[bean id="hibernateFlowExecutionListener"
class="org.springframework.webflow.persistence.HibernateFlowExecutionListener"]
[constructor-arg ref="sessionFactory"/]
[constructor-arg ref="transactionManager"/]
[/bean]
[beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd"]
[bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource"]
[property name="driverClassName"
value="org.apache.derby.jdbc.ClientDriver"/]
[property name="url"
value="jdbc:derby://localhost:1527/library"/]
[property name="username" value="app"/]
[property name="password" value="app"/]
[/bean]
[bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"]
[property name="dataSource" ref="dataSource"/]
[property name="annotatedClasses"]
[list]
[value]com.apress.springrecipes.library.domain.BorrowingRecord[/value]
[/list]
[/property]
[property name="hibernateProperties"]
[props]
[prop key="hibernate.session_factory_name"]mySessionFactory[/prop]
[prop key="hibernate.dialect"]org.hibernate.dialect.DerbyDialect[/prop]
[prop key="hibernate.show_sql"]true[/prop]
[prop key="hibernate.hbm2ddl.auto"]update[/prop]
[/props]
[/property]
[/bean]
[bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager"]
[property name="sessionFactory" ref="sessionFactory"/]
[/bean]
org.hibernate.MappingException: Unknown entity:
Problem
=======
org.hibernate.MappingException: Unknown entity: com.apress.springrecipes.library.domain.BorrowingRecord
org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:580)
Solution
========
[property name="annotatedClasses"]
[list]
[value]com.apress.springrecipes.library.domain.BorrowingRecord[/value]
[/list]
[/property]
=======
org.hibernate.MappingException: Unknown entity: com.apress.springrecipes.library.domain.BorrowingRecord
org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:580)
Solution
========
[property name="annotatedClasses"]
[list]
[value]com.apress.springrecipes.library.domain.BorrowingRecord[/value]
[/list]
[/property]
java.lang.IllegalStateException: unread block data java.io.ObjectInputStream$BlockDataInputStream.setBlockDataMode(ObjectInputStream.java:2376)
SWF with persistence
Problem
=======
java.lang.IllegalStateException: unread block data
java.io.ObjectInputStream$BlockDataInputStream.setBlockDataMode(ObjectInputStream.java:2376)
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1360)
Solution
========
Under
[bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"]
Add
[property name="hibernateProperties"]
[props]
[prop key="hibernate.session_factory_name"]mySessionFactory[/prop]
Problem
=======
java.lang.IllegalStateException: unread block data
java.io.ObjectInputStream$BlockDataInputStream.setBlockDataMode(ObjectInputStream.java:2376)
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1360)
Solution
========
Under
[bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"]
Add
[property name="hibernateProperties"]
[props]
[prop key="hibernate.session_factory_name"]mySessionFactory[/prop]
base variable 'persistenceContext' spelled correctly
org.springframework.binding.expression.EvaluationException: The expression 'persistenceContext.persist(borrowingRecord)' did not resolve... is the base variable 'persistenceContext' spelled correctly?
org.springframework.binding.expression.el.ELExpression.getValue(ELExpression.java:60)
Solution
========
add the tag
[persistence-context /]
org.springframework.binding.expression.el.ELExpression.getValue(ELExpression.java:60)
Solution
========
add the tag
[persistence-context /]
Friday, 22 July 2011
Error creating bean with name 'securityFlowExecutionListener'
Problem
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowExecutor': Cannot create inner bean '(inner bean)' of type [org.springframework.webflow.config.FlowExecutionListenerLoaderFactoryBean] while setting bean property 'flowExecutionListenerLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'securityFlowExecutionListener' while setting bean property 'listeners'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityFlowExecutionListener' defined in ServletContext resource [/WEB-INF/library-webflow.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/security/vote/AffirmativeBased
Need the patch : http://jira.springframework.org/browse/SWF-1182
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowExecutor': Cannot create inner bean '(inner bean)' of type [org.springframework.webflow.config.FlowExecutionListenerLoaderFactoryBean] while setting bean property 'flowExecutionListenerLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'securityFlowExecutionListener' while setting bean property 'listeners'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityFlowExecutionListener' defined in ServletContext resource [/WEB-INF/library-webflow.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/security/vote/AffirmativeBased
Need the patch : http://jira.springframework.org/browse/SWF-1182
Thursday, 21 July 2011
Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security]
Problem
=====
SEVERE: Context initialization failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security]
Offending resource: ServletContext resource [/WEB-INF/library-security.xml]
Solution
=====
[dependency]
[groupId]org.springframework.security[/groupId]
[artifactId]spring-security-config[/artifactId]
[version]3.0.2.RELEASE[/version]
[/dependency]
[dependency]
[groupId]org.springframework.security[/groupId]
[artifactId]spring-security-web[/artifactId]
[version]3.0.2.RELEASE[/version]
=====
SEVERE: Context initialization failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security]
Offending resource: ServletContext resource [/WEB-INF/library-security.xml]
Solution
=====
[dependency]
[groupId]org.springframework.security[/groupId]
[artifactId]spring-security-config[/artifactId]
[version]3.0.2.RELEASE[/version]
[/dependency]
[dependency]
[groupId]org.springframework.security[/groupId]
[artifactId]spring-security-web[/artifactId]
[version]3.0.2.RELEASE[/version]
Tuesday, 19 July 2011
Web MVC & Flow maven
[packaging]war[/packaging]
[name]jackflow[/name]
[url]http://maven.apache.org[/url]
[properties]
[project.build.sourceEncoding]UTF-8[/project.build.sourceEncoding]
[spring.version]3.0.2.RELEASE[/spring.version]
[/properties]
[dependencies]
[dependency]
[groupId]org.springframework[/groupId]
[artifactId]spring-webmvc[/artifactId]
[version]${spring.version}[/version]
[/dependency]
[dependency]
[groupId]junit[/groupId]
[artifactId]junit[/artifactId]
[version]3.8.1[/version]
[scope]test[/scope]
[/dependency]
[dependency]
[groupId]org.springframework[/groupId]
[artifactId]spring-aop[/artifactId]
[version]${spring.version}[/version]
[/dependency]
[dependency]
[groupId]org.springframework[/groupId]
[artifactId]spring-web[/artifactId]
[version]${spring.version}[/version]
[/dependency]
[dependency]
[groupId]org.springframework[/groupId]
[artifactId]spring-context-support[/artifactId]
[version]${spring.version}[/version]
[/dependency]
[dependency]
[groupId]org.springframework[/groupId]
[artifactId]spring-beans[/artifactId]
[version]${spring.version}[/version]
[/dependency]
[dependency]
[groupId]org.springframework[/groupId]
[artifactId]spring-context[/artifactId]
[version]${spring.version}[/version]
[/dependency]
[dependency]
[groupId]org.springframework[/groupId]
[artifactId]spring-core[/artifactId]
[version]${spring.version}[/version]
[/dependency]
[!-- MVC --]
[dependency]
[groupId]org.springframework[/groupId]
[artifactId]spring-web[/artifactId]
[version]${spring.version}[/version]
[/dependency]
[!-- Web Flow --]
[dependency]
[groupId]org.springframework.webflow[/groupId]
[artifactId]spring-faces[/artifactId]
[version]2.0.8.RELEASE[/version]
[/dependency]
[!-- Unified EL --]
[dependency]
[groupId]org.jboss.el[/groupId]
[artifactId]com.springsource.org.jboss.el[/artifactId]
[version]2.0.0.GA[/version]
[/dependency]
[!-- [dependency] [groupId]org.jboss.seam[/groupId] [artifactId]jboss-el[/artifactId]
[version]2.0.0.GA[/version] [exclusions] [exclusion] [groupId]javax.el[/groupId]
[artifactId]el-api[/artifactId] [/exclusion] [/exclusions] [/dependency] --]
[!-- Using OGNL for EL --]
[!-- [dependency]
[groupId]ognl[/groupId]
[artifactId]ognl[/artifactId]
[version]2.6.9[/version]
[/dependency] --]
[!-- Security --]
[dependency]
[groupId]org.springframework.security[/groupId]
[artifactId]spring-security-core[/artifactId]
[version]3.0.2.RELEASE[/version]
[/dependency]
[/dependencies]
[repositories]
[repository]
[url]http://repository.jboss.org/maven2/[/url]
[id]jboss[/id]
[name]JBoss Repository[/name]
[/repository]
[/repositories]
[name]jackflow[/name]
[url]http://maven.apache.org[/url]
[properties]
[project.build.sourceEncoding]UTF-8[/project.build.sourceEncoding]
[spring.version]3.0.2.RELEASE[/spring.version]
[/properties]
[dependencies]
[dependency]
[groupId]org.springframework[/groupId]
[artifactId]spring-webmvc[/artifactId]
[version]${spring.version}[/version]
[/dependency]
[dependency]
[groupId]junit[/groupId]
[artifactId]junit[/artifactId]
[version]3.8.1[/version]
[scope]test[/scope]
[/dependency]
[dependency]
[groupId]org.springframework[/groupId]
[artifactId]spring-aop[/artifactId]
[version]${spring.version}[/version]
[/dependency]
[dependency]
[groupId]org.springframework[/groupId]
[artifactId]spring-web[/artifactId]
[version]${spring.version}[/version]
[/dependency]
[dependency]
[groupId]org.springframework[/groupId]
[artifactId]spring-context-support[/artifactId]
[version]${spring.version}[/version]
[/dependency]
[dependency]
[groupId]org.springframework[/groupId]
[artifactId]spring-beans[/artifactId]
[version]${spring.version}[/version]
[/dependency]
[dependency]
[groupId]org.springframework[/groupId]
[artifactId]spring-context[/artifactId]
[version]${spring.version}[/version]
[/dependency]
[dependency]
[groupId]org.springframework[/groupId]
[artifactId]spring-core[/artifactId]
[version]${spring.version}[/version]
[/dependency]
[!-- MVC --]
[dependency]
[groupId]org.springframework[/groupId]
[artifactId]spring-web[/artifactId]
[version]${spring.version}[/version]
[/dependency]
[!-- Web Flow --]
[dependency]
[groupId]org.springframework.webflow[/groupId]
[artifactId]spring-faces[/artifactId]
[version]2.0.8.RELEASE[/version]
[/dependency]
[!-- Unified EL --]
[dependency]
[groupId]org.jboss.el[/groupId]
[artifactId]com.springsource.org.jboss.el[/artifactId]
[version]2.0.0.GA[/version]
[/dependency]
[!-- [dependency] [groupId]org.jboss.seam[/groupId] [artifactId]jboss-el[/artifactId]
[version]2.0.0.GA[/version] [exclusions] [exclusion] [groupId]javax.el[/groupId]
[artifactId]el-api[/artifactId] [/exclusion] [/exclusions] [/dependency] --]
[!-- Using OGNL for EL --]
[!-- [dependency]
[groupId]ognl[/groupId]
[artifactId]ognl[/artifactId]
[version]2.6.9[/version]
[/dependency] --]
[!-- Security --]
[dependency]
[groupId]org.springframework.security[/groupId]
[artifactId]spring-security-core[/artifactId]
[version]3.0.2.RELEASE[/version]
[/dependency]
[/dependencies]
[repositories]
[repository]
[url]http://repository.jboss.org/maven2/[/url]
[id]jboss[/id]
[name]JBoss Repository[/name]
[/repository]
[/repositories]
ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
SEVERE: Error loading WebappClassLoader
context: /jackflow
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@1e63e3d
org.springframework.web.servlet.DispatcherServlet
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
Solution
========
(1)After put the spring-webmvc to the folder lib, then resolved.
*For MAVEN, remember to check package as “war”.
context: /jackflow
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@1e63e3d
org.springframework.web.servlet.DispatcherServlet
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
Solution
========
(1)After put the spring-webmvc to the folder lib, then resolved.
*For MAVEN, remember to check package as “war”.
Thursday, 14 July 2011
The requested resource (/city-struts/distance.do) is not available
Problem
=======
The requested resource (/city-struts/distance.do) is not available.
Solution
========
Project Facets
1.Dynamic Web
2.Java
3.Java Script
Deployment Assembly
1.Remove WebContent
=======
The requested resource (/city-struts/distance.do) is not available.
Solution
========
Project Facets
1.Dynamic Web
2.Java
3.Java Script
Deployment Assembly
1.Remove WebContent
Subscribe to:
Posts (Atom)