Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm trying to use JBoss 7.1.1 instead Tomcat.

My configuration:

Problem: After following the documents, both JAI and JAI ImageIO are not show as true in "server state" panel (Has Geoserver not found them?).

I did the same steps like in Tomcat, but I'm a total noob with Jboss. I think that JBoss does not search in CLASSPATH for JAI extension, and it need to include JAI like a JBoss "module", but I couldnot find any information about that.

Any ideas?

UPDATE: I have included the jar files, from the JAI installation file, in the WAR file, inside the path "/WEB-INF/lib", and now shown this in the panel: enter image description here

UPDATE 2: I put the .so (from JAI packages) in "/usr/lib", no luck. My co-worker is compiling Geoserver, in Eclipse, to see if we see happening in Jboss while loading the JAI. We hope to find a solution (I will share it here).

UPDATE 3: It's a problem in Jboss configuration. We will write down the solution as soon as possible.

share|improve this question
    
I believe you will need to disclose some specific details of your problem in order to make this an answerable question. What does "never shows like true" mean? –  whuber Apr 3 '13 at 14:57
    
Hi. Thanks for answer. The problem is JAI libraries never are loaded by geoserver. In "Server State" administration page always show as "false". –  Taber Apr 4 '13 at 8:11
    
I updated the original post. Sorry for my english... :( –  Taber Apr 4 '13 at 8:25
    
Hi have another issue with java 1.7 x64: Could not initialize class org.geotools.image.ImageWorker on very wms request. Do you have any idea? –  Tommaso Apr 8 '13 at 16:15
    
@Tommaso check the jai installation, if it's correctly installed, and is your correct OS (x64 or x86). And dont remove the JAI/IMAGEIO jar from the Geoserver WAR... –  Taber Apr 10 '13 at 7:57
add comment

1 Answer 1

up vote 2 down vote accepted

I have the same problem, I have tried importing the geoserver code as an eclipse project and then deploying it to a JBoss instance and in that case JAI libraries are loaded without any problem. That is because eclipse launch their own paths to load that libraries, so if you want JBoss to be capable of loading these libraries you have to:

  1. Copy your .so or .dll in the path $JAVA_HOME/jre/lib/i386 or $JAVA_HOME/jre/lib/amd64

  2. Make a new JBoss modules for the libraries: $JBOSS_HOME/modules/com/sun/media/jai/ $JBOSS_HOME/modules/com/sun/media/jai/imageio/

share|improve this answer
    
It's do the work!... i copied .so to $JAVA_HOME/jre/lib/amd64 and load the .jar files like modules in Jboss. –  Taber May 31 '13 at 9:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.