Results 1 to 4 of 4
  1. #1
    haddiking is offline Member
    Join Date
    Oct 2011
    Posts
    2
    Rep Power
    0

    Exclamation Getting An error while starting tomcat5.5 through eclipse 3.2

    Hello all,
    I am getting the below error while starting tomcat.
    I am using java 1.5 and tomcat 5.5.
    Someone please help me.

    ERROR 20/10/2011 11:26:30 main StandardWrapper.Throwable ApplicationContext.java 675
    java.lang.ExceptionInInitializerError
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.sf.cglib.proxy.EnhancerEmitter.setThreadCallba cks(EnhancerEmitter.java:194)
    at net.sf.cglib.proxy.Enhancer.createUsingReflection( Enhancer.java:371)
    at net.sf.cglib.proxy.Enhancer.firstInstance(Enhancer .java:351)
    at net.sf.cglib.core.AbstractClassGenerator.create(Ab stractClassGenerator.java:193)
    at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer. java:330)
    at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:2 46)
    at org.mockejb.interceptor.InterceptableProxy.create( InterceptableProxy.java:43)
    at org.mockejb.jndi.MockContextFactory.getInitialCont ext(MockContextFactory.java:47)
    at javax.naming.spi.NamingManager.getInitialContext(U nknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unkn own Source)
    at javax.naming.InitialContext.init(Unknown Source)
    at javax.naming.InitialContext.<init>(Unknown Source)
    at com.mockrunner.mock.ejb.EJBMockObjectFactory.initi alizeMockEJB(EJBMockObjectFactory.java:46)
    at com.mockrunner.mock.ejb.EJBMockObjectFactory.<init >(EJBMockObjectFactory.java:38)
    at com.iflex.flexnet.core.service.test.Test.deployMDB (Test.java:115)
    at com.iflex.flexnet.admingui.common.InitializerPlugi n.init(InitializerPlugin.java:113)
    at org.apache.struts.action.ActionServlet.initModuleP lugIns(ActionServlet.java:839)
    at org.apache.struts.action.ActionServlet.init(Action Servlet.java:332)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:211)
    at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1105)
    at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:932)
    at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:3917)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4201)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:759)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:524)
    at org.apache.catalina.startup.HostConfig.deployDescr iptor(HostConfig.java:608)
    at org.apache.catalina.startup.HostConfig.deployDescr iptors(HostConfig.java:535)
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:470)
    at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1122)
    at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:310)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1021)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1013)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:442)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:450)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:709)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:432)
    Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
    at net.sf.cglib.core.AbstractClassGenerator.create(Ab stractClassGenerator.java:206)
    at net.sf.cglib.reflect.FastClass$Generator.create(Fa stClass.java:92)
    at net.sf.cglib.proxy.MethodProxy.helper(MethodProxy. java:115)
    at net.sf.cglib.proxy.MethodProxy.create(MethodProxy. java:86)
    at javax.naming.Context$$EnhancerByCGLIB$$b7a6712.<cl init>(<generated>)
    ... 49 more
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.sf.cglib.core.ReflectUtils.defineClass(Reflect Utils.java:373)
    at net.sf.cglib.core.AbstractClassGenerator.create(Ab stractClassGenerator.java:193)
    ... 53 more
    Caused by: java.lang.SecurityException: Prohibited package name: java.lang
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    ... 59 more
    ERROR 20/10/2011 11:26:30 main Servlet /ISSAC-WEB threw load() exception StandardContext.java 3919
    java.lang.ExceptionInInitializerError
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.sf.cglib.proxy.EnhancerEmitter.setThreadCallba cks(EnhancerEmitter.java:194)
    at net.sf.cglib.proxy.Enhancer.createUsingReflection( Enhancer.java:371)
    at net.sf.cglib.proxy.Enhancer.firstInstance(Enhancer .java:351)
    at net.sf.cglib.core.AbstractClassGenerator.create(Ab stractClassGenerator.java:193)
    at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer. java:330)
    at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:2 46)
    at org.mockejb.interceptor.InterceptableProxy.create( InterceptableProxy.java:43)
    at org.mockejb.jndi.MockContextFactory.getInitialCont ext(MockContextFactory.java:47)
    at javax.naming.spi.NamingManager.getInitialContext(U nknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unkn own Source)
    at javax.naming.InitialContext.init(Unknown Source)
    at javax.naming.InitialContext.<init>(Unknown Source)
    at com.mockrunner.mock.ejb.EJBMockObjectFactory.initi alizeMockEJB(EJBMockObjectFactory.java:46)
    at com.mockrunner.mock.ejb.EJBMockObjectFactory.<init >(EJBMockObjectFactory.java:38)
    at com.iflex.flexnet.core.service.test.Test.deployMDB (Test.java:115)
    at com.iflex.flexnet.admingui.common.InitializerPlugi n.init(InitializerPlugin.java:113)
    at org.apache.struts.action.ActionServlet.initModuleP lugIns(ActionServlet.java:839)
    at org.apache.struts.action.ActionServlet.init(Action Servlet.java:332)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:211)
    at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1105)
    at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:932)
    at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:3917)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4201)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:759)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:524)
    at org.apache.catalina.startup.HostConfig.deployDescr iptor(HostConfig.java:608)
    at org.apache.catalina.startup.HostConfig.deployDescr iptors(HostConfig.java:535)
    at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:470)
    at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1122)
    at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:310)
    at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1021)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1013)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:442)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:450)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:709)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:432)
    Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
    at net.sf.cglib.core.AbstractClassGenerator.create(Ab stractClassGenerator.java:206)
    at net.sf.cglib.reflect.FastClass$Generator.create(Fa stClass.java:92)
    at net.sf.cglib.proxy.MethodProxy.helper(MethodProxy. java:115)
    at net.sf.cglib.proxy.MethodProxy.create(MethodProxy. java:86)
    at javax.naming.Context$$EnhancerByCGLIB$$b7a6712.<cl init>(<generated>)
    ... 49 more
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.sf.cglib.core.ReflectUtils.defineClass(Reflect Utils.java:373)
    at net.sf.cglib.core.AbstractClassGenerator.create(Ab stractClassGenerator.java:193)
    ... 53 more
    Caused by: java.lang.SecurityException: Prohibited package name: java.lang
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    ... 59 more

  2. #2
    malabika is offline Member
    Join Date
    Oct 2011
    Posts
    2
    Rep Power
    0

    Default Re: Getting An error while starting tomcat5.5 through eclipse 3.2

    Have u changed environment variable and system variable in your system?

  3. #3
    haddiking is offline Member
    Join Date
    Oct 2011
    Posts
    2
    Rep Power
    0

    Default Re: Getting An error while starting tomcat5.5 through eclipse 3.2

    Hello Malabika,
    Thanks for help.
    Yes, i have checked system varibales and enviournment variables...
    Can you please guide me what exactly i suppose to set for that.


    CATALINA_HOME\tomcat5.5
    CLASSPATH: .;D:\programfiles\java\jdk_1.5\lib
    JAVA_HOME\programfiles\java\jdk_1.5


    Thanks,
    Sujeet Kumar(Haddi King)

  4. #4
    malabika is offline Member
    Join Date
    Oct 2011
    Posts
    2
    Rep Power
    0

    Default Re: Getting An error while starting tomcat5.5 through eclipse 3.2

    1. Right click on my computer icon and select properties
    2. Go to advance tab
    3. Click on Environment Variable button
    4. Have to add a System variable.
    4.1 click new button
    4.2 variable name: JAVA_HOME
    variable value : your jdk folder path. Mine is (C:\Program Files\Java\jdk1.7.0)

    5. Now select “path” variable
    5.1 have to edit it.
    5.2 Variable name: path
    Variable value: path of jdk & jre bin separate with semicolon

    Hope it will help u..

Similar Threads

  1. Eclipse Europa Starting problem
    By prashant.kadake in forum Eclipse
    Replies: 0
    Last Post: 04-18-2009, 10:06 AM
  2. Problem starting Eclipse Europa 3.3
    By jwooten in forum Eclipse
    Replies: 0
    Last Post: 03-10-2009, 01:40 AM
  3. JVM error when starting Eclipse[with Debian]
    By cakirhal in forum Eclipse
    Replies: 0
    Last Post: 03-07-2009, 08:07 PM
  4. Tomcat5.5 error report
    By jithan in forum Java Servlet
    Replies: 1
    Last Post: 07-18-2008, 04:58 PM
  5. Error starting the plugin
    By gudduamar in forum Eclipse
    Replies: 0
    Last Post: 05-12-2008, 01:45 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •