Rahul Kappor

Greenhorn
+ Follow
since Nov 10, 2007
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 Rahul Kappor

I am using EA Server as application server and it comes with log4j.jar in EA_Server_Home/java/classes folder. I believe most of J2EE servers have java/classes and java/lib folder which are used to have jar file at server level instead at individual web application level. So my question was Can I keep the log4j.jar file in EA_Server_Home/java/classes and delete from webapplication/WEB-INF/lib.

Thanks
Harman

Thanks Martijn for the response.

Can I keep the log4j.jar in java\classes and delete the one WEB-INF\lib. Does it matter which one I keep.

I am getting following error on the following statement in my servlet
PropertyConfigurator.configure(log4j_property_file_path)

I have log4j.jar in directory java\classes and WEB-INF\lib. Both are the same files and I have verified this by size of the and number of files in each jar. This error is generated occasionally when window server is rebooted which in turn restart the application server. Servlet which is using above code is set to load on start using load-on-startup tag. Could anyone have any idea why I am getting this error and as I mentioned it does not happen all the time but once a while.


java.lang.VerifyError: (class: org/apache/log4j/Hierarchy, method: updateChildren signature: (Lorg/apache/log4j/ProvisionNode;Lorg/apache/log4j/Logger;)V) Bad type in putfield/putstatic
at org.apache.log4j.LogManager.<clinit>(LogManager.java:69)
at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:315)
at gov.ca.aoc.vision.struts.base.VisionInitServlet.init(VisionInitServlet.java:40)
at com.sybase.jaguar.servlet.JagServlet.init(JagServlet.java:235)
at com.sybase.jaguar.servlet.ServletPool.createInitializedInstance(ServletPool.java:180)
at com.sybase.jaguar.servlet.ServletPool.getInstance(ServletPool.java:72)
at com.sybase.jaguar.servlet.ServletPool.start(ServletPool.java:292)
at com.sybase.jaguar.servlet.JagServletContext.startServlet(JagServletContext.java:2856)
at com.sybase.jaguar.servlet.JagServletContext.startWebAppServlets(JagServletContext.java:2491)
at com.sybase.jaguar.servlet.ServletEngine.startWebAppServlets(ServletEngine.java:1137)
at com.sybase.jaguar.servlet.ServletServiceImpl.startWebAppServlets(ServletServiceImpl.java:173)
at com.sybase.jaguar.servlet._sk_JaguarServlet_ServletService.remoteInvoke(_sk_JaguarServlet_ServletService.java:547)
at com.sybase.jaguar.servlet._sk_JaguarServlet_ServletService.invoke(_sk_JaguarServlet_ServletService.java:125)
Sivaraman

Thanks. I will check that.
15 years ago
My Servlet log is reporting following error sporadically for a user and user is getting Red X on the applet. I have not seen this error for a while but one of the users reported this issue. Do you guys know what could be the cause of this issue? All the other users are fine except one user and that user is also able to access applet without any issue after a while.

Static resource /app/client/com/appproject/coreapp/applet/ui/AppApplet.class not found
May 12 07:46:01 2008: Static resource /app/client/com/appproject/coreapp/applet/ui/AppApplet/class.class not found.

Thanks
15 years ago
I am using following code to set focus on a text field on my applet in applet init method. For some reason it does not work. I am using JRE 1.5.0_11. This used to work with JRE 1.4.2.

// code to set focus on the text field.
jtDocketCode.requestFocus()

Focus appear to be on the whole applet. Cursor is in the text filed if I click anywhere on the applet. It appears that applet is not in focus and that�s why I am not able see the cursor in the text field.
16 years ago
Most of the output is HTML, Java Script. We are using PowerBuilder components to generate HTML from PowerBuilder Data window.
16 years ago
JSP
Do you have any suggestion how I could seperate JSP execution. What methodology should I use?
16 years ago
JSP
I do understand that JSP is compiled and executed solely on server but I would like to separate the time it take to compile and execute, and time it take to write the response back on the network. I am measuring JSP processing time by getting the start time at the beginning of the JSP and end time at the end of the JSP.

If I access the JSP on the server (using remote desktop and opening a browser on the server), it takes only 47 -67 ms to process the JSP. Same JSP take 200-350 ms when it is accessed remotely over the network. I believe JSP execution slows down if the client is on the slower network. What I mean is that JSP response write is slower and that why I get the higher JSP processing time as all the data is not getting buffered on the Server.

I have Sybase EA Server 5.3 and my JSP�s generated output is around 120 KB. I know that response buffer on EA Server is 8KB and maximum MTU (maximum transmission unit) size on most networks is about 1.5 KB. My window size on server is 65535.

Thanks
16 years ago
JSP
Ben, Thanks for the response.

I have struts architecture which is based on MVC Model 2 and JSP is last item that gets processed before writing data to the wire. I believe (correct me if I am wrong) if someone is on a slower network then I will get higher JSP processing time as compared to someone on the faster network. I don�t think I will see any increase in action class processing as action class processing does not get impacted by network performance.

I get processing time around 62 -78 ms expect the first time I got it around 313 ms.
16 years ago
JSP
I am not sure what database you are using but I would recommend that use sequence (Oracle has sequence) to get the next number before you insert into the table. Sequence will always assign next available number to new request even when there are concurrent request to db at the same time. Oracle will handle that far you.

Your issue is that there could be multiple clients who can access the page that assign the next number at the same time.
16 years ago
JSP
I have struts architecture using JSPs for the view. JSP includes custom application tag to render user specific data. I would like to measure the pure processing time of a JSP. It means that I would like to find out total processing time on JSP minus time taken to send the data over the network. I have experienced that sometime JSP processing time is 47 ms and other times it 380 ms. I don't think application server is slow in processing requests when JSP processing time is high.

I would appreciate your help.

Thanks
16 years ago
JSP