Re: [maybe OT] - java.lang.UnsatisfiedLinkError in servlet when generating image on the fly

2004-01-18 Thread Philipp Taprogge
Hi!

Simone Chiaretta wrote:
the libXp.so lib is a lib from X server...
But I'm running the webserver on a just text server, so, no Xfree...
I'm wondering if X is needed to use some awt methods (like the
Toolkit.getImage())... or JPEGEncoder
 
the piece of code that seems to generate the error is:
 
Image image1 = Toolkit.getDefaultToolkit().getImage(sourceFileName)
Indeed many of the image manipulating capabilities of java.awt need a 
running X-server to connect to. I have not yet used the new headless 
feature, but afaik all your classes that use awt components but do not 
need a head have to implement the new headless interface. Have you 
done that?

HTH

		Phil

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[maybe OT] - java.lang.UnsatisfiedLinkError in servlet when generating image on the fly

2004-01-17 Thread Simone Chiaretta
Hello all,
I get a strange error when try to run a code to generate a JPG on the
fly from inside a servlet:
 
java.lang.UnsatisfiedLinkError:
/usr/java/j2sdk1.4.0_01/jre/lib/i386/libawt.so: libXp.so.6: cannot open
shared object file: No such file or directory

the libXp.so lib is a lib from X server...
But I'm running the webserver on a just text server, so, no Xfree...
I'm wondering if X is needed to use some awt methods (like the
Toolkit.getImage())... or JPEGEncoder
 
the piece of code that seems to generate the error is:
 
Image image1 = Toolkit.getDefaultToolkit().getImage(sourceFileName)
 
Thanx
Simone
 
-
Simone Chiaretta
 http://www.piyosailing.com/S www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
Life is short, play hard
 


R: [maybe OT] - java.lang.UnsatisfiedLinkError in servlet when generating image on the fly

2004-01-17 Thread Simone Chiaretta
I also added the  -Djava.awt.headless=true in the tomcat startup script
but still get the same error

Simone
 
-
Simone Chiaretta
 http://www.piyosailing.com/S www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
Life is short, play hard

-Messaggio originale-
Da: Simone Chiaretta [mailto:[EMAIL PROTECTED] 
Inviato: domenica 18 gennaio 2004 1.02
A: '[EMAIL PROTECTED]'
Oggetto: [maybe OT] - java.lang.UnsatisfiedLinkError in servlet when
generating image on the fly


Hello all,
I get a strange error when try to run a code to generate a JPG on the
fly from inside a servlet:
 
java.lang.UnsatisfiedLinkError:
/usr/java/j2sdk1.4.0_01/jre/lib/i386/libawt.so: libXp.so.6: cannot open
shared object file: No such file or directory

the libXp.so lib is a lib from X server...
But I'm running the webserver on a just text server, so, no Xfree...
I'm wondering if X is needed to use some awt methods (like the
Toolkit.getImage())... or JPEGEncoder
 
the piece of code that seems to generate the error is:
 
Image image1 = Toolkit.getDefaultToolkit().getImage(sourceFileName)
 
Thanx
Simone
 
-
Simone Chiaretta
 http://www.piyosailing.com/S www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
Life is short, play hard
 



java.lang.UnsatisfiedLinkError

2003-09-15 Thread Astrid Wagner
Hi,

I have three different web applications installed and running in three 
different modes (e.g. test, training )
but basically based on the same code otherwise. In all of them I use a 
native c library to call shell commands.
When I test one web app everything works fine.
When I switch to another web application I eventually receive the 
following error:

root cause

java.lang.UnsatisfiedLinkError: Native Library 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/lib/libIprShellInterface.so 
already loaded in another classloader
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1444)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404)
   at java.lang.Runtime.loadLibrary0(Runtime.java:772)
   at java.lang.System.loadLibrary(System.java:832)

I installed the shared library  libIprShellInterface.so  into the 
databases lib directory which is included in the library path
and where it is - normally - found.
Does anyone know why I receive this error and how I can solve this problem?
Thanks.
Astrid



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: java.lang.UnsatisfiedLinkError

2003-09-15 Thread Astrid Wagner
Hi,

Where do I set the java.library.path property for different webapps?
Thanks.
Astrid

Astrid Wagner wrote:

Hi,

I have three different web applications installed and running in three 
different modes (e.g. test, training )
but basically based on the same code otherwise. In all of them I use a 
native c library to call shell commands.
When I test one web app everything works fine.
When I switch to another web application I eventually receive the 
following error:

root cause

