Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Atul Kotwale

Greenhorn
+ Follow
since Dec 22, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Atul Kotwale

Hi,

It seems that your spring jar version and the version of xsd mentioned in the configuration file is not same. you might have copied the configuration file from net.
8 years ago
your configuration looks fine to me but in log you are getting class not found exception. It seems that some jars are missing. I would suggest to use maven for building project.
8 years ago
The problem is in following line.



The entity manager created by above code does not participate in spring managed transaction. Get the transaction using following method.

8 years ago
I have created several project using war archetype that is why i suggested you. I do not know exact reason why you do not create it ?
create a maven project for the jar and in pom.xml add decencies for spring3.0. If you want to create web application then WAR archetype is also present.
I agree with james. You just need a wrapper method with @Transactional attribute and which would call all the three method. No need to change any thing on DAO layer.
8 years ago
If your both the pages are jsp then see this topic
8 years ago
I have created a maven project and it works fine. I would suggest you to create maven project instead of adding jar manually. It would be easier to maintain the jars in future too.
8 years ago
It seems that problem is related to browser and nothing to do with spring. Try to find it in firefox documentation.
8 years ago
Try to put jar in WEB-INF/Classes folder. Sometime tomcat does not pick up jar for lib folder.
8 years ago
I would do something like below.

1) Create SimpleController class. Override handleRequest method. In that method get your command objects from the user home page and add to ModelView Object.



2. In Jsp use follow code to get the command object set in the controller. I assume all your views are jsp pages.


8 years ago
I am not able to understand the problem. Please provide your maven project structure, it would really helpful understand the problem. Also please let us know which version of spring you are using. I checked the java doc(spring version 2.0) for ClassPathXmlApplicationContextclass and found that there is no constructor which takes two string argument. As you stated in your problem.
8 years ago
It is problem of spring jar mismatch and it is difficult to figure out. I would suggest to make a maven project and let maven download the jar file for you. It is very easy and simple.
8 years ago
Replace " with ' in getParameter method. You can not use " inside " " without escaping it.

For example


or


8 years ago