#1 2015-05-15 20:50:33

milanr
Member
From: Belgrade
Registered: 2015-05-15

Problem installing on JBoss 6.1.0.Final

Hi guys ,

I'm trying to install reportserver to JBoss AS. JBoss version is 6.1.0 and reportserver is latest (I've downloaded RS2.2.2-5639-reportserver.zip)
I've read conf guide from https://sourceforge.net/projects/dw-rs/files/ and configured SQL Server DB accordingly. However, I got the error during starting of JBoss:

WARN  [ClassLoaderManager] Unexpected error during load of:org.apache.tools.ant.IntrospectionHelper$12: java.lang.IllegalAccessError: class org.apache.tools.ant.IntrospectionHelper$12 cannot access its superclass org.apache.tools.ant.IntrospectionHelper$NestedCreator
...


and this also:

WARN  [ClassLoaderManager] Unexpected error during load of:org.apache.tools.ant.taskdefs.Length$AccumHandler: java.lang.IllegalAccessError: class org.apache.tools.ant.taskdefs.Length$AccumHandler cannot access its superclass org.apache.tools.ant.taskdefs.Length$Handler


My OS is Windows 8.
ReportServer: RS2.2.2-5639-reportserver
DB: SQL Server 2012
Application server: jboss-6.1.0.Final
Java: 1.7.0_67

I would appreciate any help

Offline

#2 2015-05-15 21:25:23

milanr
Member
From: Belgrade
Registered: 2015-05-15

Re: Problem installing on JBoss 6.1.0.Final

I also tried to deploy it to WildFly (wildfly-8.1.0.Final). Unfortunately with no success sad
During deploy phase I got error:

23:19:08,515 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 50) MSC000001: Failed to start service jboss.persistenceunit."reportserver.war#reportServerPU": org.jboss.msc.service.StartException in service jboss
.persistenceunit."reportserver.war#reportServerPU": org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.service.classloading.spi.ClassLoaderService]
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172) [wildfly-jpa-8.1.0.Final.jar:8.1.0.Final]
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117) [wildfly-jpa-8.1.0.Final.jar:8.1.0.Final]
        at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_65]
        at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:474)
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182) [wildfly-jpa-8.1.0.Final.jar:8.1.0.Final]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.service.classloading.spi.ClassLoaderService]

Offline

#3 2015-05-16 07:25:45

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: Problem installing on JBoss 6.1.0.Final

Hi,

the problem with JBoss is that it brings its own version of various libraries such as hibernate which then conflict with RS. In order to disable JBoss' libraries you'll need to add an application descriptor file called jboss-deployment-structure.xml which goes into ReportServer's WEB-INF directory. The following descriptor hopefully does the trick (tested some time ago on wildfly):

<?xml version="1.0" encoding="UTF-8"?>  
<jboss-deployment-structure> 
   <deployment>  
      <exclusions>  
       <module name="org.hibernate" /> 
       <module name="org.antlr" /> 
     </exclusions>  
     <exclude-subsystems>
       <subsystem name="weld" />
       <subsystem name="org.hibernate" />
       <subsystem name="org.hibernate.validator" />
       <subsystem name="org.antlr" /> 
     </exclude-subsystems>
   </deployment>  
</jboss-deployment-structure> 

Hope this helps
-Arno

Offline

#4 2015-05-16 10:45:41

milanr
Member
From: Belgrade
Registered: 2015-05-15

Re: Problem installing on JBoss 6.1.0.Final

Thanks a lot Arno!
It make sense. It's deployed on Wildfly now!

I would add note to conf guide for WildFly AS. I haven't seen this hint anywhere (guide, blog, forum ..) Or we can just leave it here and new users will dig it smile

Thanks again!
Milan

Offline

#5 2015-05-16 11:35:39

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: Problem installing on JBoss 6.1.0.Final

Good point .. on the other hand, we are happy for any active community member. So let's see big_smile

Cheers
-Arno

Offline

Board footer

Powered by FluxBB