Ld.so.1: /usr/java1.2.1/bin/../bin/sparc/native_threads/java: fatal: libhpi
Hi
i am calling a java program from a shell script. While i the java program runs successfully when run from command prompt, it does not run when triggerred by another program. The gid runtime is also different, which is how it is required. i get the following error when run with the different gid.
"ld.so.1: /usr/java1.2.1/bin/../bin/sparc/native_threads/java: fatal: libhpi.so: open failed: No such file or directory"
The environment where this program is run is java1.2.1 in Solaris 7.
i have also tried by by including the .so path in LD_LIBRARY_PATH. This does not solve the problem.
i have noticed a few related topics and may be this is an old issue but i am not getting any solution yet.
thanks to all your help in advance
shiv
Thanks jschell.
i had to copy the files when the script calling the java program is executed as part of a triggering process run with a different euid/gid.
When executed from command prompt, the script ( and the program) work fine. This probably has something to do with the security issues as can be seen under the security section of the ld.so.1 manual page.
Thanks for pointing out that it is something to do with the environment. i'm wondering if i should copy the java lib files too to the default /usr/lib directory, so the libs are avaiable during such a runtime. Might give a try!
Similar Messages
-
Executing cgi-bin from a java program
I am trying to develop a Java HTTP server that also includes support for CGI-BIN but the last weeks i am stack at the same point ! I am trying to execute the cgi and then give it an argument but i never have an output ! Please help cause the deadline is coming near !!!
//Set environment variables
String[] setVar = {"REQUEST_METHOD=POST","CONTENT_LENGTH="+extra.length};
String[] cgi = {"/bin/bash","./home/pap/jhttp"+Petition_Analysis.pt.uri.path,"/n"};
//Execute the cgi-bin with the appropriate input
Process cgiOut = Runtime.getRuntime().exec(cgi,setVar);
// get its output (your input) stream
DataOutputStream put = new DataOutputStream(cgiOut.getOutputStream());
put.writeBytes(Petition_Analysis.pt.Pet_Body);
DataInputStream in = new DataInputStream(cgiOut.getInputStream());
// Read and print the output
String line;
StringBuffer page = new StringBuffer();
while ((line = in.readLine()) != null) {
page.append(line);
//Send page to client
out.print("HTTP/1.1 200 OK\r\n");
out.print("Content-Length: " + page.toString().length() +"\r\n\r\n");
System.out.print(page);
Cgi call is like that:
./post_from.cgi
first_operand=342&second_operand=32&operation=-
Note that there is a blank line !Well no, the script works perfectly, here is the output of the console in Linux system and this exactly what i want to do in the program:
[pap@laptop pap]$ export CONTENT_LENGTH=11
[pap@laptop pap]$ export REQUEST_METHOD=POST
[pap@laptop pap]$ /home/pap/jhttp/cgi-bin/post_form.cgi
op1=1&op2=2
Content-Type: text/html
<html><head><title>Script results</title></head>
<body>
<p>Number of sent fields: 2</p>
<p>
<b>Field:</b> op1<br>
<b>Valor:</b> 1
</p>
<p>
<b>Field:</b> op2<br>
<b>Valor:</b> 2
</p>
</body></html>
So the question is how to this inside a Java program and better forget my code which is erroneous
also forgive my english :) -
TZupdater: Exception in thread "main" java.lang.NoClassDefFoundError:
Hello,
I am using the tool tzupdater over Solaris 9 to get java compliant with new DST (Daylight Saving Time) for US (2007).
I am using the following command:
# find /usr -fstype nfs -prune -o -fstype autofs -prune -o -name java -print -exec {} /marksman/packages/tzupdater2006p/tzupdater.jar -u \;
Getting the following messages:
/usr/bin/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/dt/appconfig/netscape/java
/usr/j2se/bin/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/j2se/bin/sparcv9/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/j2se/jre/bin/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/j2se/jre/bin/sparcv9/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/j2se/opt/javahelp/doc/api/com/sun/java
/usr/java
/usr/iplanet/console5.1/java
/usr/iplanet/ds5/java
/usr/iplanet/admserv5.1/java
/usr/apache/jserv/docs/api/org/apache/java
/usr/java1.2/bin/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/java1.2/jre/bin/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/java1.2/jre/bin/sparc/native_threads/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/appserver/samples/rmi-iiop/cpp/src/client/java
/usr/appserver/samples/rmi-iiop/cpp/src/client/org/omg/boxedRMI/java
/usr/dlc91d/jre/bin/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/dlc91d/jre/bin/sparc/native_threads/java
Exception in thread "main" java.lang.NoClassDefFoundError: /marksman/packages/tzupdater2006p/tzupdater/jar
/usr/dlc91d/java
Any idea why I am getting this error, and how can I fix it?
Thank youHi,
I was wondering if you ever saw a resolution to your problem. I am seeing the same error on Windows and can't figure out what is causing it. Any information is appreciated.
Thanks,
Marina Orton -
Installing 5.1 sp6 (solaris)
After installing sp6 (solaris)...
www20% java weblogic.Admin t3://www20.digitalriver.com:7111 VERSION
ld.so.1: /dbdata/home/weblogic/jdk1.2.2/bin/sparc/native_threads/java:
fatal: libhpi.so: open failed: No such file or directory
Killed
www20%
This is supposed to return:
WebLogic Build: 5.1.0 Service Pack 6 ...
Any help?Hi,
From the multi-thread's view, we can't do this, it's the kenerl's responsibility to share the cpus time. We can't bind some threads or processes to use the specified cpu. Why do you think that bound to one cpu can best load-balancing?
Tao Zhang
"Martin Ober" <[email protected]> wrote:
>
>Hi, we are running a WLS Cluster with 2 instances on one Solaris 7 server with 2 CPU.
>We bound each WLS to one IP-adress. Now we would like to run each WLS on one of
>the both CPUs, to get the best loadbalancing.
>
>Anyone, who knows what to do?
-
Installation problem of WL6.0SP1 on solaris
When I install WL6.0SP1 on Sun Solaris, it gives such message:
weblogic600sp1_sol.bin Preparing to install...
Error: failed /tmp/install.dir.16036/Solaris/resource/jre/jre/lib/sparc/client/libjvm.so,
because ld.so.1: /tmp/install.dir.16036/Solaris/resource/jre/jre/bin/../bin/sparc/native_threads/java:
fatal: libCrun.so.1: open failed: No such file or directory
>
My classpath is set as:
/usr/java1.2/lib:/oracle/product/8.1.6/jdbc/lib/classes12.zip:/usr/local/j2sdkee1.2.1/lib/j2ee.jar:
Does any one know what is wrong with it?
Thanks.You probably need Solaris patches. I had this problem to installing on Solaris
7. GO to Sun's web site to look for pathces relating to C runtime libs.
"Yingwei" <[email protected]> wrote:
>
When I install WL6.0SP1 on Sun Solaris, it gives such message:
weblogic600sp1_sol.bin Preparing to install...
Error: failed /tmp/install.dir.16036/Solaris/resource/jre/jre/lib/sparc/client/libjvm.so,
because ld.so.1: /tmp/install.dir.16036/Solaris/resource/jre/jre/bin/../bin/sparc/native_threads/java:
fatal: libCrun.so.1: open failed: No such file or directory
>
My classpath is set as:
/usr/java1.2/lib:/oracle/product/8.1.6/jdbc/lib/classes12.zip:/usr/local/j2sdkee1.2.1/lib/j2ee.jar:
Does any one know what is wrong with it?
Thanks. -
Installing jdk1.3 in solaris 2.6
Hi, I would like to install jdk 1.3 into my solaris 2.6 machine. I have downloaded
j2sdk-1_3_1_05-solaris-sparc[1].tar.Z and installed the packages into my system.
after the installation, I have redirected the softlink from /usr/java to /usr/j2se.
Orginally, it was pointing to /usr/java1.1, a previous version.
however, when I run a java -version. I got the follwing error.
Can anyone kindly help me on this ?
[sun]# ./java -version
Error: failed /usr/j2se/jre/lib/sparc/client/libjvm.so, because ld.so.1: /usr/j2se/bin/./../bin/sparc/native_threads/java: fatal: libCrun.so.1: open failed:
No such file or directory
thksHi
Thanks for the response. I understand the concept of anonymous memory. But what is confusing me is the "/tmp" directory. The "df -k" command over the "/tmp" directory is always showing used % as 1%. Also the "swap -s" is never matching with the output of "df -k".. ( I suppose both represent the Virtual attributes of swap space i.e. disk backed memory + portion of the RAM).
for example following is the output of the above commands at a particular instance.
df -k
swap 1908728 1768 1906960 1% /tmp
tcsb.tcs.gs1::/users/tcsuser/tmp-> swap -l
swapfile dev swaplo blocks free
/dev/dsk/c1t0d0s1 32,1 16 1049744 84048
tcsb.tcs.gs1::/users/tcsuser/tmp-> swap -s
total: 589008k bytes allocated + 98672k reserved = 687680k used, 1908920k available
Is there anything i'm missing here??
-ravi -
Urgent: UnsatisfiedLinkError in Solaris 8
Hi,
I am new to JNI stuff. I have a problem when loading the shared library. Here are the details:
I have a java class AuthenticateEngine.java - This class contains methods for authenticating the user against the Solaris system. This service is running as a RMI with security enabled. It is internally implemented using the PAM (Pluggable Authentication Module)
I have a C program AuthenticateImpl.c which calls the PAM module to verify the given user-id and password.
I am getting the following exception when I execute the AuthenticateEngine class.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /mypath/libauthentication.so: ld.so.1: /usr/java1.3/j2sdk1_3_1_02/bin/../bin/sparc/native_threads/java: fatal: relocation error: file /mypath/libauthentication.so: symbol pam_chauthtok: referenced symbol not found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1419)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1343)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at packagename.authenticateEngine.<clinit>(AuthenticateEngine.java:118)
The line 118 in AuthenticateEngine.java contains the System.loadLibrary("authentication"); inside the static block.
Compilation Details:
$ /usr/bin/javac -classpath . packagename/AuthenticateEngine.java
$ /usr/bin/javah -classpath . packagename.AuthenticateEngine
$ /usr/local/bin/gcc -G -I/usr/java/include -I/usr/java/include/solaris -o libauthentication.so AuthenticateImpl.c
I am doing the following to execute my class.
$ rmiregistry &
$ LD_LIBRARY_PATH=./ java -classpath . -Djava.security.policy=./java.policy packagename.AuthenticateEngine &
Can anyone help me ?
Thanks in advance,
Prem.Thanks for the quick reply.
Yes i have included the header #include <security/pam_appl.h> for my PAM in my C program.
I am using pam_start(), pam_chauthtok() and other pam related APIs. Probably do i need to link the library libpam.so when i generate the libauthentication.so (my library) ? or do i need to specify the path of libpam.so somewhere ?
This is how i am generating my libauthentication.so:
/usr/local/bin/gcc -G -I/usr/java/include -I/usr/java/include/solaris -o libauthentication.so AuthenticateImpl.c
kr,
Prem. -
J2SDK 1.4.0 beta on Solaris 2.5.1
I've downloaded and installed 1.4 beta, but it doesn't work on the Solaris 2.5.1 machine:
% java -version
Error: failed /disk/usr/j2sdk1_4_0b/jre/lib/sparc/client/libjvm.so, because ld.so.1: /disk/usr/j2sdk1_4_0b/bin/../bin/sparc/native_threads/java: fatal: relocation error: file /disk/usr/j2sdk1_4_0b/jre/lib/sparc/client/libjvm.so: symbol pset_bind: referenced symbol not found
% which java
/disk/usr/j2sdk1_4_0b/bin/java
All the listed patches are installed.
It does work on the Solaris 2.6 machine:
/usr/java1.4/bin/java -versionjava version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)
>
Suggestions?Please read the Installation Note of the release. JDK 1.4 is intended for use on Solaris 2.6, Solaris 7, and Solaris 8 operating environments.
-
Connecting Oracle 7.3.4 with JDBC drivers 8.1.6
I am on a Solaris7 with Oracle 7.3.4 and drivers 8.1.6.
My code compiles and when it runs it gives me this error below:
ld.so.1: /usr/java1.1/bin/../bin/sparc/native_threads/java: fatal: libclntsh.so.
8.0: open failed: No such file or directory (/export/home/oracle7/app/oracle/pro
duct/7.3.4/lib/libocijdbc8.so)
java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Error.<init>(Compiled Code)
at java.lang.LinkageError.<init>(Compiled Code)
at java.lang.UnsatisfiedLinkError.<init>(Compiled Code)
at java.lang.Runtime.loadLibrary(Compiled Code)
at java.lang.System.loadLibrary(Compiled Code)
at oracle.jdbc.oci8.OCIDBAccess.logon(Compiled Code)
at oracle.jdbc.driver.OracleConnection.<init>(Compiled Code)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(Compiled Code)
at jversion.main(Compiled Code)
I have all my paths in my LD_LIBRARY_PATH and the file it looks for is in the specified directory, and the permissions have been set correctly. I HAVE NO IDEA WHAT THE PROBLEM IS! Thank you in advance and ANY help would be appreciated,
isaac mosqueraYou shouldn't have to do anything "special" other than provide connectivity between the two databases.
Have you tried creating the database link yet? If so, did you receive errors? If not, then try it out and find out for yourself. -
Relocation Error In Solaris - Symbol 0FI__rtbi_fv not found
Hi!,
I get the following error, when i try to load a library using JNI, (jdk 1.3.0_02) in Solaris 2.6 :
It cribs about symbol __0FI__rtbi_fv not found.
I used nm on the .so and got the following output -
[123762] | 0| 0|NOTY |GLOB |0 |UNDEF |__0FI__rtbi_fv
Kindly help me in overcoming this problem. Its bit urgent.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /disk1/anuj/Sinu/usrtool/obj/libusrtool.so:
ld.so.1: /disk1/sriram/java1.3/bin/../bin/sparc/native_threads/java:
fatal: relocation error: file /disk1/anuj/Sinu/usrtool/obj/libusrtool.so:
symbol __0FI__rtbi_fv: referenced symbol not found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.Runtime.loadLibrary(Runtime.java:737)
regards
SriramIt is not in the java documentation because it is not a java problem.
When you write JNI code (or any other code for that matter) you probably should look at the documentation for the compilers and other tools that you are using for recommendations for how to use these third party tools.
What would have been surprizing to me, is if your C++ compiler manual did not recommend linking with the standard C++ library when you use code contained in the library. Which was the problem here. -
Using JDriver for Oracle 8i from Weblogic server 6.1
Hi
We have solaris machine running Weblogic server 6.1 SP1 and another solaris running Oracle 8i. I have installed client libraries in machine running WLS 6.1. I have set the LD_SERVER_PATH in setEnv.sh file of weblogic. when i create coinnection pool from WLS CONSOLE and i restart it it is throwing an error
Jan 3, 2002 4:48:21 PM GMT-05:00> <Error> <JDBC> <Cannot startup
connection pool "OraclePool" weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: System.loadLibrary(weblogicoci37) threw
java.lang.UnsatisfiedLinkError:
/oracle8i/CAPS/bea/wlserver6.1/lib/solaris/oci816_8/libweblogicoci37.so:
ld.so.1:
/oracle8i/CAPS/bea/jdk131/jre/bin/../bin/sparc/native_threads/java:
fatal: /oracle8i/product/8.1.6/lib64/libclntsh.so.8.0: wrong ELF class:
ELFCLASS64
at weblogic.jdbc.oci.Driver.loadLibraryIfNeeded(Driver.java:226)
at weblogic.jdbc.oci.Driver.connect(Driver.java:76)
at
weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connec
tionEnvFactory.java:192)
at
weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connec
tionEnvFactory.java:134)
at
weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocat
or.java:698)
at
weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java
:282)
at
weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java
:629)
at
weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deploym
entTarget.java:329)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deploy
mentTarget.java:279)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploymen
ts(DeploymentTarget.java:233)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Dep
loymentTarget.java:193)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBean
Impl.java:608)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.ja
va:592)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configuration
MBeanImpl.java:352)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
at $Proxy33.updateDeployments(Unknown Source)
at
weblogic.management.configuration.ServerMBean_CachingStub.updateDeployme
nts(ServerMBean_CachingStub.java:2734)
at
weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(
ApplicationManager.java:362)
at
weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationMa
nager.java:154)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBean
Impl.java:608)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.ja
va:592)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configuration
MBeanImpl.java:352)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
at $Proxy46.start(Unknown Source)
at
weblogic.management.configuration.ApplicationManagerMBean_CachingStub.st
art(ApplicationManagerMBean_CachingStub.java:480)
at
weblogic.management.Admin.startApplicationManager(Admin.java:1151)
at weblogic.management.Admin.finish(Admin.java:570)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:506)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
at weblogic.Server.main(Server.java:35)
at
weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connec
tionEnvFactory.java:208)
at
weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connec
tionEnvFactory.java:134)
at
weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocat
or.java:698)
at
weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java
:282)
at
weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java
:629)
at
weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Deploym
entTarget.java:329)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deploy
mentTarget.java:279)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploymen
ts(DeploymentTarget.java:233)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Dep
loymentTarget.java:193)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBean
Impl.java:608)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.ja
va:592)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configuration
MBeanImpl.java:352)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
at $Proxy33.updateDeployments(Unknown Source)
at
weblogic.management.configuration.ServerMBean_CachingStub.updateDeployme
nts(ServerMBean_CachingStub.java:2734)
at
weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(
ApplicationManager.java:362)
at
weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationMa
nager.java:154)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBean
Impl.java:608)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.ja
va:592)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configuration
MBeanImpl.java:352)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
at $Proxy46.start(Unknown Source)
at
weblogic.management.configuration.ApplicationManagerMBean_CachingStub.st
art(ApplicationManagerMBean_CachingStub.java:480)
at
weblogic.management.Admin.startApplicationManager(Admin.java:1151)
at weblogic.management.Admin.finish(Admin.java:570)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:506)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
at weblogic.Server.main(Server.java:35)
I would appreciate if you can offer some help.
Thanks,
S GopikrishnaIT WORKS FINE FOR ME.
Script that starts the bwls...
CTP=t3://wls_ip:port
JAVA_HOME=/usr/j2se
WL_HOME=/weblogic61
ORACLE_HOME=/oracle/oracle_client
NLS_LANG=american_america.WE8ISO8859P1
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
PATH=$PATH:$JAVA_HOME/bin:/usr/ccs/bin:/usr/ucb:$ORACLE_HOME/bin
LD_LIBRARY_PATH=$WL_HOME/lib/solaris/oci815_8:$ORACLE_HOME/lib
export LD_LIBRARY_PATH PATH ORA_NLS33 NLS_LANG ORACLE_HOME
SET CLASSPATH
START WLS
weblogic.properties
weblogic.jdbc.connectionPool.MyOraPool=\
url=jdbc:weblogic:oracle,\
driver=weblogic.jdbc.oci.Driver,\
loginDelaySecs=1,\
initialCapacity=3,\
maxCapacity=9,\
capacityIncrement=2,\
allowShrinking=true,\
shrinkPeriodMins=12,\
refreshMinutes=10,\
props=user=orausr;password=orafoousr;server=ORASERVER;weblogic.oci.min_bind_size=1000 -
Problem Starting Managed Servers
Hi,
I am trying to start Managed Server on Sun Solaris. My admin Server and managed Server
are on the same Machine.
My admin Server starts up with out any problem. WhenI try to bring up my Managed
Server its not reading the command line arguments which I supplied through the Console:
Servers -> serverName -> Remote Start->Arguments. For some reason these command arguments
are not read and so I am having errors like Unable to load libraries, etc.
Also when I saw the log file for managed server the class path and the arguments
are printed in a different way than I have set. I dont know if thats a problem or
not. I am copying part of that for your reference.
classpath=/opt/j2sdk1_3_1_01/jre/lib/rt.jar\:/opt/weblogic6.1\:/opt/weblogic6.1/lib/weblogic_sp.jar\:/opt/weblogic6.1/lib/weblogic.jar\
serverStartArgs=-Dweblogic.management.server\=sunserver\:7210 -Djava.security.policy\=\=/opt/weblogic6.1/lib/weblogic.policy
I have checked the config.xml file and what ever I have set in the console is being
saved properly in the xml file.
Can any one know why the back slash is printed above even though I havent typed that
in the console. Has any one have experince with setting the command line arguments
and class path through console for Managed servers.
I am stuck up at this point. Any help in this regard will be greatly appreciated.
Thanks,
KiranSeems a method signature does not match with the implementation in the
library either due to namemangling or incompatible versions of libraries.
You are loading your own custom native libraries for security.
Best would be use the default startManagedServer -- once the server has
started, copy and paste the entire value of java.library.path into the
startup arguments for Remote start.
For instance in my server log file:
####<Apr 10, 2002 6:47:10 PM PDT> <Info> <Management> <mountview> <myserver>
<main> <system> <> <141034> <Java system property: java.library.path =
/home/sabha/600sp2only/jdk130/jre/bin/../lib/sparc/hotspot:/home/sabha/600sp
2only/jdk130/jre/bin/../lib/sparc::/home/sabha/600sp2only/wlserver6.0/lib/so
laris:/home/sabha/600sp2only/wlserver6.0/lib/solaris/oci816_8:/usr/lib>
I would set that as the arguments :
-Djava.library.path=/home/sabha/600sp2only/jdk130/jre/lib/sparc/hotspot:/hom
e/sabha/600sp2only/jdk130/jre/bin/../lib/sparc::/home/sabha/600sp2only/wlser
ver6.0/lib/solaris:/home/sabha/600sp2only/wlserver6.0/lib/solaris/oci816_8:/
usr/lib
If this does not work, then java for some reason is not taking library paths
set as java.library.path and I dont know how to set LD_LIBRARY_PATH as part
of arguments to java. Another thing is before starting the NodeManager, set
the LD_LIBRARY_PATH to point the library directories and see if this helps.
regards,
Sabha
"Kiran" <[email protected]> wrote in message
news:[email protected]...
>
Sabha,
I am trying to start the managed server via remote start. After readingyour reply
I have cleaned up the argument list for remote start. Now I am gettingaltogether
a different error.(Surpsisingly I was able to start the managed serversusing srartManagedServer.sh.
I dont know why I am having trouble to do the same through the remotestart).
>
I am getting a unsatisfied link error. In your reply you have asked me toadd -Djava.library.path
to the argument liist which I did. Below you can find the exact error Ihave got:
>
>
The WebLogic Server did not start up properly.
Exception raised:
java.lang.UnsatisfiedLinkError:/export/home/spbbprf1/Servers/v25_0/bb/pub/libinterface.so:
ld.so.1: /usr/bin/../java/bin/../bin/sparc/native_threads/java: fatal:relocation
error: file /export/home/spbbprf1/Servers/v25_0/bb/pub/libinterface.so:symbol Opsys_oneWayCryptCmpApi:
referenced symbol not found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
atamdocs.APILink.accesscontrol.sum.EncryptApi.<clinit>(EncryptApi.java:20)
atamdocs.APILink.accesscontrol.sum.UserJoltBackend.<clinit>(UserJoltBackend.ja
va:52)
>
atamdocs.APILink.accesscontrol.sum.SumManagerImpl.<init>(SumManagerImpl.java:5
9)
>
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
atamdocs.uamsimpl.server.storage.multi.MultiManagerImpl.<init>(MultiManagerImp
l.java:208)
>
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
atamdocs.uamsimpl.server.storage.cache.CachingManagerImpl.<init>(CachingManage
rImpl.java:81)
>
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at amdocs.uams.UamsSystem.getUamsManager(UamsSystem.java:156)
atamdocs.uamsimpl.server.ejb.wl6.WLUamsDelegate.<init>(WLUamsDelegate.java:61)
atamdocs.uamsimpl.server.ejb.wl6.WLUamsDelegate.<init>(WLUamsDelegate.java:55)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at amdocs.uamsimpl.server.ejb.wl6.WLUamsRealm.<init>(WLUamsRealm.java:42)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at weblogic.security.acl.Realm.getRealm(Realm.java:84)
at weblogic.security.acl.Realm.getRealm(Realm.java:62)
atweblogic.security.SecurityService.initializeRealm(SecurityService.java:258)
at weblogic.security.SecurityService.initialize(SecurityService.java:115)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:402)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exception
>
>
Please let me know if you need more description.
Thanks,
Kiran
"Sabha" <[email protected]> wrote:
Either you are attempting to start a managed server through its
NodeManager
for which the remote startup arguments are not correct or something else
is
wrong. How are you starting the server? The remote start is only when you
want to start the server through NodeManager and not for normalinvocation
of the startManagedServer script.
Does the server really start? can you paste the startup arguments for the
remote start of the managed server as saved in the config.xml.
What is the log generated when the managed server is startedup.
-Sabha
"Kiran" <[email protected]> wrote in message
news:[email protected]...
Sabha,
The main problem is:
What ever I am trying to give in the command line arguments through theConsole:
Servers -> serverName -> Remote Start->Arguments.
is not being read during managed server start up.
I have all the libraries defined defined in java.lib.path. I dont knowwhy
its not
being read by managed server during start up. Am I missing something.
-Kiran
"Sabha" <[email protected]> wrote:
If its unable to load the performance packs, try setting
java.library.path
to the solaris lib directories. /usr/lib, /home/oracle/lib paths -- oryou
can just copy what is in the admin weblogic.log file for the
java.library.path (make sure the paths are correct and applicable forthe
maanged server box also) and pass that as an argument as
in -Djava.library.path=/usr/lib:/bea/wlserver6.1/lib/solaris...
-Sabha
"Kiran" <[email protected]> wrote in message
news:[email protected]...
Hi,
I am trying to start Managed Server on Sun Solaris. My admin Server
and
managed Server
are on the same Machine.
My admin Server starts up with out any problem. WhenI try to bring
up
my
Managed
Server its not reading the command line arguments which I supplied
through
the Console:
Servers -> serverName -> Remote Start->Arguments. For some reason
these
command arguments
are not read and so I am having errors like Unable to load
libraries,
etc.
Also when I saw the log file for managed server the class path and
the
arguments
are printed in a different way than I have set. I dont know if thats
a
problem or
not. I am copying part of that for your reference.
classpath=/opt/j2sdk1_3_1_01/jre/lib/rt.jar\:/opt/weblogic6.1\:/opt/weblog
i
c
6.1/lib/weblogic_sp.jar\:/opt/weblogic6.1/lib/weblogic.jar\
serverStartArgs=-Dweblogic.management.server\=sunserver\:7210 -Djava.secur
i
t
y.policy\=\=/opt/weblogic6.1/lib/weblogic.policy
I have checked the config.xml file and what ever I have set in the
console
is being
saved properly in the xml file.
Can any one know why the back slash is printed above even though I
havent
typed that
in the console. Has any one have experince with setting the command
line
arguments
and class path through console for Managed servers.
I am stuck up at this point. Any help in this regard will be greatlyappreciated.
Thanks,
Kiran -
Problem in sap business connector installation
Hi,
I have gone through installation guide ,but in it nothing was mentioned about c:\sapbc47\server\bin\runserver.bat file.Please help me to solve this problem.7.5 Various problems on a 64bit architecture
At the time of writing (August 2002) no 64bit version of the Java Virtual Machine is yet available
for the following 64bit operating systems: AIX, HP-UX, Solaris. Therefore on these platforms the
32bit version of the JVM has to be used. This leads to the problem, that the 64bit version of the
native library libjmon.a (AIX), libjmon.sl (HP-UX) or libjmon.so (Solaris) cannot be loaded into the
process started by the JVM. (When starting monitoring, you'll see one of the following error
messages:
AIX: java.lang.UnsatisfiedLinkError
<sapbc>/packages/SAPMonitoring/code/libs/libjmon.a load ENOEXEC
on shared library(s)
<sapbc>/packages/SAPMonitoring/code/libs/libjmon.a
HP-UX: java.lang.UnsatisfiedLinkError:
<sapbc>/packages/SAPMonitoring/code/libs/libjmon.sl: specified
file is not a shared library, or a format error was detected
Solaris: java.lang.UnsatisfiedLinkError:
<sapbc>/packages/SAPMonitoring/code/libs/libjmon.so: ld.so.1:
/usr/j2se/bin/../bin/sparc/native_threads/java: fatal:
<sapbc>/packages/SAPMonitoring/code/libs/libjmon.so: wrong ELF
class: ELFCLASS64
This error should disappear, once you install a 64bit Java Virtual Machine. But until 64bit JVMs will
be available, the following workaround can be used:
From the Business Connector download page also download the zip file with the 32bit libraries for
your operating platform. From that extract the two files sapccmsr and libjmon.a/sl/so and copy them
to the directory <sapbc>/packages/SAPMonitoring/code/libs. (The sapccmsr also
interacts with the libjmon library and therefore must also be a 32bit version. The saposcol only
interacts with the operating system and therefore still has to be used in its 64bit version.)
After a restart to unload the old 64bit versions from the system, the error should be fixed.
Best Regards,
Mike -
Starting WebLogic from Solaris
Hi,
When I try to start weblogic server, I get the following error:
Could not load library "/usr/jre1.2.2/lib/sparc/libzip.so", because
ld.so.1: /opt/java/jdk1.2.2/bin/sparc/native_threads/java: fatal:
relocation error: file /usr/jre1.2.2/lib/sparc/libzip.so: symbol
JNU_ThrowNullPointerException: referenced symbol not found
Could not create the Java virtual machine.
Any help to solve this would be appreciated.
Regards, Ram.Serisha,
Yes, I'm using startWebLogic.sh script. And yes, its using JDK1.2.2
installed on my machine. Seems like its not able to find the
symbol JNU_ThrowNullPointerException.
Thx, Ram.
Serisha wrote:
Hi,
Can You provide the complete details about your installation. If you are
using startWebLogic.sh file provided, then you need to modify the path to
point to the JDK... installed on your machine.
Goodluck.
sirisha
<[email protected]> wrote in message news:[email protected]..
Hi,
When I try to start weblogic server, I get the following error:
Could not load library "/usr/jre1.2.2/lib/sparc/libzip.so", because
ld.so.1: /opt/java/jdk1.2.2/bin/sparc/native_threads/java: fatal:
relocation error: file /usr/jre1.2.2/lib/sparc/libzip.so: symbol
JNU_ThrowNullPointerException: referenced symbol not found
Could not create the Java virtual machine.
Any help to solve this would be appreciated.
Regards, Ram. -
Hi,
When I try to start weblogic server, I get the following error:
Could not load library "/usr/jre1.2.2/lib/sparc/libzip.so", because
ld.so.1: /opt/java/jdk1.2.2/bin/sparc/native_threads/java: fatal:
relocation error: file /usr/jre1.2.2/lib/sparc/libzip.so: symbol
JNU_ThrowNullPointerException: referenced symbol not found
Could not create the Java virtual machine.
Any help to solve this would be appreciated.
Regards, Ram.It looks like your JDK is misconfigured. Do you have other JDKs installed
on the same machine? What do your environment variables look like?
What scripts are you using to start the server?
Thanks,
Michael
Michael Girdley
BEA Systems Inc
<[email protected]> wrote in message news:[email protected]..
Hi,
When I try to start weblogic server, I get the following error:
Could not load library "/usr/jre1.2.2/lib/sparc/libzip.so", because
ld.so.1: /opt/java/jdk1.2.2/bin/sparc/native_threads/java: fatal:
relocation error: file /usr/jre1.2.2/lib/sparc/libzip.so: symbol
JNU_ThrowNullPointerException: referenced symbol not found
Could not create the Java virtual machine.
Any help to solve this would be appreciated.
Regards, Ram.
Maybe you are looking for
-
Upload data from legacy system to SAP through ALE IDOC
Hello All, I have a requirement where i need to upload the data from legacy system to SAP. So i am using ALE IDOC. In my requirement i need to extend the Standard IDOC. I have extended the IDOC and even found the exit for the updation of the extended
-
Standby Redo Log Files and Directory Structure in Standby Site
Hi Guru's I just want to confirm, i know that if the Directory structure is different i need to mention these 2 parameter in pfile on primary site: DB_CONVERT_DATAFILE='standby','primary' LOG_CONVERT_DATAFILE='standby','primary' On secondary Site: DB
-
Problem with database schema objects in the entity object wizard
Hi All, When creating a new entity object, I am facing a problem with database schema objects in the entity object wizard, database schema objects (check boxes for tables,synonyms...) are disabled. Actually I am using a synonym but I am not able to s
-
Can see thumbs but can't edit or see in slideshow
On a brand new PowerBook (17", 1 gig RAM, 50 gigs free space), imported 20 pics from a camera (Nikon). So my total library is 20 pics. I can delete photos fine and can see the thumbs, but if I try to edit them I get the spinning black and white wheel
-
Copy file fails hp sent recovery discs Windows 7
I have been trying to solve this for a month now and am at the end of my tether. I am now on my third set of recovery discs from HP and all have the same problem. I insert disc 1 as instructed to on the support forum. It runs through Reformatting the