Unable to resolve class loading issue with JBoss EAP 6.2 - jboss7.x

(see update at end. It defines a workaround, but that workaround raises questions too).
We are trying to port an application to JBoss EAP 6.2 from WebLogic. There will be many difficulties along the way, but now I am just trying to port a single war file and I am stubbing my toe on classloading issues. This war depends on two jars that it does not include. In Web Logic, these jars were on the classpath of the server. Whether or not it makes sense to continue with this pattern, the current effort is to do so. But I can't get it to work.
The strategy is load these jars as modules, as JBoss recommends.
This is the jboss-deployment-structure.xml file that we are placing in the war file's WEB-INF directory, again as Jboss recommends:
<?xml version="1.0"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<deployment>
<dependencies>
<module name="com.whatever.ivss" export="TRUE"/>
<module name="com.whatever.vt.svcauthentication" export="TRUE"/>
</dependencies>
</deployment>
</jboss-deployment-structure>
As per jboss, I then deploy these jars and module.xml descriptors into a directory structure under {JBOSS_EAP_HOME} /modules as follows:
$ pwd
/.../jboss-eap-6.2/modules/com/whatever
$ ls -alR
.:
total 16
drwxrwxr-x. 4 wevs wevs 4096 Aug 14 14:58 .
drwxrwxr-x. 4 wevs wevs 4096 Aug 13 14:07 ..
drwxrwxr-x. 2 wevs wevs 4096 Aug 15 09:44 ivss
drwxrwxr-x. 3 wevs wevs 4096 Aug 14 14:58 vt
./ivss:
total 132
drwxrwxr-x. 2 wevs wevs 4096 Aug 15 09:44 .
drwxrwxr-x. 4 wevs wevs 4096 Aug 14 14:58 ..
-rw-r-----. 1 wevs wevs 121414 Aug 13 14:22 ivsslib-jdk1.5.jar
-rw-r-----. 1 wevs wevs 356 Aug 15 09:44 module.xml
./vt:
total 12
drwxrwxr-x. 3 wevs wevs 4096 Aug 14 14:58 .
drwxrwxr-x. 4 wevs wevs 4096 Aug 14 14:58 ..
drwxrwxr-x. 2 wevs wevs 4096 Aug 14 15:02 svcauthentication
./vt/svcauthentication:
total 24
drwxrwxr-x. 2 wevs wevs 4096 Aug 14 15:02 .
drwxrwxr-x. 3 wevs wevs 4096 Aug 14 14:58 ..
-rw-r-----. 1 wevs wevs 306 Aug 14 15:02 module.xml
-rw-r-----. 1 wevs wevs 11524 Aug 13 14:21 svcauthentication-jdk1.5.jar
And here are the two module.xml files referred to above:
.../com/whatever/ivss/module.xml:
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.whatever.ivss">
<resources>
<resource-root path="ivsslib-jdk1.5.jar"/>
</resources>
<dependencies>
<module name="javax.jms.api"/>
<module name="javax.servlet.api"/>
<module name="org.apache.log4j"/>
<module name="system"/>
</dependencies>
</module>
and .../com/whatever/vt/svcauthentication/module.xml:
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.whatever.vt.svcauthentication">
<resources>
<resource-root path="svcauthentication-jdk1.5.jar"/>
</resources>
<dependencies>
<module name="com.whatever.ivss"/>
<module name="system"/>
</dependencies>
</module>
As far as I've been able to discern, I've done everything correctly.
Yet the class refuses to load, and looking at the jboss log (on trace level) the error seems to be an inability to FIND my module (rather than some downstream class dependency issue):
10:12:07,254 DEBUG [org.jboss.modules] (MSC service thread 1-4) Module deployment.dbAccess.war:main defined by Service Module Loader
10:12:07,254 TRACE [org.jboss.modules] (MSC service thread 1-4) Loaded module deployment.dbAccess.war:main from Service Module Loader
10:12:07,256 TRACE [org.jboss.modules] (MSC service thread 1-4) Locally loading module com.whatever.ivss:main from local module loader #65c404b3 (finder: local modul
e finder #2810b7f7 (roots: .../jboss-eap-6.2/modules,.../jboss-eap-6.2/modules/system/layers/base))
10:12:07,256 TRACE [org.jboss.modules] (MSC service thread 1-4) Module com.whatever.ivss:main not found from local module loader #65c404b3 (finder: local module find
er #2810b7f7 (roots: .../jboss-eap-6.2/modules,.../jboss-eap-6.2/modules/system/layers/base))
...
10:12:07,256 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.module.service."deployment.dbAccess.war".main:
org.jboss.msc.service.StartException in service jboss.module.service."deployment.dbAccess.war".main: JBAS018759: Failed to load module: deployment.dbAccess.war
:main
at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:91) [jboss-as-server-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14
]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-
1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
Caused by: org.jboss.modules.ModuleNotFoundException: com.whatever.ivss:main
at org.jboss.modules.Module.addPaths(Module.java:1030) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.modules.Module.link(Module.java:1386) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.modules.Module.relinkIfNecessary(Module.java:1414) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:242) [jboss-modules.jar:1.3.0.Final-redhat-2]
at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:70) [jboss-as-server-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14
]
... 5 more
I must be doing something wrong but I can't figure out what it is. Why can't JBoss find my modules?
UPDATE:
I found a possible solution for this or maybe it's just a bandaid.
The first clue was this log entry included above:
Locally loading module com.whatever.ivss:main ...
What is that :main doing there? At no point did I ask for my module to be qualified by the term "main".
Looking a little further, I descended the tree of the JBOSS_EAP_HOME/modules/system directory. These are the factory default dependent modules supplied by JBoss. Every module in here has its module.xml and jar files inside a subdirectory called main.
For example:
[wevs#hdcas01 cal10n]$ pwd
.../jboss-eap-6.2/modules/system/layers/base/ch/qos/cal10n
[wevs#hdcas01 cal10n]$ ls -alR
.:
total 12
drwxrwxr-x. 3 wevs wevs 4096 Nov 20 2013 .
drwxrwxr-x. 3 wevs wevs 4096 Nov 20 2013 ..
drwxrwxr-x. 2 wevs wevs 4096 Nov 20 2013 main
./main:
total 44
drwxrwxr-x. 2 wevs wevs 4096 Nov 20 2013 .
drwxrwxr-x. 3 wevs wevs 4096 Nov 20 2013 ..
-rw-rw-r--. 1 wevs wevs 30262 Nov 20 2013 cal10n-api-0.7.3-redhat-2.jar
-rw-rw-r--. 1 wevs wevs 1419 Nov 20 2013 module.xml
In other words, in the system modules that JBoss defines, the module definition and modules themselves are located in the .../{module name}/main directory, not the .../{module name} directory.
Following this pattern in my modules, the war now loads successfully.
However, this still leaves a question? Why is this "main" subdirectory seemingly required? It is not documented in the JBoss docs. Is this just the solution, or is there some other problematic aspect of my deployment that makes it necessary. Or is it a bug?

JBoss Modules requires a module name and a slot. In your module.xml there is an attribute that can be used called slot which defaults to main. Since your module.xml was not in the main directory it couldn't anything.
In other words the general directory format is package/name/slot. Since the default slot is main JBoss Modules looked in com/whatever/ivss/main for the module.xml file.

Further investigation shows this to be a fairly serious documentation error. I have posted this as a bug on the JBoss bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1130642
There are some other jboss documents that contradict the ones I was reading, details are in the bug report.
This cost me close to a day's worth of headscratching.

Related

IntelliJ claims to build but jar files are not touched

I have a java project that builds correctly using mvn
># mvn package
[ok]
># ls -il target/app.java target/app/ap.jar target/docker-app/app.jar
4239421 -rw-r--r-- 1 me domain users 25305467 Apr 27 08:55 target/docker-app/app.jar
4239422 -rw-r--r-- 1 me domain users 25305467 Apr 27 08:55 target/app/app.jar
4239416 -rw-r--r-- 1 me domain users 25305467 Apr 27 08:55 target/app.jar
change sources, build it again and the mtimes change
># mvn package
[ok]
># ls -il target/app.java target/app/ap.jar target/docker-app/app.jar
4239421 -rw-r--r-- 1 me domain users 25305467 Apr 27 08:56 target/docker-app/app.jar
4239422 -rw-r--r-- 1 me domain users 25305467 Apr 27 08:56 target/app/app.jar
4239416 -rw-r--r-- 1 me domain users 25305467 Apr 27 08:56 target/app.jar
as expected. Also if I diff one of these jar files with a copy of an older one, it is different.
I import this project into IntelliJ IDEA and build
Build completed successfully with 3 warnings
however
># ls -il target/app.java target/app/ap.jar target/docker-app/app.jar
4239421 -rw-r--r-- 1 me domain users 25305467 Apr 27 08:56 target/docker-app/app.jar
4239422 -rw-r--r-- 1 me domain users 25305467 Apr 27 08:56 target/app/app.jar
4239416 -rw-r--r-- 1 me domain users 25305467 Apr 27 08:56 target/app.jar
the mtime has NOT changed, and diff reports that the files are identical to copies of the earlier versions.
Why is IDEA not producing new jar files?
Your question is very similar to this one, which I have already answered: intellj IDEA doesnt build jar properly
It helps understanding.
Well looked at the catches. (click zoom)
This uses nvmw local to the project, nothing prevents you from using your nvm version.
Namely intellij provided well, its own build construction system, to create jars without maven. (Even though I personally have not been able to set it up correctly for it to work for starting the application.)
But if you are looking to create a war, I can give you more information to create a war file ...
I use spring boot but the principle remains the same with all simple java projects

Databricks considering files as directory

We are facing an issue on the Databrick filesyste that considers files as directory and we are unable to read files with Pandas. The files exist in the Azure Storage Explorer, and are considered as files as seen here :
We have mounted the storage with oAuth 2.0.
On Databricks,
%sh ls -al '<path_to_files>'
returns the following :
total 1127
drwxrwxrwx 2 root root 4096 Jan 29 09:26 .
drwxrwxrwx 2 root root 4096 Jan 9 13:47 ..
drwxrwxrwx 1 root root 136705 Jan 28 16:35 AAAA_2019-10-01_2019-12-27.csv
drwxrwxrwx 1 root root 183098 Jan 28 16:35 BBBB_2019-10-01_2019-12-27.csv
-rwxrwxrwx 1 root root 313120 Jan 28 16:35 CCCC_2019-10-01_2019-12-27.csv
-rwxrwxrwx 1 root root 212935 Jan 29 09:26 df_cube.csv
-rwxrwxrwx 1 root root 298228 Jan 29 09:26 df_other_cube.csv
​The thing is, the two first csv files are not directories at all. We can download them and read them as csv, but we cannot load them into a Pandas dataframe.
df = pd.read_csv(rootname_source_test + r'AAAA_2019-10-01_2019-12-27.csv',header=0,sep="|",engine='python')
>>> IsADirectoryError: [Errno 21] Is a directory: '/dbfs/mnt/<path>/AAA_2019-10-01_2019-12-27.csv'
They are generated the same way the 3rd csv is generated, and the 3rd on is loadable in pandas. Sometimes they appear as files, sometimes as directories and we are having trouble recreating and solving this consistently.
Cluster config : Runtime 6.2 ML (includes Apache Spark 2.4.4, Scala 2.11)
Any help will be very appreciated.

LoadModule weblogic_module */lib/mod_wl_24.so

I have a problem with Apache/2.4.17 (Unix) and the weblogic module (plugin) mod_wl_24.so
For this project I have used the httpd_vhosts.conf configuration under the extra directory (that I have enabled before in httpd.conf whith "Include conf/extra/httpd-vhosts.conf") and i have keep the default configurations in httpd.conf
I'm on arch-linux, but i think this is not relevant...
I download the right version of WL plugin and i had put the WLSPlugin12.2.1-Apache2.2-Apache2.4-Linux_x86_64-12.2.1.0.0 directory under the ServerRoot of apache:
/etc/httpd
drwxr-xr-x 4 root root 4096 4 dic 18.24 .
drwxr-xr-x 100 root root 12288 9 dic 09.57 ..
drwxr-xr-x 5 root root 4096 9 dic 11.02 conf
lrwxrwxrwx 1 root root 22 11 nov 17.33 modules -> /usr/lib/httpd/modules
drwxr-xr-x 5 root root 4096 4 dic 12.48 WLSPlugin12.2.1-Apache2.2-Apache2.4-Linux_x86_64-12.2.1.0.0
when I configure the httpd_vhosts.conf in extra directory of apache for load the plugin:
LoadModule weblogic_module WLSPlugin12.2.1-Apache2.2-Apache2.4-Linux_x86_64-12.2.1.0.0/lib/mod_wl_24.so
and after restart apache, I receive this error:
systemctl status httpd -l
● httpd.service - Apache Web Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since mer 2015-12-09 11:14:06 CET; 2h 23min ago
Process: 4231 ExecStop=/usr/bin/apachectl graceful-stop (code=exited, status=1/FAILURE)
Process: 4211 ExecStart=/usr/bin/apachectl start -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 4211 (code=exited, status=1/FAILURE)
dic 09 11:14:06 lollo-sorint systemd[1]: Stopped Apache Web Server.
dic 09 11:14:06 lollo-sorint systemd[1]: Started Apache Web Server.
dic 09 11:14:06 lollo-sorint apachectl[4211]: httpd: Syntax error on line 499 of /etc/httpd/conf/httpd.conf: Syntax error on line 26 of /etc/httpd/conf/extra/httpd-vhosts.conf: Cannot load WLSPlugin12.2.1-Apache2.2-Apache2.4-Linux_x86_64-12.2.1.0.0/lib/mod_wl_24.so into server: libopmnsecure.so: cannot open shared object file: No such file or directory
dic 09 11:14:06 lollo-sorint systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
dic 09 11:14:06 lollo-sorint apachectl[4231]: httpd: Syntax error on line 499 of /etc/httpd/conf/httpd.conf: Syntax error on line 26 of /etc/httpd/conf/extra/httpd-vhosts.conf: Cannot load WLSPlugin12.2.1-Apache2.2-Apache2.4-Linux_x86_64-12.2.1.0.0/lib/mod_wl_24.so into server: libopmnsecure.so: cannot open shared object file: No such file or directory
dic 09 11:14:06 lollo-sorint systemd[1]: httpd.service: Control process exited, code=exited status=1
dic 09 11:14:06 lollo-sorint systemd[1]: httpd.service: Unit entered failed state.
dic 09 11:14:06 lollo-sorint systemd[1]: httpd.service: Failed with result 'exit-code'.
I have correctly set the LD_LIBRARY_PATH on system for the lib directory of mod_wl_24.so:
ls -lrta WLSPlugin12.2.1-Apache2.2-Apache2.4-Linux_x86_64-12.2.1.0.0/lib/
-rwxr-x--- 1 root root 552424 6 ott 07.59 mod_wl.so
-rwxr-x--- 1 root root 553554 6 ott 07.59 mod_wl_24.so
-rwxr-x--- 1 root root 10535697 6 ott 07.59 libnnz11.so
-rwxr-x--- 1 root root 85909 6 ott 07.59 libopmnsecure.so
-rwxr-x--- 1 root root 67967 6 ott 07.59 libonssys.so
-rwxr-x--- 1 root root 326469 6 ott 07.59 libdms2.so
-rwxr-x--- 1 root root 52761218 6 ott 07.59 libclntsh.so
drwxr-xr-x 5 root root 4096 4 dic 12.48 ..
drwxr-xr-x 2 root root 4096 4 dic 17.15 .
env
LD_LIBRARY_PATH=/etc/httpd/WLSPlugin12.2.1-Apache2.2-Apache2.4-Linux_x86_64-12.2.1.0.0/lib
ldd WLSPlugin12.2.1-Apache2.2-Apache2.4-Linux_x86_64-12.2.1.0.0/lib/mod_wl_24.so
linux-vdso.so.1 (0x00007ffd173fb000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fe6f4178000)
libopmnsecure.so => /etc/httpd/WLSPlugin12.2.1-Apache2.2-Apache2.4-Linux_x86_64-12.2.1.0.0/lib/libopmnsecure.so (0x00007fe6f3f68000)
libonssys.so => /etc/httpd/WLSPlugin12.2.1-Apache2.2-Apache2.4-Linux_x86_64-12.2.1.0.0/lib/libonssys.so (0x00007fe6f3d5a000)
libdms2.so => /etc/httpd/WLSPlugin12.2.1-Apache2.2-Apache2.4-Linux_x86_64-12.2.1.0.0/lib/libdms2.so (0x00007fe6f3b19000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007fe6f381b000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fe6f3604000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007fe6f3260000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fe6f305c000)
/usr/lib64/ld-linux-x86-64.so.2 (0x0000563b8fd02000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fe6f2e3e000)
librt.so.1 => /usr/lib/librt.so.1 (0x00007fe6f2c36000)
So, libopmnsecure.so lib is defined and elaborate from system...
I'm little desperate because i can not find a logical explanation for that...
anyone had that such problem before? Any little help would be grateful :)
I have similar issue with Red Hat RHEL7 and apache 2.4.
For this kind of error
Cannot load .../lib/mod_wl_24.so into server: libonssys.so: cannot open shared object file: No such file or directory
Library libonssys.so is given with weblogic httpd module.
under
/etc/ld.so.conf.d/
create a file pluginWeblogic.conf valued with pathToWeblogicPlugin/lib
for this example valued file pluginWeblogic.conf with
/etc/httpd/WLSPlugin12.2.1-Apache2.2-Apache2.4-Linux_x86_64-12.2.1.0.0/lib
and on shell run :
ldconfig
then restart apache :
systemctl restart httpd
Review the following file:
cat /usr/lib/systemd/system/httpd.service
Under [Service] it specifies the EnvironmentFile=/etc/sysconfig/httpd
Update the file /etc/sysconfig/httpd with the LD_LIBRARY_PATH to the Weblogic Plugin
vi /etc/sysconfig/httpd
# Update to include Weblogic Plugin
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/PATH/weblogic-plugins/lib
#
Restart Apache
systemctl stop httpd.service ;
systemctl start httpd.service ;
systemctl status httpd.service
I have found the problem,
The new system control "systemd" don't load the ENV LD_LIBRARY_PATH when i use the "systemctl restart httpd" command... i don't know why, but is clearly, because if i restart the apache with "apachectl restart" the mod_weblogic is load correctly
i hope this help anybody have this problem
There's no need to set the LD_LIBRARY_PATH. You can simply update the LD_LIBRARY_PATH by copying the 'lib' contents to /usr/lib or /usr/lib64
I might be late but I think someone might be helped by the struggle and how it got fixed.
My environment:
Apache/2.4.41
Ubuntu 20.04.3 LTS
Oracle plugin: mod_wl_24.so
The plugins were placed in the path
/usr/lib/apache2/modules
I added the file "weblogic.load" in apache's mods_available path
echo LoadModule weblogic_module /usr/lib/apache2/modules/mod_wl_24.so > /etc/apache2/mods-available/weblogic.load
Starting apache was failing with the below error
/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/weblogic.load: Cannot load /usr/lib/apache2/modules/mod_wl_24.so into
Resolution
export LD_LIBRARY_PATH=/usr/lib/apache2/modules
cd /etc/ld.so.conf.d
echo /usr/lib/apache2/modules > wlsplugin.conf
ldconfig
apachectl start

dspace filter-media crashes after upgrading DSpace from 5.3 to 5.4

dspace filter-media was working perfectly fine on DSpace 5.3. After upgrading do 5.4 every time I run it to index a new PDF (already tested all sorts of PDFs!), it crashes with the following exception stack:
dspace#mylinux:/opt/dspace/deploy/bin> ./dspace filter-media
File: Supercalifragilisticexpialidocious.pdf.txt
Exception: org/apache/fontbox/afm/AFMParser
java.lang.NoClassDefFoundError: org/apache/fontbox/afm/AFMParser
at org.apache.pdfbox.pdmodel.font.PDFont.addAdobeFontMetric(PDFont.java:165)
at org.apache.pdfbox.pdmodel.font.PDFont.addAdobeFontMetric(PDFont.java:152)
at org.apache.pdfbox.pdmodel.font.PDFont.getAdobeFontMetrics(PDFont.java:122)
at org.apache.pdfbox.pdmodel.font.PDFont.<clinit>(PDFont.java:114)
at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:100)
at org.apache.pdfbox.pdmodel.PDResources.getFonts(PDResources.java:213)
at org.apache.pdfbox.util.PDFStreamEngine.getFonts(PDFStreamEngine.java:607)
at org.apache.pdfbox.util.operator.SetTextFont.process(SetTextFont.java:59)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:557)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:268)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:235)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:215)
at org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:460)
at org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:385)
at org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:344)
at org.dspace.app.mediafilter.PDFFilter.getDestinationStream(PDFFilter.java:101)
at org.dspace.app.mediafilter.MediaFilterManager.processBitstream(MediaFilterManager.java:734)
at org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilterManager.java:550)
at org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterManager.java:500)
at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilterManager.java:468)
at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersAllItems(MediaFilterManager.java:403)
at org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.java:340)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
Caused by: java.lang.ClassNotFoundException: org.apache.fontbox.afm.AFMParser
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 28 more
Caused by: java.util.zip.ZipException: error reading zip file
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1400(ZipFile.java:56)
at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:679)
at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:415)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at sun.misc.IOUtils.readFully(IOUtils.java:65)
at java.util.jar.JarFile.getBytes(JarFile.java:390)
at java.util.jar.JarFile.getManifestFromReference(JarFile.java:180)
at java.util.jar.JarFile.getManifest(JarFile.java:167)
at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:779)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:416)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
... 34 more
System information:
DSpace 5.4
SUSE Linux Enterprise Server 12 (x86_64)
OpenJDK Java 1.7.0_85
Maven 3.3.3
Ant 1.9.4
Tomcat 8.0.26
Postgres 9.3.8
I got it running, but can't figure it out WHY. Any thoughts?
What I did was to copy previous DSpace's jars from [dspace]/lib.bak to [dspace]/lib. So, instead of having this set of jars, that doesn't work,
-rw-r--r-- 1 dspace users 4173 Dec 17 09:43 additions-5.4.jar
-rw-r--r-- 1 dspace users 2159510 Dec 17 09:43 dspace-api-5.4.jar
-rw-r--r-- 1 dspace users 849983 Dec 14 12:24 dspace-api-lang-5.0.6.jar
-rw-r--r-- 1 dspace users 129054 Dec 17 09:45 dspace-oai-5.4-classes.jar
-rw-r--r-- 1 dspace users 130628 Dec 17 09:43 dspace-services-5.4.jar
now I have this and it's working just fine:
-rw-r--r-- 1 dspace users 4172 Sep 1 13:40 additions-5.2.jar
-rw-r--r-- 1 dspace users 4170 Sep 2 14:04 additions-5.3.jar
-rw-r--r-- 1 dspace users 4173 Dec 17 09:43 additions-5.4.jar
-rw-r--r-- 1 dspace users 2157296 Sep 1 13:38 dspace-api-5.2.jar
-rw-r--r-- 1 dspace users 2158457 Sep 2 14:04 dspace-api-5.3.jar
-rw-r--r-- 1 dspace users 2159510 Dec 17 09:43 dspace-api-5.4.jar
-rw-r--r-- 1 dspace users 845777 Sep 1 13:39 dspace-api-lang-5.0.5.jar
-rw-r--r-- 1 dspace users 849983 Dec 14 12:24 dspace-api-lang-5.0.6.jar
-rw-r--r-- 1 dspace users 128126 Sep 1 13:51 dspace-oai-5.2-classes.jar
-rw-r--r-- 1 dspace users 128849 Sep 2 14:06 dspace-oai-5.3-classes.jar
-rw-r--r-- 1 dspace users 129054 Dec 17 09:45 dspace-oai-5.4-classes.jar
-rw-r--r-- 1 dspace users 130562 Sep 1 13:38 dspace-services-5.2.jar
-rw-r--r-- 1 dspace users 130557 Sep 2 14:04 dspace-services-5.3.jar
-rw-r--r-- 1 dspace users 130628 Dec 17 09:43 dspace-services-5.4.jar
I'm glad I've fixed the issue, of course, but I would really like to know WHY!
After upgrading from 5.3 to 5.4, by merging git tag dspace-5.4 into my local 5.3 branch, I issued a mvn -U clean package followed by a ant update.

