users@glassfish.java.net

Glassfish and JSF App with Netbeans Webpack ERROR 500

From: <glassfish_at_javadesktop.org>
Date: Tue, 08 May 2007 07:47:00 PDT

Hi, im using glassfish and i build a simple web app. using Netbeans webpack and just put a label that says "Webpack app Test"

I compiled it and then started glassfish, i deployed and when i tried to run it it said Error 500.

On the server log it says this.

[#|2007-05-08T09:27:20.515-0500|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;_RequestID=1afb7c48-9536-4207-bc4b-86f4677c3387;|WebModule[/PersistenceWebTest]Servlet /PersistenceWebTest threw load() exception
java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:263)
        at javax.faces.webapp.FacesServlet.init(FacesServlet.java:142)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1133)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:962)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4416)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4772)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1095)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:924)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1095)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:520)
        at org.apache.catalina.startup.Embedded.start(Embedded.java:920)
        at com.sun.enterprise.web.WebContainer.start(WebContainer.java:794)
        at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:722)
        at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:72)
        at com.sun.enterprise.server.ondemand.ServiceGroup.startLifecycleServices(ServiceGroup.java:266)
        at com.sun.enterprise.server.ondemand.WebServiceGroup.startLifecycleServices(WebServiceGroup.java:210)
        at com.sun.enterprise.server.ondemand.WebServiceGroup.start(WebServiceGroup.java:60)
        at com.sun.enterprise.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:180)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:177)
        at com.sun.enterprise.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:45)
        at com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:72)
        at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:62)
        at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generateAppLoaderEntryContext(ServerEntryHelper.java:47)
        at com.sun.enterprise.server.AbstractLoader.generateEntryContext(AbstractLoader.java:831)
        at com.sun.enterprise.server.AbstractLoader.notifyAppEvent(AbstractLoader.java:837)
        at com.sun.enterprise.server.DummyWebModuleLoader.load(DummyWebModuleLoader.java:62)
        at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:206)
        at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:201)
        at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:326)
        at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:326)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:272)

a friend told me about a jvm parameter:

so i added via admin console

-XX:MaxPermSize=128m

but then i required to restart the server.. so i did it but when i started again i failed..

i looked on the server log and i thing this is the error

[#|2007-05-08T09:29:07.421-0500|SEVERE|sun-appserver-pe9.0|javax.enterprise.tools.launcher|_ThreadID=10;_ThreadName=main;|launcher.jvmoptions_exception
com.sun.enterprise.admin.util.InvalidJvmOptionException: Invalid Jvm Option de. Option must start with -.
        at com.sun.enterprise.admin.util.JvmOptionsElement.checkValidOption(JvmOptionsHelper.java:390)
        at com.sun.enterprise.admin.util.JvmOptionsElement.<init>(JvmOptionsHelper.java:277)

Any suggestion about how can i make run a Netbeans webpack application with glassfish???

Thanks on advance your comment..
[Message sent by forum member 'gutierrezge' (gutierrezge)]

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