users@glassfish.java.net

GlassFish startup problem.

From: <glassfish_at_javadesktop.org>
Date: Fri, 28 May 2010 00:36:51 PDT

Hi everyone!

A wile ago I have posted the thread about installing Railo on GlassFish. I made some researches and found out a way for install it on GlassFish. But after installation I've got a problem.

First I will tell you what I have done.

1. Add to the domainPath/config/default-web.xml

This

   <servlet>
        <servlet-name>CFMLServlet</servlet-name>
        <servlet-class>railo.loader.servlet.CFMLServlet</servlet-class>
        <init-param>
            <param-name>configuration</param-name>
            <param-value>{web-root-directory}/WEB-INF/railo/</param-value>
            <description>Configuraton directory</description>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

this

<servlet-mapping>
        <servlet-name>CFMLServlet</servlet-name>
        <url-pattern>*.cfm</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>CFMLServlet</servlet-name>
        <url-pattern>*.cfml</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>CFMLServlet</servlet-name>
        <url-pattern>*.cfc</url-pattern>
    </servlet-mapping>

and this

    <welcome-file>index.cfm</welcome-file>
    <welcome-file>index.cfml</welcome-file>

2. As I found the information on that site http://blogs.sun.com/sivakumart/entry/classloaders_in_glassfish_an_attempt

I have copied all jars I need into domainPath/lib and domainPath/lib/classes

I have start the domain and everything was running like a charm. Admin's console workin, applications working, Railo working. And then I have typed in my browser http://localhost:8080 and the usually glassfish welcome site return error 500

I have restarted the domain - no effect.

I've gone to the server.log and I have found:

[#|2010-05-28T08:54:46.109+0200|SEVERE|glassfishv3.0|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=11;_ThreadName=FelixStartLevel;|WebModule[]Error loading WebappClassLoader (delegate=true; repositories=) railo.loader.servlet.CFMLServlet
java.lang.ClassNotFoundException: railo.loader.servlet.CFMLServlet
        at org.glassfish.web.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1985)
        at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:888)
        at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1420)
        at org.apache.catalina.core.StandardWrapper.loadServletClass(StandardWrapper.java:1383)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1247)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1229)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4934)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5207)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:499)
        at org.apache.catalina.core.ContainerBase.startChildren(ContainerBase.java:1523)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:975)
        at org.apache.catalina.core.ContainerBase.startChildren(ContainerBase.java:1523)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:529)
        at org.apache.catalina.startup.Embedded.start(Embedded.java:946)
        at com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:583)
        at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
        at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
        at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
        at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
        at org.glassfish.internal.data.EngineInfo.getContainer(EngineInfo.java:78)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.startContainers(ApplicationLifecycle.java:716)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:461)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:262)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:340)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:163)
        at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
        at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
        at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
        at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
        at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:236)
        at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:457)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401)
        at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:125)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)
        at org.jvnet.hk2.osgimain.Main.start(Main.java:140)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
        at java.lang.Thread.run(Thread.java:619)



So my question is what should I do, or where should I put libraries to ren the default Web Module with railo.

Thanks for help

regards

jmail
[Message sent by forum member 'jmail22']

http://forums.java.net/jive/thread.jspa?messageID=471800