Missing dependencies

i get suddenly an error message, that 3 dependencies are missing: gwt-user.jar, gwt-dev.jar and gxt.jar. All jars are in my local repo:
dage [~/.m2/repository] $ ls -l com/google/gwt/gwt-user
insgesamt 12
drwxr-xr-x 2 dage Domain Users 4096 2010-01-13 14:55 1.5.3
drwxr-xr-x 2 dage Domain Users 4096 2010-01-13 11:10 1.6.4
drwxr-xr-x 2 dage Domain Users 4096 2010-01-13 16:10 2.0.0
dage [~/.m2/repository] $ ls -l com/google/gwt/gwt-dev/
insgesamt 12
drwxr-xr-x 2 dage Domain Users 4096 2010-01-13 14:55 1.5.3
drwxr-xr-x 3 dage Domain Users 4096 2010-01-13 11:02 1.6.4
drwxr-xr-x 2 dage Domain Users 4096 2010-01-15 09:58 2.0.0
dage [~/.m2/repository] $ ls -l com/extjs/gxt/
insgesamt 32
drwxr-xr-x 2 dage Domain Users 4096 2010-01-14 14:29 2.0.1
drwxr-xr-x 2 dage Domain Users 4096 2010-01-21 12:18 2.1.0
-rw-r--r-- 1 dage Domain Users 288 2010-01-21 12:18 maven-metadata-com.extjs.xml
-rw-r--r-- 1 dage Domain Users 40 2010-01-21 12:18 maven-metadata-com.extjs.xml.sha1
-rw-r--r-- 1 dage Domain Users 323 2010-01-21 12:01 maven-metadata-local.xml
-rw-r--r-- 1 dage Domain Users 288 2010-01-21 12:18 maven-metadata.xml
-rw-r--r-- 1 dage Domain Users 32 2010-01-21 12:18 maven-metadata.xml.md5
-rw-r--r-- 1 dage Domain Users 40 2010-01-21 12:18 maven-metadata.xml.sha1
and the pom entry is:
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwt.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
<scope>system</scope>
<systemPath>${gwt.home}/gwt-user.jar</systemPath>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwt.version}</version>
<scope>system</scope>
<systemPath>${gwt.home}/gwt-dev.jar</systemPath>
</dependency>
<!-- Needed for ExtGWT -->
<dependency>
<groupId>com.extjs</groupId>
<artifactId>gxt</artifactId>
<version>${gxt.version}</version>
<scope>provided</scope>
</dependency>
<properties>
<gwt.version>2.0.0</gwt.version>
<gxt.version>2.1.0</gxt.version>
</properties>
I don't have made any maven changes and the pom was also not changed. I've just added and modified java/css/hml files. Any ideas, what is wrong?
edit: Exact message is
Missing:
----------
1) com.google.gwt:gwt-user:jar:2.0.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.google.gwt -DartifactId=gwt-user -Dversion=2.0.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.google.gwt -DartifactId=gwt-user -Dversion=2.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
.
.
.
and I build the project in command line.
I get suddenly an error message, that 3 dependencies are missing: gwt-user.jar, gwt-dev.jar and gxt.jar. All jars are in my local repo:
Where? On the command line? In your IDE? If this is happening in your IDE and if you are using Eclipse and the m2eclipse plugin, I've noticed that Eclipse sometimes gets lost after POM changes. In that case, right click on the project, then select Maven > Update Project Configuration. Works for me.
i can't explain it, but after reboot is working again...