Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!

kamlendra kumar

Greenhorn
+ Follow
since Nov 09, 2009
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 kamlendra kumar

here is the sql which is being generated by hibernate:


Hi All,

I am using hibernate 3.4, spring 2.5.4 and SQL server database. I am facing a weird problem with hibernate formula for one of my hibernate mapping class.

Below are the details:

application-context.xml:


RiskFunctionModel.hbm.xml:


RiskLevelModel.hbm.xml:


FunctionalAreaModel.hbm.xml:


TestDao.java:


Query 1 & 2 are executing without any issue but when query 3 is being executed, i get following exception:


Can somebody please help me figuring out what i'am doing wrong here.

Thanks in advance,
Kamlendra
Hi Bear,
is there some way i could stop any jar from web-inf/lib getting loaded when Tomcat is started.
10 years ago
JSP
ok thanks!!!
i'll try to convinve my lead..
Thanks alot..!!
10 years ago
JSP
@Bear
can you suggest any way to ignore setting jsp-api.jar in classpath.
Thanks!
10 years ago
JSP
will editing C:\Tomcat6.0\bin\catalina-tasks.xml will help..
we set jsp-api.jar's path in this file.
10 years ago
JSP
Hi Bear,
removing jsp-api.jar from WEB-INF/lib is solving my problem. I talked about this solution to my team but they differ on this solution.
removing this jar from lib will cause compilation issues for tag handler classes as they reference this jar.
adding the jar to classpath is another workaround but they'r not inclined towards it.According to them our application should be complete.should have all the jars.

so can i configure Tomcat6 to load web-inf/lib/jsp-api.jar instead of loading tomcat/lib/jsp-api.jar.
this will fix the issue.
Thanks in advance
10 years ago
JSP
@Bear Bibeault
@Vijitha Kumara : Thanks alot.. removing the servlet and jsp api jars from WEB-INF/lib worked..
three cheers for you guys
10 years ago
JSP
jsp and servlet api jars were already in my web-inf/lib. i didn't replace them.
10 years ago
JSP
Hi All,
Again i need your help.
Currently my application is on Tomcat5.0.16.I use struts1.2, jstl 1.1 , jsp-api 2.0.
I tried to migrate my application from tomcat5.0 to tomcat 6.0.26.I didn't see any issue in deployment but when i tried to access jsp pages i got this exception.

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: /pbuilder/login/legacyLogin.jsp(6,4) Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:297)
org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:330)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:438)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1393)
org.apache.jasper.compiler.Parser.parse(Parser.java:130)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:185)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.doubleclick.pbuilder.ui.utils.CharsetFilter.doFilter(CharsetFilter.java:32)
com.doubleclick.pbuilder.ui.utils.gzipfilter.GZIPFilter.doFilter(GZIPFilter.java:20)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.26 logs.


i found that jstl1.1 jar didn't have the above mentioned class.
I replaced jstl1.1 with jstl1.2 jar.i verified that jstl1.2 jar had JstlCoreTLV calss.
but even after this replacement of jar i am facing the same issue.
can somebody please suggest where i am going wrong..
Thanks!
10 years ago
JSP
Due to security vulnerability we are migrating to Tomcat5.5. Quality always matters friend.
But due to this issue not a single jsp page was getting rendered.And checking and correcting 2500 jsp pages gonna take tremendous efforts..
so i guess the way i found works best for my application.
10 years ago
my application has arround 2500 JSP pages.. so it is almost impossible to correct all the JSPs.
10 years ago