java.lang.UnsatisfiedLinkError: Native Library 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/lib/libIprShellInterface.so 
already loaded in another classloader
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1444)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404)
   at java.lang.Runtime.loadLibrary0(Runtime.java:772)
   at java.lang.System.loadLibrary(System.java:832)

I installed the shared library  libIprShellInterface.so  into the 
databases lib directory which is included in the library path
and where it is - normally - found.
Does anyone know why I receive this error and how I can solve this 
problem?
Thanks.
Astrid



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: java.lang.UnsatisfiedLinkError

2003-09-15 Thread Tim Funk
See the RELEASE NOTES under the section of shared libraries ...

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/RELEASE-NOTES-4.1.txt?rev=1.79content-type=text/vnd.viewcvs-markup

-Tim

Astrid Wagner wrote:
Hi,

Where do I set the java.library.path property for different webapps?
Thanks.
Astrid

Astrid Wagner wrote:

Hi,

I have three different web applications installed and running in three 
different modes (e.g. test, training )
but basically based on the same code otherwise. In all of them I use a 
native c library to call shell commands.
When I test one web app everything works fine.
When I switch to another web application I eventually receive the 
following error:

root cause

java.lang.UnsatisfiedLinkError: Native Library 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/lib/libIprShellInterface.so 
already loaded in another classloader
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1444)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404)
   at java.lang.Runtime.loadLibrary0(Runtime.java:772)
   at java.lang.System.loadLibrary(System.java:832)

I installed the shared library  libIprShellInterface.so  into the 
databases lib directory which is included in the library path
and where it is - normally - found.
Does anyone know why I receive this error and how I can solve this 
problem?
Thanks.
Astrid



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: java.lang.UnsatisfiedLinkError

2003-09-15 Thread Astrid Wagner
Thanks for the hint.
But I do not quite understand the proposal:
the shared libraries state should be reinitialized.

How do I do that?

Then:

Something which could help is to avoid putting classes which would be 
referenced by a shared static field in the web application classloader, 
and put them in the shared classloader instead (the JARs should be put in the 
lib folder, and classes should be put in the classes folder).

??

Maybe you can tell me what this means in my example.
My webapps use the class IprShellInterface which is in a shared library the following 
way:
   String shellResponse = IprShellInterface.executeCommand(...);
Here a snippet from IprShellInterface.java:

 static {

System.out.println([EMAIL PROTECTED]: The library path is set to:  +
System.getProperty(java.library.path));
try {
   System.loadLibrary(IprShellInterface);
   System.out.println([EMAIL PROTECTED]: Done loading library IprShellInterface);
}
catch (Exception e) {
   System.out.println([EMAIL PROTECTED]: Exception loading library IprShellInterface 
... 
);
   System.out.println(e.getMessage());
}
 public static String executeCommand(...)

I compile the class into the shared library libIprShellInterface.so and right now 
install it in lib of the DB installation (included in the java.library.path variable).
This means that all webapps take the same. If that is the reason for the problem wouldn't it be a solution to
install it into the different webapps lib directories:
./webapps/iprweb-iprdev1/WEB-INF/lib/libIprShellInterface.so
./webapps/iprweb-iprdev2/WEB-INF/lib/libIprShellInterface.so
./webapps/iprweb-iprdev3/WEB-INF/lib/libIprShellInterface.so

and have the java.library.path path be set individually for the webapps. Or is there 
only one for all applications?
Where do I set the library path anyway?
Sorry I just have too little info about how this works ...
Thanks
Astrid


Tim Funk wrote:

See the RELEASE NOTES under the section of shared libraries ...

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/RELEASE-NOTES-4.1.txt?rev=1.79content-type=text/vnd.viewcvs-markup 

-Tim

Astrid Wagner wrote:

Hi,

Where do I set the java.library.path property for different webapps?
Thanks.
Astrid

Astrid Wagner wrote:

Hi,

I have three different web applications installed and running in 
three different modes (e.g. test, training )
but basically based on the same code otherwise. In all of them I use 
a native c library to call shell commands.
When I test one web app everything works fine.
When I switch to another web application I eventually receive the 
following error:

root cause

java.lang.UnsatisfiedLinkError: Native Library 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/lib/libIprShellInterface.so 
already loaded in another classloader
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1444)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404)
   at java.lang.Runtime.loadLibrary0(Runtime.java:772)
   at java.lang.System.loadLibrary(System.java:832)

I installed the shared library  libIprShellInterface.so  into the 
databases lib directory which is included in the library path
and where it is - normally - found.
Does anyone know why I receive this error and how I can solve this 
problem?
Thanks.
Astrid



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: java.lang.UnsatisfiedLinkError

2003-09-15 Thread Tim Funk
Each webapp is in its own class loader. Native code can doesn't care about 
classloaders. It only wants loaded once. Initializing can't really be done 
easily (if at all) in a webapp context. Move the code which does the shared 
native code to $CATALINA_HOME/common/lib

-Tim

Astrid Wagner wrote:

Thanks for the hint.
But I do not quite understand the proposal:
the shared libraries state should be reinitialized.

How do I do that?

Then:

Something which could help is to avoid putting classes which would be 
referenced by a shared static field in the web application classloader, 
and put them in the shared classloader instead (the JARs should be put 
in the lib folder, and classes should be put in the classes folder).

??

Maybe you can tell me what this means in my example.
My webapps use the class IprShellInterface which is in a shared library 
the following way:
   String shellResponse = IprShellInterface.executeCommand(...);

Here a snippet from IprShellInterface.java:

 static {

System.out.println([EMAIL PROTECTED]: The library path is 
set to:  +
System.getProperty(java.library.path));

try {
   System.loadLibrary(IprShellInterface);
   System.out.println([EMAIL PROTECTED]: Done loading 
library IprShellInterface);
}
catch (Exception e) {
   System.out.println([EMAIL PROTECTED]: Exception loading 
library IprShellInterface ... 
);
   System.out.println(e.getMessage());
}

 public static String executeCommand(...)

I compile the class into the shared library libIprShellInterface.so and 
right now install it in lib of the DB installation (included in the 
java.library.path variable).
This means that all webapps take the same. If that is the reason for the 
problem wouldn't it be a solution to
install it into the different webapps lib directories:
./webapps/iprweb-iprdev1/WEB-INF/lib/libIprShellInterface.so
./webapps/iprweb-iprdev2/WEB-INF/lib/libIprShellInterface.so
./webapps/iprweb-iprdev3/WEB-INF/lib/libIprShellInterface.so

and have the java.library.path path be set individually for the webapps. 
Or is there only one for all applications?
Where do I set the library path anyway?
Sorry I just have too little info about how this works ...

Thanks
Astrid


Tim Funk wrote:

See the RELEASE NOTES under the section of shared libraries ...

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/RELEASE-NOTES-4.1.txt?rev=1.79content-type=text/vnd.viewcvs-markup 

-Tim

Astrid Wagner wrote:

Hi,

Where do I set the java.library.path property for different webapps?
Thanks.
Astrid

Astrid Wagner wrote:

Hi,

I have three different web applications installed and running in 
three different modes (e.g. test, training )
but basically based on the same code otherwise. In all of them I use 
a native c library to call shell commands.
When I test one web app everything works fine.
When I switch to another web application I eventually receive the 
following error:

root cause

java.lang.UnsatisfiedLinkError: Native Library 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/lib/libIprShellInterface.so 
already loaded in another classloader
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1444)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404)
   at java.lang.Runtime.loadLibrary0(Runtime.java:772)
   at java.lang.System.loadLibrary(System.java:832)

I installed the shared library  libIprShellInterface.so  into the 
databases lib directory which is included in the library path
and where it is - normally - found.
Does anyone know why I receive this error and how I can solve this 
problem?
Thanks.
Astrid


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path

2002-03-04 Thread Toru Watanabe


First, please make sure that Oracle client is installed
in your machine.

Abhishek Thanks buddy!
Abhishek but ..i already did that
Abhishek but i have a a requirement which says i have to use oci client only
Abhishek any other solution ???

UnsatisfiedLinkError means JVM can't find shared library.
You need to add shared library path to environment variable.

If you use solaris or linux, then you should add following 
statement in your tomcat.sh.

LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

if you use HP-UX, then

SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
export SHLIB_PATH

if you use Windows, then you should add following to tomcat.bat.

set PATH=%ORACLE_HOME%\lib;%PATH%


then it will be able to find shared library. 

regards,
Watanabe.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path

2002-03-04 Thread Abhishek Pamecha

it is there..

-Original Message-
From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 2:34 PM
To: Tomcat Users List
Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
library path



First, please make sure that Oracle client is installed
in your machine.

Abhishek Thanks buddy!
Abhishek but ..i already did that
Abhishek but i have a a requirement which says i have to use oci client only
Abhishek any other solution ???

UnsatisfiedLinkError means JVM can't find shared library.
You need to add shared library path to environment variable.

If you use solaris or linux, then you should add following 
statement in your tomcat.sh.

LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

if you use HP-UX, then

SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
export SHLIB_PATH

if you use Windows, then you should add following to tomcat.bat.

set PATH=%ORACLE_HOME%\lib;%PATH%


then it will be able to find shared library. 

regards,
Watanabe.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path

2002-03-04 Thread brian ally

Are you starting tomcat as root? On my linux box, if i su to root, all 
manner of LD_LIBRARY_PATH problems begin. i need to su - (with the 
dash). Could this be your problem?

/b

Abhishek Pamecha wrote:

it is there..

-Original Message-
From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 2:34 PM
To: Tomcat Users List
Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
library path



First, please make sure that Oracle client is installed
in your machine.

Abhishek Thanks buddy!
Abhishek but ..i already did that
Abhishek but i have a a requirement which says i have to use oci client only
Abhishek any other solution ???

UnsatisfiedLinkError means JVM can't find shared library.
You need to add shared library path to environment variable.

If you use solaris or linux, then you should add following 
statement in your tomcat.sh.

LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

if you use HP-UX, then

SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
export SHLIB_PATH

if you use Windows, then you should add following to tomcat.bat.

set PATH=%ORACLE_HOME%\lib;%PATH%


then it will be able to find shared library. 

regards,
Watanabe.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path

2002-03-04 Thread David Cassidy

Brian,

For a very large number of reasons it's probably best not to run
tomcat under the super user account...

You might want to try setting the LD_LIBRARY_PATH
env in your startup / shutdown scripts...

Or you might want to look at ldconfig ...

D


brian ally wrote:

 Are you starting tomcat as root? On my linux box, if i su to root, all
 manner of LD_LIBRARY_PATH problems begin. i need to su - (with the
 dash). Could this be your problem?

 /b

 Abhishek Pamecha wrote:

 it is there..
 
 -Original Message-
 From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 04, 2002 2:34 PM
 To: Tomcat Users List
 Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
 library path
 
 
 
 First, please make sure that Oracle client is installed
 in your machine.
 
 Abhishek Thanks buddy!
 Abhishek but ..i already did that
 Abhishek but i have a a requirement which says i have to use oci client only
 Abhishek any other solution ???
 
 UnsatisfiedLinkError means JVM can't find shared library.
 You need to add shared library path to environment variable.
 
 If you use solaris or linux, then you should add following
 statement in your tomcat.sh.
 
 LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
 export LD_LIBRARY_PATH
 
 if you use HP-UX, then
 
 SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
 export SHLIB_PATH
 
 if you use Windows, then you should add following to tomcat.bat.
 
 set PATH=%ORACLE_HOME%\lib;%PATH%
 
 
 then it will be able to find shared library.
 
 regards,
 Watanabe.
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path

2002-03-04 Thread brian ally

i don't run as root; i think i misundertood/mixed up the situation with 
an earlier post or from wherever

/b

David Cassidy wrote:

Brian,

For a very large number of reasons it's probably best not to run
tomcat under the super user account...

You might want to try setting the LD_LIBRARY_PATH
env in your startup / shutdown scripts...

Or you might want to look at ldconfig ...

D


brian ally wrote:

Are you starting tomcat as root? On my linux box, if i su to root, all
manner of LD_LIBRARY_PATH problems begin. i need to su - (with the
dash). Could this be your problem?

/b

Abhishek Pamecha wrote:

it is there..

-Original Message-
From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 2:34 PM
To: Tomcat Users List
Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
library path



First, please make sure that Oracle client is installed
in your machine.

Abhishek Thanks buddy!
Abhishek but ..i already did that
Abhishek but i have a a requirement which says i have to use oci client only
Abhishek any other solution ???

UnsatisfiedLinkError means JVM can't find shared library.
You need to add shared library path to environment variable.

If you use solaris or linux, then you should add following
statement in your tomcat.sh.

LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

if you use HP-UX, then

SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
export SHLIB_PATH

if you use Windows, then you should add following to tomcat.bat.

set PATH=%ORACLE_HOME%\lib;%PATH%


then it will be able to find shared library.

regards,
Watanabe.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared librarypath

2002-03-04 Thread Abhishek Pamecha

