nishantdaniweb 0 Newbie Poster

Hi All,

I successfully deployed my application in Jboss server. My application is working file But my problem is when I first time access my application then I am getting the following error but after refresh or clicking on browser back button, I am not getting this error. This below exception is coming only once after starting jboss server.

Error :

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: Unable to initialize TldLocationsCache: invalid entry CRC (expected 0xa6729df but got 0x8bbb8379)
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)
	org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
	org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:239)
	org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	com.wipro.neb.login.SessionCheckFilter.doFilter(SessionCheckFilter.java:81)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause 
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: invalid entry CRC (expected 0xa6729df but got 0x8bbb8379)
	org.jboss.web.tomcat.tc5.jasper.TagLibCache.init(TagLibCache.java:106)
	org.jboss.web.tomcat.tc5.jasper.TagLibCache.getLocation(TagLibCache.java:83)
	org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:526)
	org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:422)
	org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1556)
	org.apache.jasper.compiler.Parser.parse(Parser.java:126)
	org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
	org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)
	org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
	org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:239)
	org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	com.wipro.neb.login.SessionCheckFilter.doFilter(SessionCheckFilter.java:81)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause 
org.apache.jasper.JasperException: invalid entry CRC (expected 0xa6729df but got 0x8bbb8379)
	org.jboss.web.tomcat.tc5.jasper.TagLibCache.scanJar(TagLibCache.java:343)
	org.jboss.web.tomcat.tc5.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:268)
	org.jboss.web.tomcat.tc5.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:261)
	org.jboss.web.tomcat.tc5.jasper.TagLibCache.init(TagLibCache.java:101)
	org.jboss.web.tomcat.tc5.jasper.TagLibCache.getLocation(TagLibCache.java:83)
	org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:526)
	org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:422)
	org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1556)
	org.apache.jasper.compiler.Parser.parse(Parser.java:126)
	org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
	org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)
	org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
	org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:239)
	org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	com.wipro.neb.login.SessionCheckFilter.doFilter(SessionCheckFilter.java:81)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause 
java.util.zip.ZipException: invalid entry CRC (expected 0xa6729df but got 0x8bbb8379)
	java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:378)
	java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
	java.util.jar.JarInputStream.read(JarInputStream.java:171)
	java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:91)
	java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:69)
	java.util.jar.JarInputStream.getNextEntry(JarInputStream.java:118)
	java.util.jar.JarInputStream.getNextJarEntry(JarInputStream.java:149)
	org.jboss.web.tomcat.tc5.jasper.TagLibCache.scanJar(TagLibCache.java:324)
	org.jboss.web.tomcat.tc5.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:268)
	org.jboss.web.tomcat.tc5.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:261)
	org.jboss.web.tomcat.tc5.jasper.TagLibCache.init(TagLibCache.java:101)
	org.jboss.web.tomcat.tc5.jasper.TagLibCache.getLocation(TagLibCache.java:83)
	org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:526)
	org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:422)
	org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1556)
	org.apache.jasper.compiler.Parser.parse(Parser.java:126)
	org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
	org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)
	org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
	org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:239)
	org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) …
nishantdaniweb 0 Newbie Poster

But Bob tell me how can I use this approach for my application. I create the url (url given by server API) to the file and just open that file.

Now question is how will I display the file content using <div>.
I am not reading the file content. Because file reading and writing is a time consuming approach.

Regards
Nishant

nishantdaniweb 0 Newbie Poster

Hi almostbob,

Thanks for your continuous help.
Actualy according to your code, if we click on "Important Information" button, it display the content under <div> tag.

But in my application, I have given links for download. user can directly download the file(jpeg, doc, pdf etc.) from the content management server. I am not using input/output stream. I am using url addressability approach given by content management server. I just open the file in popup window using url.

My application is working fine. I am able to see the content in popup window. But I don't want to show the url to the user.
I am able to hide address bar, toolbar, statusbar except titlebar.
Now I want to rename the tile of titlebar of popup window. Please tell me is it possible or not.

Even you repeated two times that don't use popup windows, they will be blocked by popup blockers. If user block the popup window that is not my problem.


Now pls let me know how your approach is suitable for my application.

Regards
Nishant

nishantdaniweb 0 Newbie Poster

Hi

Can any buddy tell me, Is It possible to change the title of popup window. Is there any control on pop window title.

Any help/suggestion is highly appriciated.

Regards
Nishant

nishantdaniweb 0 Newbie Poster

Yes I tried to set the title in my jsp page from where I am opening the popup window. It is not showing this title for popup window.

Don't know it's possible or not. As i told i created a new thread in java script forum. Can please check the response of Almostbob in this forum. He suggested to use the <div>. I don't know how to use it. here is the url--
http://www.daniweb.com/forums/thread178019.html

Regards
Nishant

nishantdaniweb 0 Newbie Poster

Hi almostbob

I added your code into my jsp page. it is showing one button "importtant information". When I click on this button it is showing some script error ("object expected").

<%@ taglib uri="/tags/struts-html" prefix="html" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta name="generator" content="HTML Tidy for Windows (vers 1st July 2003), see www.w3.org" />

  <title>Home</title>
</head>

<body>
<button onClick="showIt();">Important Information</button><div id="layer1" style="position:fixed; left:20px; width:45%; top:20px; visibility:hidden;"><table border="0" cellspacing="0" cellpadding="3"><tr><td Align="right" onClick="hideIt()"><font color="#ffffff"><Strong>Close</strong></font></td></tr><tr><td>important stuff you want em to see</td></tr><tr><td align="right" onClick="hideIt()"><font Color="#ffffff"><Strong>Close</strong></font></td></tr></table></div>

</body>
</html>


<script language="javascript" type="text/javascript">(document.getElementById) ? dom = true : dom = false;function hideIt() { if (dom) {document.getElementById("layer1").style.visibility='hidden';}  if (document.layers) {document.layers["layer1"].visibility='hide';} } mozilla fffunction showIt() { if (dom) {document.getElementById("layer1").style.visibility='visible';} if (document.layers) {document.layers["layer1"].visibility='show';} }</script>

I am very poor in java script. I need some code help.

Regards
Nishant

nishantdaniweb 0 Newbie Poster

That's already there. Actualy we are creating a new window. for this popup window we have to set the title. Even I tried like this also...

oNewWindow.title="hello";

I passed the title in different position in open method also like this--

var oNewWindow = window.open("hello", newloc, v3, features); 
var oNewWindow = window.open(newloc,"hello",  v3, features); 
var oNewWindow = window.open(newloc, v3,"hello" ,  features); 
var oNewWindow = window.open(newloc, v3, features, "hello");

Now I am thinking is it possible to rename the title of popup window.

Regards
Nishant

nishantdaniweb 0 Newbie Poster

Hi almostbob

Thanks for the response.
I am using internet explorer version 6. The code, which I posted, is working fine. Even I tested this code in internet explorer version 7 also.

Let me explain my question again. I am displaying the file content (file which exists in content management server) in a popup window. I don't want to show the url to the user.
Now I am able to hide address bar but it is still showing the url in titlebar.

As per my understanding, I can't hide the titlebar but we can change the url(title) in titlebar.

Please guide me if I am wrong.

Regards
Nishant

nishantdaniweb 0 Newbie Poster

As per my understanding, we can't hide the titlebar. But we can rename this. I am surprised why this code is not showing the title whatever I am passing the title name string in window.open method.

Regards
Nishant

nishantdaniweb 0 Newbie Poster

Hi stephen84s

Thank you once again for your response.
I got the below code from the google. It is working fine. This code helps to hide the address bar of popup window. But user is still able to see the url in title bar. I added titlebar=no in var feature but still it is showing url in titlebar. Even I passed title name in the below method like this window.open(newloc,'titleName', v3, features) but the code behaviour is still same.
Now we are discussing on java script in jsp forum. I am creating a new thread in java script forum for this issue also.

