You need to add a Web Container :
ContainerBuilder containerBuilder = server.createConfig(ContainerBuilder.Type.web);
server.addContainer(containerBuilder);
-Alexis
On 26 janv. 2010, at 12:09, glassfish_at_javadesktop.org wrote:
> Hi,
>
> I'm trying to deploy a simple war file, but not even that is working. Am I missing something?
>
> 26.01.2010 11:51:34 com.sun.enterprise.v3.server.AppServerStartup run
> INFO: GlassFish v3 (74.2) startup time : Embedded(234ms) startup services(187ms) total(421ms)
> 26.01.2010 11:51:35 com.sun.enterprise.transaction.JavaEETransactionManagerSimplified initDelegates
> INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate
> 26.01.2010 11:51:35 org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread run
> INFO: JMXStartupService: JMXConnector system is disabled, skipping.
> 26.01.2010 11:51:35 AppServerStartup run
> INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
> 26.01.2010 11:51:35 org.hibernate.validator.util.Version <clinit>
> INFO: Hibernate Validator null
> 26.01.2010 11:51:35 org.hibernate.validator.engine.resolver.DefaultTraversableResolver detectJPA
> INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
> --------- Deploy c:\sample.war
> 26.01.2010 11:51:35 com.sun.enterprise.v3.services.impl.GrizzlyProxy$2$1 onReady
> INFO: Grizzly Framework 1.9.18-k started in: 94ms listening on port 8080
> 26.01.2010 11:51:37 org.glassfish.api.ActionReport failure
> SEVERE: Module type not recognized
> 26.01.2010 11:51:37 org.glassfish.api.ActionReport failure
> SEVERE: There is no installed container capable of handling this application com.sun.enterprise.deploy.shared.FileArchive_at_96212a
> classLoader = WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
> SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7_at_1a80aea
> [Message sent by forum member 'wam23' (wampfler_at_gmail.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=382978
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>