Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

A different java.lang.reflect.InvocationTargetException error

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I originally had the java.lang.reflect.InvocationTargetException error due to having a headless server. Having implemented the CATALINA_OPTS setting CATALINA_OPTS="$CATALINA_OPTS -Djava.awt.headless=true", the original error has now been replaced by:

An error has ocurred. For detailed stack trace, please see the page's source code.

/usr/j2se/jre/lib/sparc/libawt.so: ld.so.1: /usr/java/bin/java: fatal: libmlib_image.so: open failed: No such file or directory

The error occurs the first time I try to register a user.

I am using Solaris v9 and Tomcat 4.1.

For information, I have checked in /usr/j2se/jre/lib/sparc and can see libawt.so and libmlib_image.so, also ld.so.1 is in /usr/lib

Any clues???

Thanks,
[originally posted on jforum.net by Luke]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't have much idea.. as a hack tentative, try a ln -s of libmlib_imag.so to /usr/lib as well

Rafael
[originally posted on jforum.net by Rafael Steil]
 
If you live in a cold climate and on the grid, incandescent light can use less energy than LED. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic