File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Topic: HFEJB- Page57 - AdviceClient Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Topic: HFEJB- Page57 - AdviceClient " Watch "Topic: HFEJB- Page57 - AdviceClient " New topic

Topic: HFEJB- Page57 - AdviceClient

Tim Tim

Joined: Nov 20, 2004
Posts: 10
I follow the example, I got the following error, anyone can help me to fix it?


javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.enterprise.naming.SerialInitContextFactory [Root exception is java.lang.ClassNotFoundE
xception: com.sun.enterprise.naming.SerialInitContextFactory]
at javax.naming.spi.NamingManager.getInitialContext(
at javax.naming.InitialContext.getDefaultInitCtx(
at javax.naming.InitialContext.init(
at javax.naming.InitialContext.<init>(
at AdviceClient.go(
at AdviceClient.main(
Caused by: java.lang.ClassNotFoundException: com.sun.enterprise.naming.SerialIni
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.jav
at javax.naming.spi.NamingManager.getInitialContext(
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
You might do a simple search and you will find lots of posts regarding to this issue.

Here is one of the solutions provided by Valentin:


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
I agree. Here's the link:
subject: Topic: HFEJB- Page57 - AdviceClient
It's not a secret anymore!