george vasanth

Greenhorn
+ Follow
since Jul 07, 2004
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 george vasanth

We are involved in the development of an application which requires object caching to enhance performance. We are having a Custom caching framework and would like to evaluate the possibility of using Oracle SGA Java Object Caching facility. Your expert views on the following questions will be of great help to us though some of the questions may be very trivial as I am a Java Programmer basically.

1. Do we mandatorily need to use the JVM inside the Oracle Server to use this facility?

2. What is the caching logic or algorithm (like LRU, MFU etc) that Oracle uses to store objects?

3. How can we set the maximum value of runtime memory that our application can use while running in Oracle JVM?

4. Can the memory setting be done only at the JVM level for the whole application running in the JVM or can we do the setting at a more granular level like a specific subsystem or a class? Ex. We want to have a specific module or class take 10% of the total memory available to the application.

5. What if Oracle stores a Java object which reflects the state of a table and after that the table is updated? Is there an invalidation mechanism which will avoid stale objects?
16 years ago
Hi All

I passed Part 1 exam today.
I would like to thank all of you who have been providing guidance and help in this excellent forum.

I used the books, notes and links recommended in this forum and found them very useful.

Thanks again.

George
But with the web.xml as above i am not getting any syntax error...
Could u please let me know if there is any problem with the web.xml above
18 years ago
JSP
Below is the web.xml that i have

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<servlet>
<servlet-name>ControllerServlet</servlet-name>
<servlet-class>ControllerServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ControllerServlet</servlet-name>
<url-pattern>/servlet/controller</url-pattern>
</servlet-mapping>
<jsp-property-group>
<description>
Special property group for JSP Configuration JSP example.
</description>
<el-ignored>false</el-ignored>
</jsp-property-group>
</web-app>


I tried it exactly the way it was given in the JSP FAQ's
18 years ago
JSP
Hi,

I am using Tomact version 5.5.12. Still EL not been interpreted.

In web.xml this is the DTD and web-app tag i am using

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">

In the DTD if i change the "DTD Web Application 2.3" and "http://java.sun.com/dtd/web-app_2_3.dtd" as

"DTD Web Application 2.4" and
"http://java.sun.com/dtd/web-app_2_4.dtd"

I am getting the following error when i start the server...

SEVERE: Parse error in application web.xml
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:339)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1031)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:255)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4076)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:910)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:873)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:680)
at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jan 16, 2006 11:42:23 AM org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
Jan 16, 2006 11:42:23 AM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Jan 16, 2006 11:42:23 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/SunCert] startup failed due to previous errors

How else should i make sure that Servlet2.4 is been used..

Thanks
18 years ago
JSP
Yes i know EL is new to JSP but TOMCAT 5.0 is supporting JSP 2.0 right. So EL should work in Tomcat 5.0 i am not sure why it is not working. I think the webserver is not interpreting the EL.
18 years ago
JSP
I switched on EL like this:

<jsp-property-group>
<description>
Special property group for JSP Configuration JSP example.
</description>
<el-ignored>false</el-ignored>
</jsp-property-group>

By default it is false. I tried even giving it explicitly...
18 years ago
JSP
Hi,

I think i am using JSP version 2.0 and servlet 2.4, as i thought since i am using Tomcat version 5 which does suppport JSP 2.0 and servlet 2.4, i could use the EL which is in JSP 2.0 spec.
18 years ago
JSP
Hi,

I was trying out my hand in Expression Language. I had the following code in my servlet.

request.setAttribute("music","A.R.Rahman");

I tried to retrive the variable music from JSP using Expression Language.

Following is my JSP code:

<html><body>
Music is: ${music}
</html></body>

But this is what that got dispalyed

Music is: ${music}

But if i use a tag library along with the EL i was able to get the desired result.

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html><body>
Music is: <c ut value="${music}"/>
</html></body>

This displayed as follows:

Music is:A.R.Rahman

I would like to know what is the problem when using EL alone. I am using Tomacat 5.5.12 with JDK5.0. I have included the jstl.jar and statndard.jar in common/lib folder for JSTL

I think by default the EL is on. I even switched it on through web.xml but still it did not work.

Could any one help me out in this please.

Thanks in advance
Balaji
18 years ago
JSP
Thanks Ernest and Ulf for your suggestions. I was able to solve the problem with your help.Apologize for duplicating the post. Would be careful henceforth.
18 years ago
I have an applet which is in a jar file invoked from a JSP running in weblogic.

I use the following tag for invoking the applet in the JSP.

<APPLET code="BarChart.class" archive="BarChart.jar" width=500 height=500></APPLET>

But I get a ClassNotFoundException for the applet class.

Is there a specific location in which i have to put the jar file containing the applet or is there a change in the tag used to invoke the applet?

Any pointers or suggestions would be of great help.

Thanks in advance.
18 years ago
Hi

I am requiring some information about QAPI.Can anybody refer some documentation for the same.

Thanks
George
19 years ago