my requirement restricts me to use only oci driver .. :(

-Original Message-
From: Fabio Sato [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 2:35 AM
To: Tomcat Users List
Subject: RE: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
librarypath


Why donĀ“t you try the Oracle Thin JDBC Driver?

Fabio Sato - [EMAIL PROTECTED]

On Tue, 5 Mar 2002, Abhishek Pamecha wrote:

 nope i am using tomcat from my user area ..
 both tomcat and apache run from my user area
 there is some problem with a particular .so file which it is not able to find
 
 
 -Original Message-
 From: brian ally [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 04, 2002 11:04 PM
 To: Tomcat Users List
 Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
 library path
 
 
 Are you starting tomcat as root? On my linux box, if i su to root, all 
 manner of LD_LIBRARY_PATH problems begin. i need to su - (with the 
 dash). Could this be your problem?
 
 /b
 
 Abhishek Pamecha wrote:
 
 it is there..
 
 -Original Message-
 From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 04, 2002 2:34 PM
 To: Tomcat Users List
 Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
 library path
 
 
 
 First, please make sure that Oracle client is installed
 in your machine.
 
 Abhishek Thanks buddy!
 Abhishek but ..i already did that
 Abhishek but i have a a requirement which says i have to use oci client only
 Abhishek any other solution ???
 
 UnsatisfiedLinkError means JVM can't find shared library.
 You need to add shared library path to environment variable.
 
 If you use solaris or linux, then you should add following 
 statement in your tomcat.sh.
 
 LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
 export LD_LIBRARY_PATH
 
 if you use HP-UX, then
 
 SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
 export SHLIB_PATH
 
 if you use Windows, then you should add following to tomcat.bat.
 
 set PATH=%ORACLE_HOME%\lib;%PATH%
 
 
 then it will be able to find shared library. 
 
 regards,
 Watanabe.
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path

2002-03-04 Thread Toru Watanabe

Hi Abhishek,

try following jsp. this jsp displays java.library.path.
It suppose there is no libocijdbc8.so in above pathes.

you should find libocijdbc8.so and add to LD_LIBRARY_PATH.

-snip
%
String libpath = (String)(System.getProperty(java.library.path));
%
html

head
title
library path test
/title
/head
body
pThe library path is %=libpath%/p
/body
/html

--snip--

regards,
Watanabe


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path

2002-03-04 Thread James, Stuart

if your using jdk1.4 and tomcat 4.02 try using the thin client.

ie.,
jdbc:oracle:thin:@myserver:1521:mydb

-Original Message-
From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 9:04 AM
To: Tomcat Users List
Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
library path



First, please make sure that Oracle client is installed
in your machine.

Abhishek Thanks buddy!
Abhishek but ..i already did that
Abhishek but i have a a requirement which says i have to use oci client
only
Abhishek any other solution ???

UnsatisfiedLinkError means JVM can't find shared library.
You need to add shared library path to environment variable.

If you use solaris or linux, then you should add following 
statement in your tomcat.sh.

LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

if you use HP-UX, then

SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
export SHLIB_PATH

if you use Windows, then you should add following to tomcat.bat.

set PATH=%ORACLE_HOME%\lib;%PATH%


then it will be able to find shared library. 

regards,
Watanabe.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


___
Email Disclaimer

This communication is for the attention of the
named recipient only and should not be passed
on to any other person. Information relating to
any company or security, is for information
purposes only and should not be interpreted as
a solicitation or offer to buy or sell any security.
The information on which this communication is based
has been obtained from sources we believe to be reliable,
but we do not guarantee its accuracy or completeness.
All expressions of opinion are subject to change
without notice.  All e-mail messages, and associated attachments,
are subject to interception and monitoring for lawful business purposes.
___


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




JNI Problems - java.lang.UnsatisfiedLinkError

2001-05-21 Thread Brian Oliver

I've been through almost all of the tomcat-user archives, faqs and 
documentation, but still I can not make a simple JNI call from a JSP.

The problem, as I found in most of the archives is an 
java.lang.UnsatisfiedLinkError exception.

Here are some details.

1. Windows 2000, JDK1.3.1, Tomcat 3.2.1

2. The library is in the WinNT folder (which is in the PATH env var)

3. The library works perfectly from a standalone Java app

4. The library is loading correctly (from the JSP). It can not be deleted 
once loaded, and no errors are reported upon loading thus I assume the 
library is loaded.

5. Once a call is made to the library, an java.lang.UnsatisfiedLinkError is 
generated.

6. The library is in a path specified in the java.library.path

Archived articles suggest the function prototype/signature in the lirbary 
(DLL) does not match the class file.  This is simply not so as it works 
perfectly from a standalone Java app, without moving/recompiling any files.

Any suggestions would be warmly welcomed.

Regards

-- Brian



_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.