aspose file tools*
The moose likes Spring and the fly likes Which Jar to include for InternalResourceView and JstlView classes? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Which Jar to include for InternalResourceView and JstlView classes?" Watch "Which Jar to include for InternalResourceView and JstlView classes?" New topic
Author

Which Jar to include for InternalResourceView and JstlView classes?

devilsuse kumar
Greenhorn

Joined: Nov 01, 2010
Posts: 7
Hi all,

Error screenshot link showing that the class is present in jar but still server cann't it, is below:
https://docs.google.com/open?id=0B1QmVEE-TXMpODdmYjU5YzItZjE4Mi00NDM2LThlYjktYjI5MjU2YTdhZWRl

I have already added spring.jar, spring-webmvc.jar,standard.jar, jstl.jar.

Please tell me which jar contains org.springframework.web.servlet.view.InternalResourceView and org.springframework.web.servlet.view.JstlView classes in spring 2.5 because after adding following lines I am getting error :

<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView"></property>
<property name="prefix" value="/WEB-INF/jsp/"></property>
<property name="suffix" value=".jsp"></property>
</bean>



The application compiles fine but while running, I am getting below error:

ERROR:

<30 Oct, 2011 6:42:00 AM IST> <Error> <HTTP> <BEA-101017> <[ServletContext@30817155[app:springapp module:springapp-myapp path:/springapp-myapp spec-version:2.5], request: weblogic.servlet.internal.ServletRequestImpl@eca83[
GET /springapp-myapp/hello.htm HTTP/1.1
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: JSESSIONID=WhZDTsPYpFNKxF7Dt2vsCbk7nFMZn5LxnqjNcY5vj19sW9Qn1YDP!1939776691

]] Root cause of ServletException.
java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
at org.springframework.web.servlet.support.JstlUtils.exposeLocalizationContext(JstlUtils.java:97)
at org.springframework.web.servlet.view.JstlView.exposeHelpers(JstlView.java:133)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:209)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:257)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1183)
Truncated. see log file for complete stacktrace
<30 Oct, 2011 6:42:00 AM IST> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at 30 Oct, 2011 6:42:00 AM IST. Notification details:
WatchRuleType: Log
WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
WatchData: DATE = 30 Oct, 2011 6:42:00 AM IST SERVER = DefaultServer MESSAGE = [ServletContext@30817155[app:springapp module:springapp-myapp path:/springapp-myapp spec-version:2.5], request: weblogic.servlet.internal.ServletRequestImpl@eca83[
GET /springapp-myapp/hello.htm HTTP/1.1
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: JSESSIONID=WhZDTsPYpFNKxF7Dt2vsCbk7nFMZn5LxnqjNcY5vj19sW9Qn1YDP!1939776691

]] Root cause of ServletException.
java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
at org.springframework.web.servlet.support.JstlUtils.exposeLocalizationContext(JstlUtils.java:97)
at org.springframework.web.servlet.view.JstlView.exposeHelpers(JstlView.java:133)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:209)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:257)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1183)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:902)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101017 MACHINE = Nano-PC TXID = CONTEXTID = f0ed2a6d7fb07688:-177d7ce3:133525ea623:-8000-000000000000003c TIMESTAMP = 1319937120824
WatchAlarmType: AutomaticReset
WatchAlarmResetPeriod: 30000

Regards,
Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

Both in spring-webmvc-2.5.jar. Check whether war file generated includes these jars.


===Vyas Sanzgiri===
My Blog
devilsuse kumar
Greenhorn

Joined: Nov 01, 2010
Posts: 7
Hi,
This jar is included in project library and classpath.
Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

That does not mean it gets included in war file
devilsuse kumar
Greenhorn

Joined: Nov 01, 2010
Posts: 7
What I need to do to ensure its in the war as well?
Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

I would first check how to create a war file and then search whether the jars are included
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which Jar to include for InternalResourceView and JstlView classes?