eric lee

Ranch Hand
+ Follow
since Nov 04, 2002
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 eric lee

i got "java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagSupport"
error message.how can i solve this problem? Thank for helping.
17 years ago
dear sir:
i know how to put jsp value into java script variable
but how to put java script vaule into jsp variable? thanks;

<%
String s="hello",b="";
%>
<script language="javascript">
var name="<%=s%>";
<%b%>=name;<=== is this correct?
</script>
18 years ago
JSP
Dear all:
any good book or website that i can learn java jin?
Thanks
18 years ago
dear all:
i got error when i run my program
java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagSupport
how to setup environment? or how to solve it? Thank you for helping
19 years ago
JSP
passed with 64%,thanks God.
i am a lowest score person in JavaRach.
i read HF and spec but still did bad, most fail parts are

EJB overview 20%
CMP 50%
Transaction 50%
Entity Bean 50%

anyway, i am very happy now.
19 years ago
i am very confuse and web site does not say very clear.thanks
Hi Lasse Koskela:
i follow Sun J2EE toturial before but still not work.
i Select the checkbox labeled to generate Client Jar.
still don't know happen? Thanks
When i run my code, i always get this message? what's wrong when i deploy?
thanks
---------------------------------------------------------------------------
C:\converter\jars>runclient -client HelloApp.ear -name HelloClient -texta
Initiating login ...
Enter Username:guest
Enter Password:guest123
Binding name:`java:comp/env/ejb/SimpleHello`
Application threw an exception:java.lang.NoClassDefFoundError: HelloHome
20 years ago
When i run my code, i always get this message? what's wrong when i deploy?
thanks
---------------------------------------------------------------------------
C:\converter\jars>runclient -client HelloApp.ear -name HelloClient -texta
Initiating login ...
Enter Username:guest
Enter Password:guest123
Binding name:`java:comp/env/ejb/SimpleHello`
Application threw an exception:java.lang.NoClassDefFoundError: HelloHome
Thanks,lal lal
i will try that
20 years ago
i got error below,so how to fix it? Thanks.
javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]
--------------------------------------------------------------------------
set JDK_HOME=C:\j2sdk1.4.2
set CLASSPATH=C:\j2eesdk1.4\lib\j2ee.jar
set CLASSPATH=%CLASSES%;
20 years ago
i got error below,i don't know why? is something i did not set up env?
C:\myEjb\classes>java StudentClient
Exception in thread "main" java.lang.NoClassDefFoundError: StudentClient
--------------------------------------------------------------------------
import javax.ejb.*;
import javax.rmi.*;
import java.rmi.*;
import java.util.*;
import javax.swing.*;
import javax.naming.*;
public class StudentClient{
public static void main(String args[])
{
try{
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
properties.put(Context.PROVIDER_URL, "t3://localhost:7001");
Context initial=new InitialContext( properties);
Object obj=initial.lookup("StudentObject");
StudentHome studentHome=(StudentHome) PortableRemoteObject.narrow(obj,StudentHome.class);
Student student=null;
if(student!=null)
{
System.out.println("user already existed");
student.remove();
}
student=studentHome.create(new Integer("1"),"kevin","Wu");
student=studentHome.create(new Integer("2"),"john","smith");
System.out.println("create user");
//try{
//student=studentHome.findByPrimaryKey(new Integer("1"));
//}catch(FinderException e){
//System.out.println("Did not find");
//}
//System.out.println("Found:"+student.getLast()+","+student.getFirst());
}catch(Exception e){
System.out.println(e);
JOptionPane.showMessageDialog(null,"Exception:"+e);
}
}
}
20 years ago
Hi guys,any complete example website or document step by step so i can learn? thanks
20 years ago
always get error when i use jsp to call my session bean.
it say can not find my remove home and remove object class
any env need to setup up or something else? thanks
20 years ago