Deepan Ignatius

Ranch Hand
+ Follow
since Mar 29, 2010
Merit badge: grant badges
For More
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 Deepan Ignatius

Thanks for the solution. Moved main.jsp out of WEB-INF.
1) Please tell use the full URL you used to access the JSP.

http://localhost:8881/Events/WEB-INF/sitemesh/main.jsp
2) Post the web.xml




3) Post the contents of the WAR. If it was deployed as a file, use "jar -ft xxx.war". If it was deployed as an exploded directory, you will have to use an OS-specific command to get the full contents. (If you don't know hoe, tell us which OS you are using.)

META-INF/MANIFEST.MF
META-INF/
WEB-INF/
WEB-INF/classes/
WEB-INF/New Folder/
WEB-INF/applicationContext.xml
WEB-INF/assets/
WEB-INF/assets/Thumbs.db
WEB-INF/assets/alpha-b.png
WEB-INF/assets/alpha-w.png
WEB-INF/assets/bg.jpg
WEB-INF/assets/styles.css
WEB-INF/decorators.xml
WEB-INF/lib/
WEB-INF/lib/commons-fileupload-1.2.1.jar
WEB-INF/lib/jsp-api-2.2.jar
WEB-INF/lib/jstl-1.2.jar
WEB-INF/lib/servlet-api-2.3.jar
WEB-INF/lib/sitemesh-2.4.1.jar
WEB-INF/sitemesh/
WEB-INF/sitemesh/main.jsp
WEB-INF/web.xml
index.html

OS: Windows XP

4) It appears that you are using OpenSymphony, please post any configuration files related to main.jsp.

decoratos.xml:



applicationContext.xml:



Please let me know if you need any other information.
Hi

I am trying to create a dynamic web project using sitemesh, struts2, hibernate, tomcat6.0 in eclipse galileo.

After creating and executing it, I am getting the below error:

SEVERE: Servlet.service() for servlet default threw exception
java.lang.RuntimeException: javax.servlet.ServletException: File "/sitemesh/main.jsp" not found
at com.opensymphony.sitemesh.webapp.decorator.BaseWebAppDecorator.render(BaseWebAppDecorator.java:39)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:84)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:595)

Showing like my main.jsp is not found.

What could be the reaon for this error?

main.jsp for your reference



I have included jsp-api-2.2.jar, servlet-api-2.3.jar, sitemesh-2.4.1.jar and other jars as part of the build path and still getting this error.

I have increased the transaction time out to 7200 but Deadlock is thorwn.

11 years ago
I have a piece of servlet code which pulls data from DB and generates a excel file and this runs for more than a hour. During the process below exceptions are thrown and from there the execution also stops intermediately.

  • Error Message is: Deadlock detected, timing out call after 90 seconds wait for Thread[AJPRequestHandler-HTTPThreadGroup-5,5,HTTPThreadGroup]
    Stack Trace is : com.evermind.server.DeadlockException: Deadlock detected, timing out call after 90 seconds wait for Thread[AJPRequestHandler-HTTPThreadGroup-5,5,HTTPThreadGroup] at com.evermind.server.ejb.EntityEJBObject.startCall(EntityEJBObject.java:1013) at Icoms_EntityBeanWrapper0.findDealersList(Icoms_EntityBeanWrapper0.java:39616) at com.tcs.icoms.web.java.ControlServlet.doPost(ControlServlet.java:663) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at com.tcs.icoms.web.filter.StatusCheckerFilter.doFilter(StatusCheckerFilter.java:178) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595)
  • Error Message is: An exception occurred during transaction completion: ; nested exception is: javax.transaction.RollbackException: Timed out
    Stack Trace is : oracle.oc4j.rmi.OracleRemoteException: An exception occurred during transaction completion: at com.evermind.server.ejb.EJBTransactionManager.end(EJBTransactionManager.java:141) at com.evermind.server.ejb.AbstractEJBObject.__completeGlobalTransaction(AbstractEJBObject.java:231) at Icoms_EntityBeanWrapper0.generateCommissionExcelReport(Icoms_EntityBeanWrapper0.java:37436) at com.tcs.icoms.web.java.ControlServlet.doPost(ControlServlet.java:672) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at com.tcs.icoms.web.filter.StatusCheckerFilter.doFilter(StatusCheckerFilter.java:178) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595) Nested exception is: javax.transaction.RollbackException: Timed out at com.evermind.server.ApplicationServerTransaction.checkForRollbackOnlyWhileInCommit(ApplicationServerTransaction.java:582) at com.evermind.server.ApplicationServerTransaction.doCommit(ApplicationServerTransaction.java:244) at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:130) at com.evermind.server.ApplicationServerTransactionManager.commit(ApplicationServerTransactionManager.java:433) at com.evermind.server.ejb.EJBTransactionManager.end(EJBTransactionManager.java:132) at com.evermind.server.ejb.AbstractEJBObject.__completeGlobalTransaction(AbstractEJBObject.java:231) at Icoms_EntityBeanWrapper0.generateCommissionExcelReport(Icoms_EntityBeanWrapper0.java:37436) at com.tcs.icoms.web.java.ControlServlet.doPost(ControlServlet.java:672) at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at com.tcs.icoms.web.filter.StatusCheckerFilter.doFilter(StatusCheckerFilter.java:178) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595)


  • I am running it on oc4j 10.3.1.0 application server. The same piece of code when triggered as a standalone program works as expected without throwing these exceptions.

    What could be the root cause for this problem? Should I make this syncronous transaction to be asynchronous?

    Regards.
    11 years ago
    Thanks for your replies. I fixed the problem using BigInteger. Wanted to know why Double works that way and the reason behind that.
    11 years ago
    Hi,

    I have a value of "12345600000785151821" in a String variable and I want to know the remainder of it when it is divided by 97. The remainder should be 1 but it is displayed as 83. Why is it so?

    Code:



    Any help would be greatly appreciated.
    Thanks.

    11 years ago
    Thanks for your reply Stefan. I will go with the design proposed by you. I hope that will work.
    11 years ago
    JSP
    Dear all,

    Is it possible to access dynamically generated session scoped attributes in JSP? For instance, assume I have session variables like C1, C2, .. Cn generated in a servlet and I know the value of n too. Is it now possible to access them in JSP?

    BR,
    Dps
    11 years ago
    JSP
    Done this using JSTL and EL. Thanks for your response.
    11 years ago
    JSP
    Hi,

    Is it possible to itearate over a string array set in session scope within JSP without using scriptlets?

    code example:



    Now I want to iterate over the above session attribute in JSP. How to do that?

    Thanks.
    11 years ago
    JSP
    Hi All,

    I have a Set variable added to session scope. I would like to know whether it is possible to access it from a jsp in order to iterate over it.

    Java Code:



    Is it possible to access the above session attribute 'relCauses' inside a jsp? and how to do it?

    Thanks.
    11 years ago
    JSP
    Thanks for your suggesstions.

    I tried to use <c:out> and below is the piece of code which I changed

    before:

    <input type="hidden" name="${entry.key}" value="${entry.value}"/>

    after:

    <input type="hidden" name=<c:out value="${entry.key}" escapeXml="false"/> value=<c:out value="${entry.value}" escapeXml="false"/> />

    Even with this, the hidden varaibles are not created properly.

    ex:-
    if the entry.key contains any double quotes say Nok"123 then hidden varaible is created with the name Nok and not Nok"123 which is what I am trying to do.
    11 years ago
    JSP