function loadMainWindow() 
{ 
   var win = window.self; 
   win.opener = window.self; 
   var newloc = '<%= url %>'; 
   var ih = (window.window.screen.availHeight - 60) - 100; 
   var iw = (window.window.screen.availWidth - 10) - 100; 
   var it = ((window.window.screen.availHeight - 60) - ih) / 2; 
   var il = ((window.window.screen.availWidth - 10) - iw) / 2; 
   
   var features = 
"directories=no,menubar=no,location=no,toolbar=no,status=no,scrollbars=yes­,resizable=yes" 
+ ",width=" + iw + ",height=" + ih + ",top=" + it + ",left=" + il + ""; 
   v1 = new Date(); 
   v2 = Date.parse(v1); 
   v3 = "pg" + v2; 
   
   var oNewWindow = window.open(newloc, v3, features); 
  

   oNewWindow.focus(); 


   

} 

function popUpDocuument() 
{ 
   try 
   { 
      loadMainWindow(); 
   } 
   catch(e) 
   { 
      popUpMessage.style.display = 'block'; 
   } 
}

Regards
Nishant

nishantdaniweb 0 Newbie Poster

Hi All

Could anybuddy tell me how to rename/hide the title in the popup window. I found the below code from google. this code is working fine. Actualy I don't want to show the url to the user. Below code helps to hide the address bar. But still user can see the url in title bar. If I add the titlebar=no in the var feature then also it is showing the url in titlebar.

Kindly help me.

function loadMainWindow() 
{ 
   var win = window.self; 
   win.opener = window.self; 
   var newloc = '<%= url %>'; 
   var ih = (window.window.screen.availHeight - 60) - 100; 
   var iw = (window.window.screen.availWidth - 10) - 100; 
   var it = ((window.window.screen.availHeight - 60) - ih) / 2; 
   var il = ((window.window.screen.availWidth - 10) - iw) / 2; 
   
   var features = 
"directories=no,menubar=no,location=no,toolbar=no,status=no,scrollbars=yes­,resizable=yes" 
+ ",width=" + iw + ",height=" + ih + ",top=" + it + ",left=" + il + ""; 
   v1 = new Date(); 
   v2 = Date.parse(v1); 
   v3 = "pg" + v2; 
   
   var oNewWindow = window.open(newloc, v3, features); 
  

   oNewWindow.focus(); 


   

} 

function popUpDocuument() 
{ 
   try 
   { 
      loadMainWindow(); 
   } 
   catch(e) 
   { 
      popUpMessage.style.display = 'block'; 
   } 
}

Regards
Nishant

nishantdaniweb 0 Newbie Poster

Can you please tell me how to hide the address bar in the pop up.

Regards
Nishant

nishantdaniweb 0 Newbie Poster

Hi javaAddict

thanks for this honour. I didn't mean to give any offence to hinasaeedali. I just want to tell hinasaeedali that he started appliaction without knowing the basic concept.

Anyway, Thanks for your help.

Regards
Nishant

nishantdaniweb 0 Newbie Poster

Hi stephen84s

Thanks for the response.

You are right. we can achieve this by <jsp:forward> tag.

As I told i am creating url for a file in jsp and from same jsp I am opening this file in new popup window like the following...

function popUpDocuument()

	{
		
		var aaurl = '<%= url %>';
		
		window.open(aaurl);
	
		
		
	}

jsp:forward is used to forward the request and response. here I am not forwarding request and response, I am just opening the file in new popup window only.

Pls guide me If i am wrong somewhere.

Regards
Nishant

nishantdaniweb 0 Newbie Poster

Sorry hinasaeedali,

I can't help you. Some time you are asking you are facing problem while making shopingCart and now you are asking how to get parameter. You didn't clearly mention your problem.

As i understood you want to know how to get request parameter when you click on submit button.
then use request.getParameter("Pass here parameter name")


As you mentioned you are facing problem with jsp not in another language. I think you just started jsp.

I would like to request to others if somebuddy able to understand you.

Regards
Nishant

nishantdaniweb 0 Newbie Poster

what type of problem you are facing in making the shopping cart using jsp.


Regards
Nishant

nishantdaniweb 0 Newbie Poster

Hi All

I am creating a url for a file, which is uploaded in content management server, in the jsp page and from this jsp, I am opening a new window for this file to show the content to the user. My problem is, I want to hide the url which is showing the path to file exists in content management server.

I have following doubts---

1)How to show some another url in place of actual url.

2) Is it a problem If user see the url of a file, which is uploaded in content management server

Please correct me if I am wrong.

Regards
Nishant