GrantieDS and Jboss 7

75 views
Skip to first unread message

Fabiano Frizzo

unread,
Aug 15, 2011, 9:24:18 AM8/15/11
to gran...@googlegroups.com
Hi Guys.

I'm doing some tests with and GraniteDS Jboss7
When do I deploy recendo this error.


10:09:37,645 SEVERE [org.granite.config.GraniteConfig] (MSC service thread 1-1) Could not scan classpath for configuration: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method) [:1.6.0_26]
at java.util.zip.ZipFile.<init>(ZipFile.java:127) [:1.6.0_26]
at java.util.zip.ZipFile.<init>(ZipFile.java:144) [:1.6.0_26]
at org.granite.scan.URLScanner.handleArchive(URLScanner.java:145) [granite-core-2.2.1.GA.jar:]
at org.granite.scan.URLScanner.scan(URLScanner.java:139) [granite-core-2.2.1.GA.jar:]
at org.granite.config.GraniteConfig.scanConfig(GraniteConfig.java:225) [granite-core-2.2.1.GA.jar:]
at org.granite.config.GraniteConfig.forElement(GraniteConfig.java:550) [granite-core-2.2.1.GA.jar:]
at org.granite.config.GraniteConfig.<init>(GraniteConfig.java:210) [granite-core-2.2.1.GA.jar:]
at org.granite.config.ServletGraniteConfig.loadConfig(ServletGraniteConfig.java:115) [granite-core-2.2.1.GA.jar:]
at org.granite.config.GraniteConfigListener.contextInitialized(GraniteConfigListener.java:78) [granite-core-2.2.1.GA.jar:]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.0.Final.jar:7.0.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]



If someone can give me a direction that may be I can try to correct and post the fix here.

Thanks.

Att
Fabiano Frizzo

FFrizzo Labs
(45)3324-4204
(45)9969-7850
(45)9118-7805

Fabiano Frizzo

unread,
Aug 18, 2011, 12:42:25 PM8/18/11
to gran...@googlegroups.com
Hi Guys

This problem happens when scan = true in granite-config.xml
This weekend I take the time to create a patch to fix this.

Thanks.

Att
Fabiano Frizzo

FFrizzo Labs
(45)3324-4204
(45)9969-7850
(45)9118-7805


William Draï

unread,
Aug 18, 2011, 12:48:04 PM8/18/11
to gran...@googlegroups.com
Hi Fabiano,

I've committed a fix for the scan yesterday, I think the latest nightly build should work correctly.

Could you post the configuration you used to make Hibernate 3 work on JB 7 ?

Thanks

Fabiano Frizzo

unread,
Aug 18, 2011, 12:57:15 PM8/18/11
to gran...@googlegroups.com
Hi Willian

I will try to the night build. And put the result

To use Hibernate 3 on JBoss 7 just add a file in the WEB-INF/

The file name is jboss-deployment-structure.xml

And its contents should be

<?xml version="1.0" encoding="utf-8"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
  <deployment>
    <exclusions>
       <module name="org.hibernate"/>
    </exclusions>
  </deployment>
</jboss-deployment-structure>

Any doubts I am available.
Thanks.
Att
Fabiano Frizzo

FFrizzo Labs
(45)3324-4204
(45)9969-7850
(45)9118-7805


wdrai

unread,
Aug 24, 2011, 6:46:40 AM8/24/11
to gran...@googlegroups.com
Hi Fabiano, thanks for the setup for Hibernate 3.

For information, we have committed early support for Hibernate 4 (not that much indeed, it seems they have just moved all classes to different package).

Reply all
Reply to author
Forward
0 new messages