CLASSPATH Issue in SunOS


 
Thread Tools Search this Thread
Operating Systems Solaris CLASSPATH Issue in SunOS
# 1  
Old 11-30-2018
CLASSPATH Issue in SunOS

Hi Friends
I need to add path to CLASSPATH in weblogic start
OS is SunOS dcuatapp04 5.11 11.3 sun4v sparc sun4v

I follow instructions given in below link. but even startup log shows the new path it does not load the jar file.
how can i fix this

Oracle WebLogic Server 12.1.3 Developer Guide: Enabling Java EE 7
Features


Code:
File changed > setDomainEnv.sh

--- Post updated at 06:51 AM ---

This is how i set
Code:
PRE_CLASSPATH=/u01/app/oracle/product/Middleware/Oracle_Home/wlserver/modules/com.oracle.weblogic.jpa21support_1.0.0.0_2-1.jar:/u01/app/oracle/product/Middleware/Oracle_Home/oracle_common/modules/javax.persistence_2.1.jar
export PRE_CLASSPATH

Error is below:
Code:
weblogic.application.ModuleException: java.lang.NoSuchMethodError:

# 2  
Old 11-30-2018
Hi,

Did you try using find to locate the .jar file?

My environment looks like;

Code:
weblogic@XXXXXX01 : /export/home/weblogic -> env
_=*15350*/usr/ccs/bin/env
HOME=/export/home/weblogic
HZ=
JAVA_HOME=/usr/jdk/instances/jdk1.8.0/jre
LANG=en_US.UTF-8
LC_ALL=
LC_COLLATE=
LC_CTYPE=
LC_MESSAGES=C
LC_MONETARY=
LC_NUMERIC=
LC_TIME=
LOGNAME=weblogic
MAIL=/usr/mail/weblogic
MW_HOME=/weblogic/Oracle/Middleware
ORACLE_HOME=/weblogic/Oracle/Middleware/Ora_Home_XXXXX
PATH=/usr/ccs/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/export/home/weblogic/bin:/usr/jdk/instances/jdk1.6.0/jre:/usr/bin/X11:/weblogic/Oracle/Middleware/Ora_XXXXX_home/bin:.
PWD=/export/home/weblogic
SHELL=/usr/bin/ksh
SHLVL=1
TERM=xterm
TNS_ADMIN=/weblogic/Oracle/Middleware/XXXXX_instance/config
TZ=localtime
WL_HOME=/weblogic/Oracle/Middleware/wlserver_10.3
A__z="*SHLVL
weblogic@XXXXXXt01 : /export/home/weblogic ->

Regards

Gull04
# 3  
Old 12-01-2018
jar is available and i have already given correct path in .sh file
# 4  
Old 12-02-2018
any help pls
# 5  
Old 12-03-2018
Hi,

Can you post the exact output, from the screen. Also, post your environment and the location of the .jar file.

Regards

Gull04
# 6  
Old 12-04-2018
seems classpath is getting initialized
can u help me to set the class path
location is /u01/app/oracle/product/Middleware/Oracle_Home/user_projects/domains/base_domain/bin
file is setDomainEnv.sh

--- Post updated at 11:55 AM ---

when i execute echo $CLASSPATH it s blank
# 7  
Old 12-05-2018
Hi,

You've answered the question in post #1, instead or as well as PRE_CLASSPATH - you'll need to set and export CLASSPATH.

Regards

Gull04
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Issue with SUNOS running sed scripts

Hi I probably dont have GNU extended sed in my SUNOS . and its creating lot of problems ex: a simple sed command like this is not working sed '/WORD/ a\ sample text line 1 \ sample text line 1 ' filename sed: command garbled: /WORD/ a I took precaution to have a new line after... (11 Replies)
Discussion started by: vash
11 Replies

2. Shell Programming and Scripting

How to override Classpath?

Hi, When I login to my HP-UX and fire the "set" command I see that the weblogic 9.2 classpath is already set. However, I wish to override the classpath to weblogic version 10.3 I have a script call setWLSEnv.sh that has the desired classpath. Thus, in my unix script i write .... (6 Replies)
Discussion started by: mohtashims
6 Replies

3. Programming

Classpath of JAVA

Hello, ABC question as I could not get a direct answer: How to locate the default IO class of JAVA? My question was triggered by the row in most java programimport java.io.* as I am very curious where the io class is located in my Mint14 (Ubuntu12.10). I am aware it is similar to use DBI in PERL,... (1 Reply)
Discussion started by: yifangt
1 Replies

4. Programming

set javac classpath

I have several jar files in a specific folder, but I can't get javac to understand it. How do I set the classpath for javac. It is NOT the same classpath as the java command. And it's not enough with one jar file. I have several. (1 Reply)
Discussion started by: locoroco
1 Replies

5. Programming

regarding classpath java

Hi, I have a below command.... $JAVA_HOME/bin/java -cp "/usr/orabase/product/10.2.0/lib:/usr/java/javajar/common/sched.jar:/usr/orabase/product/10.2.0/jdbc/lib/ojdbc14_g.jar:/usr/orabase/product/10.2.0/jdbc/lib/classes12.jar" com.abrt.smart.Smart I want to know where the Smart.class is... (1 Reply)
Discussion started by: PRKS
1 Replies

6. Programming

Classpath

This question is realted to UNIX and Java. I sing in to a UNIX server and I want to change my CLASSPATH locally, so it won't affect any other users CLASSPATHS. Is the command 'export PATH=...' the way to do it? Thanks. (4 Replies)
Discussion started by: Rachel Ross
4 Replies

7. UNIX for Dummies Questions & Answers

Classpath

This question is realted to UNIX and Java. I sing in to a UNIX server and I want to change my CLASSPATH locally, so it won't affect any other users CLASSPATHS. Is the command 'export PATH=...' the way to do it? Thanks. Duplicate post (0 Replies)
Discussion started by: Rachel Ross
0 Replies

8. UNIX for Advanced & Expert Users

SunOS 5.8 performance issue

Hi all On my SUNOS 5.8 server I am facing a serious performance issue. After booting within 20-25 days the system performance degrates, even I can't executes commands such as df, top, etc the only options remains to reboot the system. There is no such memory consuming process runs and the... (1 Reply)
Discussion started by: zing_foru
1 Replies

9. Shell Programming and Scripting

Unix Korn Shell Array Issue (SunOS)

Hello, I'm currently messing around with arrays for the first time in scripting (Unix Korn Shell). All I'm trying to do right now before I make things complicated is read through and print out to screen whether the read file is or is not a directory. Here is my directory: ls -l total... (5 Replies)
Discussion started by: Janus
5 Replies

10. UNIX for Advanced & Expert Users

Migration of binary file from Sunos 5.8 to Sunos 5.9

I have compiled binary file using "cc" on SunOS 5.8 and the same binary file i have copied to SunOS 5.9 and it is giving me core dump error.I want to know whether migration of compiled code from lower version to higer version created this problem. how can i solve this problem.I am pasting the core... (1 Reply)
Discussion started by: Arvind Maurya
1 Replies
Login or Register to Ask a Question