Shivakanth Thyagarajan

Ranch Hand
+ Follow
since Mar 28, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Shivakanth Thyagarajan

Prateesh,
Have you set the classpath with this appserv-rt.jar which is in lib folder. This could help you. I probably feel it's simply a issue with your settings and not about the code. Try this out.

Thanks
Shivakanth
I could solve this we need to add one more jar file in the CLASSPATH and it works.

<install-dir>\lib\appserv-rt.jar

Hope this would be helpful for someone in future.

Thanks
Shivakanth.T
Dear Ranchers,
I am trying to run AdviceClient and i am getting the below exception.

java.lang.ClassCastException
at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Unknown Source)
at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
at AdviceClient.go(AdviceClient.java:24)
at AdviceClient.main(AdviceClient.java:11)

I have done all possible things. I have j2ee.jar in the classpath and the client jar also in the classpath. I tried to find it in the google but with little vain. I am using j2ee 1.4 server and Operating system is Windows XP.

Please help me out. I have lost my patience.

Thanks
Shivakanth.T
Dear Ranchers,
I am confused regarding the choice of the server that we have to use for the exam preparation. I am currently using j2sdkee 1.3, but i am facing problem in debugging the error. I am getting errors, for which i am unable to find enough information in search engines. I want your help in deciding the best server that could help us in best preparation for the exam.

Thanks
Shivakanth
Hi Fred
I am sending a string value populated. Should it be a problem of the server. Why i am stressing is that i am continously searching for a similar topic in google. I could found many topic within Javaranch but no answer has been provided to those question. It does make be believe this problem has been reproduced many a time but only the guys who were able to solve could answer to this.

Thanks

Shivakanth.T
Hi Fred
I have only primitive and a String as my arguments both in home and no argument in component interface. String is Serializable, hence there should be any problem. I am assuming that the problem might be with the server. If any of you encountered this problem. Please write to me.

Thanks
Shivakanth.T
Hi Rahul
Thanks for your response, but i am running with j2sdkee1.3.1 server, i presume the dumpnamespace.bat is used for websphere.

Thanks
Shivakanth
Dear Ranchers,
I am running a simple Entitybean on J2EE 1.3, when my client is doing a lookup i am encoutering the following exception. I have set the classpath with the jar generated for the bean. I was trying to search in google i could find similar problems posted in various forums, but there was no specific answers. I am using the default cloudscape database, i have set every thing to default, i have generated default query.




javax.naming.CommunicationException: java.rmi.MarshalException: CORBA MARSHAL 13
98079699 Maybe; nested exception is:
org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : m
inor code: 1398079699 completed: Maybe
org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : minor cod
e: 1398079699 completed: Maybe
at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.read_value(CDRInput
Stream_1_0.java:1083)
at com.sun.corba.ee.internal.iiop.CDRInputStream.read_value(CDRInputStre
am.java:296)
at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.lo
okup(Unknown Source)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
)
at javax.naming.InitialContext.lookup(Unknown Source)
at BonusClient.go(BonusClient.java:17)
at BonusClient.main(BonusClient.java:10)

at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:138
)
at javax.naming.InitialContext.lookup(Unknown Source)
at BonusClient.go(BonusClient.java:17)
at BonusClient.main(BonusClient.java:10)

Thanks
Shivakanth.T
Hi,
I am receiving the following exception, when running "AdviceClient".
I am using Windows 2000 operating system,
Compiled the code using the command :
javac AdviceClient.java ( Have set the environment variables appropriately )
java AdviceClient.
I am receiving the following exception.

java.lang.ClassCastException
at com.sun.corba.se.internal.javax.rmi.Port
wn Source)
at javax.rmi.PortableRemoteObject.narrow(Un
at AdviceClient.go(AdviceClient.java:17)
at AdviceClient.main(AdviceClient.java:9)

I have compiled and run the code in same manner as specified in the book, but still encountering the same error.

Please duly help me at the earliest. I am very curious to see my first bean run.


Thanks
Shivakanth.T
I have a Java Script function in my JSP, Can we invoke this function from a .js file. If yes please provide me the way.

Thanks
Shivakanth.T
[ March 05, 2006: Message edited by: Bear Bibeault ]
Sorry, I could solve the issue, I had not included the taglib directive for JSTL in my JSP page.



Thanks
Shivakanth.T
19 years ago
JSP
I have the following code in my jsp.

<c:set var="Fido" value="${userName}"/>
I want to display the value set in "Fido"

I tried this

The dog's name is ${Fido} // It didn't work

I also tried

The dog's name is <c ut value="${Fido}"/> // It also didn't work

I also wanted to know Whether the value we have set in "var" cannot be used as a EL expression.

Please respond at the earliest.
19 years ago
JSP
Hi vishnu,
ErrorPage.jsp is in the same directory CoreJsps as the mainpage.jsp.
19 years ago
JSP
Hi,
I was going through HFSJ, i came across this tag <error-code> in web.xml, I developed a JSP page ErrorPage.jsp and assigned it to <error-code> as follows.
Code Snippets
<error-page>
<error-code>404</error-code>
<location>/ErrorPage.jsp</location>
</error-page>

In my JSP page i tried to open a non-existent page and expecting a 404 error, which should have proceeded through to ErrorPage.jsp, but instead it is showing the page cannot be displayed. When I remove the above code from web.xml i am able to view 404 error. I am pasting the ErrorPage.jsp and the code to access the non-existent page.

ErrorPage.jsp

<%@ page isErrorPage="true" %>
<html>
<body>
<strong> Bummer.</strong>
<img src="images/Web.jpg">
</body></html>



Jsp code to access the non-existent page.

<form action="inputAction.jsp" name="HelloForm">
<Script language="JAVASCRIPT">
document.HelloForm.submit() ;
</Script>
</form>

Thanks
Shivakanth.T
19 years ago
JSP