And more:
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
Type: Posts; User: lil-dice; Keyword(s):
And more:
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
Here are my config files for OC4J, hopefully this helps.
application-context.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"...
We are running mvc 2.5 with OC4J 10.1.3.5, so I can tell you it can be done.
Sounds like your jar's are mixed up. It's not finding methods it expects to, check to see which toplink.jar your app is actually using.
You've got the most of them, but the one I like is you're not married to Hibernate.
EclipseLink (formerally TopLink) has made great strides and the EclipseLink specific features will be integrated...
Thanks, was just about to post that I figured it out.
I'm using annotation based controller @MVC, so I just added it to my ControllerClassNameHandlerMapping and works fine.
What's the best way to read HTTP headers for every request and either accept or redirect the response?
I have a Spring MVC application that needs to integrate into an existing Single Sign on Auth...
Just one page back on the forum you'll see someone posted a link to a jasper tutorial: http://java.dzone.com/articles/spring-web-mvc-spring-web-flow
Depends on what data layer you're using. It's certainly possible though.
FYI, I wrote a blog post explaining this process of reusing annotations in more detail: http://www.weheartcode.com/2008/10/16/reusing-annotation-based-controllers-in-spring-mvc/
This means you're not defining your datasource properly. Either a bad connection string, or it's pulling an empty one from JNDI...
I've solved my own problem, I'll post the solution here in order to help others:
This example relies on RequestMapping being done via controller name, the same with views.
@Controller...
No ideas? Maybe since I'm new to Spring I'm going about this the "non-spring" way. I can't be the only one who wants to re-use a controller AND use annotations though....
I want to use annotation based controllers through out my Spring MVC application but am struggling on how to go about re-using them due to dynamic values that are passed to annotations and...
I want to make a generic CRUD controller that works with MVC Annotations.
I've got a basic controller that works, the only thing I really need to do to make it generic would be to make it...
Anyone? Someone must have a favorite way they do it....
This is kind of a stupid question. But I'm using JPA and I want to write as little code as possible.
Previously I had used JPA in a J2SE environment (SWT/RCP). So when I wanted to do an update on...
I fixed this by switching to OC4J and setting up my DAO to extend JpaDaoSupport and used the Autowired annotation to inject an entitymanagerfactory.
Thank You!
I was finally able to get this to work (after switching to OC4J 10.1.3.4). Can you reccommend any articles as to where you stumbled upon this approach? I have been having a hard time...
If so, how exactly?
Are you able to use the PersistenceContext annotation for injection of the EM? Are you using LTW??
I'd just like to confirm I'm not barking up the wrong tree here.
So I'm trying some more stuff, I called em.isOpen before and it returns true.
I can't get my friggin AspectJ Weaver to output anything even though I
have an aop.xml like this:
<aspectj>
...
I'm hoping some Spring gurus can help me out, whenever I try to
execute a query I get the error: Attempting to execute an operation on
a closed EntityManager.
I'm using EclipseLink + Spring 2.5...