cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fawzib Rojas <f_ro...@spectron-msim.com>
Subject Cocoon 2.2 WebApp in JBoss 7
Date Fri, 08 Mar 2013 18:15:05 GMT
Anyone tried running a cocoon 2.2 webapp (war) in JBoss 7? I have run a 
simple cocoon 2.2 app (just says Cocoon 2.2 runs!) in Glassfish and 
Jetty8 but is giving me an error in JBoss 7.1.1

10:45:26,737 DEBUG 
[org.jboss.osgi.framework.internal.AbstractFrameworkService] (MSC 
service thread 1-1) Starting: service jbosgi.Framework.ACTIVATOR in mode 
ON_DEMAND

10:45:26,741 DEBUG [org.jboss.as.osgi] (MSC service thread 1-6) 
Starting: service jboss.osgi.deployment."spectron.war" in mode ACTIVE
10:45:26,746 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) 
MSC00001: Failed to start service jboss.osgi.deployment."spectron.war": 
org.jboss.msc.service.StartException in service 
jboss.osgi.deployment."spectron.war": JBAS011966: Failed to install 
deployment: [:1.0.0,location=spectron.war]
at 
org.jboss.as.osgi.deployment.BundleInstallService.start(BundleInstallService.java:100) 

at 
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at 
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 
[rt.jar:1.6.0_18]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
[rt.jar:1.6.0_18]    at java.lang.Thread.run(Thread.java:619) 
[rt.jar:1.6.0_18]
Caused by: java.lang.IllegalArgumentException: Empty name segment is not 
allowed for 8
at org.jboss.msc.service.ServiceName.of(ServiceName.java:85) 
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at 
org.jboss.osgi.framework.internal.BundleManager.getServiceNameInternal(BundleManager.java:245)


at 
org.jboss.osgi.framework.internal.BundleManager.getServiceName(BundleManager.java:234) 

at 
org.jboss.osgi.framework.internal.HostBundleInstalledService.addService(HostBundleInstalledService.java:39)


at 
org.jboss.osgi.framework.internal.BundleManager.installBundle(BundleManager.java:392) 

at 
org.jboss.as.osgi.deployment.BundleInstallService.start(BundleInstallService.java:97)
     ... 5 more

10:45:26,776 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) 
JBAS015870: Deploy of deployment "spectron.war" was rolled back with 
failure message {"JBAS014671: Failed services" => 
{"jboss.osgi.deployment.\"spectron.war\"" => 
"org.jboss.msc.service.StartException in service 
jboss.osgi.deployment.\"spectron.war\": JBAS011966: Failed to install 
deployment: [:1.0.0,location=spectron.war]"}}

10:45:26,783 ERROR [org.jboss.as.server.deployment] (MSC service thread 
1-5) JBAS015892: Deployment unit processor 
org.jboss.as.jpa.processor.PersistenceProviderProcessor@43285f7a 
unexpectedly threw an exception during undeploy phase INSTALL of 
deployment "spectron.war": java.lang.NullPointerException
at 
org.jboss.as.jpa.processor.PersistenceProviderProcessor.allDeploymentModuleClassLoaders(PersistenceProviderProcessor.java:138)
at 
org.jboss.as.jpa.processor.PersistenceProviderProcessor.undeploy(PersistenceProviderProcessor.java:122)
at 
org.jboss.as.server.deployment.DeploymentUnitPhaseService.safeUndeploy(DeploymentUnitPhaseService.java:167)

[jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at 
org.jboss.as.server.deployment.DeploymentUnitPhaseService.stop(DeploymentUnitPhaseService.java:161)

[jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at 
org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1911)

[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at 
org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1874)

[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 
[rt.jar:1.6.0_18]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
[rt.jar:1.6.0_18]
at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_18]

10:45:26,862 INFO  [org.jboss.as.server.deployment] (MSC service thread 
1-1) JBAS015877: Stopped deployment spectron.war in 84ms
10:45:26,866 INFO  [org.jboss.as.controller] (DeploymentScanner-threads 
- 2) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service 
jboss.osgi.deployment."spectron.war": 
org.jboss.msc.service.StartException in service 
jboss.osgi.deployment."spectron.war": JBAS011966: Failed to install 
deployment: [:1.0.0,location=spectron.war]
10:45:26,874 ERROR [org.jboss.as.server.deployment.scanner] 
(DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed 
and was rolled back. Steps that failed:" => {"Operation step-2" => 
{"JBAS014671: Failed services" => 
{"jboss.osgi.deployment.\"spectron.war\"" => 
"org.jboss.msc.service.StartException in service 
jboss.osgi.deployment.\"spectron.war\": JBAS011966: Failed to install 
deployment: [:1.0.0,location=spectron.war]"}}}}

-------------------------------------
jetty.xml
-------------------------------------
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
     <New id="ds" class="org.eclipse.jetty.plus.jndi.Resource">
         <Arg>jdbc/MSIM</Arg>
         <Arg>
             <New class="com.mchange.v2.c3p0.ComboPooledDataSource">
                  <Set 
name="driverClass">com.microsoft.sqlserver.jdbc.SQLServerDataSource</Set>
                  <Set name="jdbcUrl">server_address</Set>
                 <Set name="user">user</Set>
                 <Set name="password">password</Set>
                 <Set name="minPoolSize">5</Set>
                 <Set name="maxPoolSize">20</Set>
                 <Set name="acquireIncrement">5</Set>
               </New>
         </Arg>
     </New>

     <New id="mailSessionId" class="org.eclipse.jetty.plus.jndi.Resource">
           <Arg>javamail/MSIM</Arg>
         <Arg>
               <New 
class="org.eclipse.jetty.jndi.factories.MailSessionReference">
                 <Set name="user">username</Set>
                 <Set name="password">password</Set>
                 <Set name="properties">
                       <New class="java.util.Properties">
                           <Put name="mail.transport.protocol">smtp</Put>
                         <Put name="mail.host">mailserver</Put>
                         <Put name="mail.debug">false</Put>
                         <Put name="mail.smtp.auth">true</Put>
                       </New>
                 </Set>
               </New>
         </Arg>
     </New>

     <Set name="securityHandler">
         <New class="org.eclipse.jetty.security.ConstraintSecurityHandler">
              <Set name="loginService">
                    <New 
class="org.eclipse.jetty.plus.jaas.JAASLoginService">
                      <Set name="name">realm_name</Set>
                      <Set name="loginModuleName">MSIM</Set>
                    </New>
              </Set>
     </New>
   </Set>

</Configure>

-------------------------------------
jboss-web.xml
-------------------------------------

<jboss-web>
     <context-root>/</context-root>
     <!-- java:/MSIM_JDBC and java:/MSIM_MAIL, and the realm are defined 
in JBOSS -->
        <!-- at least they say bound/started on the logs -->
     <resource-ref>
         <res-ref-name>jdbc/MSIM</res-ref-name>
         <res-type>javax.sql.DataSource</res-type>
         <jndi-name>java:/MSIM_JDBC</jndi-name>
     </resource-ref>
     <resource-ref>
         <res-ref-name>javamail/MSIM</res-ref-name>
         <res-type>javax.mail.Session</res-type>
         <jndi-name>java:/MSIM_MAIL</jndi-name>
     </resource-ref>
     <!-- Use the JaasSecurityMgr other security domain for authentication
       and authorization of secured web content.
      -->
<security-domain>java:/jaas/realm_name</security-domain>
</jboss-web>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message