473,657 Members | 2,517 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Regarding install_jar ... Urgent

Hi we have a certain SQL script. From that script we have calls like:
DROP FUNCTION A@
call sqlj.remove_jar ( 'AXML')@
CALL SQLJ.REFRESH_CL ASSES()@
call sqlj.install_ja r( 'file:C:\AXML.j ar', 'AXML' )@
CALL SQLJ.REFRESH_CL ASSES()@
CREATE FUNCTION A(xml VARCHAR(3000),t ype VARCHAR(3000))
RETURNS VARCHAR(3000)
EXTERNAL NAME 'AXML:com.AConv ertXML.convertX ML'
LANGUAGE JAVA
PARAMETER STYLE DB2GENERAL
NOT DETERMINISTIC
FENCED
NO SQL
NO EXTERNAL ACTION
ALLOW PARALLEL
NO DBINFO@

However after running this script we notice that the old AXML jar
hasn't been removed and the newly changed AXML.jar is not being
installed so the changes are not taking effect.

The AXML.jar is kept in the C drive.
Do we need to keep the jar under SQLLIB\function s in the server?
What maybe the possible reasons for saj.install_jar not working?

May 2 '06 #1
5 1804
If jar file needs to be in server. But you can give a diffrent path
provided you give that path in the create procedure command (which
you have done). I am not sure if remove_jar would delete the file from
the server .It just removes from database catalogs .Its better you
manually remove the file or overwrite the file "AXML.jar" and then
issue create procedure. As DB2 searches classpath and path given using
install_jar.

Regards,
Kiran Nair

May 2 '06 #2

"annhere" <an************ *****@gmail.com > wrote in message
news:11******** **************@ j73g2000cwa.goo glegroups.com.. .
Hi we have a certain SQL script. From that script we have calls like:
DROP FUNCTION A@
call sqlj.remove_jar ( 'AXML')@
CALL SQLJ.REFRESH_CL ASSES()@
call sqlj.install_ja r( 'file:C:\AXML.j ar', 'AXML' )@
CALL SQLJ.REFRESH_CL ASSES()@
CREATE FUNCTION A(xml VARCHAR(3000),t ype VARCHAR(3000))
RETURNS VARCHAR(3000)
EXTERNAL NAME 'AXML:com.AConv ertXML.convertX ML'
LANGUAGE JAVA
PARAMETER STYLE DB2GENERAL
NOT DETERMINISTIC
FENCED
NO SQL
NO EXTERNAL ACTION
ALLOW PARALLEL
NO DBINFO@

However after running this script we notice that the old AXML jar
hasn't been removed and the newly changed AXML.jar is not being
installed so the changes are not taking effect.
If you are saying that AXML.jar is not being removed from C:\, then I'm not
surprised. It has been my experience that sqlj.install_ja r *COPIES* a jar
from wherever you have it, C:\ in your case, to the appropriate directory
within DB2, SQLLIB\FUNCTION \JAR\<schema-name>. Then, sqlj.remove_jar removes
*ONLY THE COPY*, not the original of that jar. I haven't found this
documented anywhere but I believe it to be true since the jars that I put
into DB2 via sqlj.install_ja r are still wherever they started out after the
sqlj.install_ja r has executed and sqlj._remove_ja r doesn't touch the
originals of the jars either.

On the other hand, if you are saying that sqlj.remove_jar is not removing
the DB2 copy of the jar, then there is a problem. Try going to your command
line and simply doing the sqlj.remove_jar from there, then inspect the file
system to make sure the jar is gone. If the sqlj.remove_jar fails, you
should get an error message that you can look up in the Information Center.
For example, you will get SQL20202N if you try to remove a jar that contains
stored procedures which haven't been dropped via DROP PROCEDURE or DROP
SPECIFIC PROCEDURE.

If you get no error message but the DB2 copy of the jar is still there
afterwards, then something very weird is going on that may have more to do
with your operating system than with DB2.
The AXML.jar is kept in the C drive.
Do we need to keep the jar under SQLLIB\function s in the server?
It is fine to leave the original copy of AXML.jar where it is. Just remember
that sqlj.install_ja r copies that jar and places it in the appropriate
directory of SQLLIB, which is SQLLIB\FUNCTION \JAR\<schema-name>.
What maybe the possible reasons for saj.install_jar not working?

When sqlj.install_ja r fails to work, you should always get an error message.
That message should help you track down why the command failed. You can
prove this to yourself by going to your command line and trying to do a
sqlj.install_ja r with an invalid URL; the command should fail with a
reasonably clear error message. An incorrect URL is the most common reason
that sqlj.install_ja r would fail, assuming you don't have a syntax error in
the command itself; there must be other reasons but I can't think of any
that are very likely to occur. For example, the command might fail if the
file system was completely full but that isn't likely to happen very often.

--
Rhino
May 2 '06 #3
hi anindita,
As Rhino said , you need to check out the error message. And even you
can check the SQLLIB\FUNCTION \JAR\<schema-name> if the copy is
happening .
Thanks for the details Rhino.

May 2 '06 #4

"Kiran Nair" <ki************ @gmail.com> wrote in message
news:11******** *************@e 56g2000cwe.goog legroups.com...
hi anindita,
As Rhino said , you need to check out the error message. And even you
can check the SQLLIB\FUNCTION \JAR\<schema-name> if the copy is
happening .
Thanks for the details Rhino.

My pleasure!

--
Rhino
May 2 '06 #5
Hi,
I have tried all that u said. It is indeed removing the copy of the jar
(with sqlj_remove) and installing a fresh copy with sqlj_install
however the changes made in the new jar files still are not being
reflected.
Rhino wrote:
"annhere" <an************ *****@gmail.com > wrote in message
news:11******** **************@ j73g2000cwa.goo glegroups.com.. .
Hi we have a certain SQL script. From that script we have calls like:
DROP FUNCTION A@
call sqlj.remove_jar ( 'AXML')@
CALL SQLJ.REFRESH_CL ASSES()@
call sqlj.install_ja r( 'file:C:\AXML.j ar', 'AXML' )@
CALL SQLJ.REFRESH_CL ASSES()@
CREATE FUNCTION A(xml VARCHAR(3000),t ype VARCHAR(3000))
RETURNS VARCHAR(3000)
EXTERNAL NAME 'AXML:com.AConv ertXML.convertX ML'
LANGUAGE JAVA
PARAMETER STYLE DB2GENERAL
NOT DETERMINISTIC
FENCED
NO SQL
NO EXTERNAL ACTION
ALLOW PARALLEL
NO DBINFO@

However after running this script we notice that the old AXML jar
hasn't been removed and the newly changed AXML.jar is not being
installed so the changes are not taking effect.

If you are saying that AXML.jar is not being removed from C:\, then I'm not
surprised. It has been my experience that sqlj.install_ja r *COPIES* a jar
from wherever you have it, C:\ in your case, to the appropriate directory
within DB2, SQLLIB\FUNCTION \JAR\<schema-name>. Then, sqlj.remove_jar removes
*ONLY THE COPY*, not the original of that jar. I haven't found this
documented anywhere but I believe it to be true since the jars that I put
into DB2 via sqlj.install_ja r are still wherever they started out after the
sqlj.install_ja r has executed and sqlj._remove_ja r doesn't touch the
originals of the jars either.

On the other hand, if you are saying that sqlj.remove_jar is not removing
the DB2 copy of the jar, then there is a problem. Try going to your command
line and simply doing the sqlj.remove_jar from there, then inspect the file
system to make sure the jar is gone. If the sqlj.remove_jar fails, you
should get an error message that you can look up in the Information Center.
For example, you will get SQL20202N if you try to remove a jar that contains
stored procedures which haven't been dropped via DROP PROCEDURE or DROP
SPECIFIC PROCEDURE.

If you get no error message but the DB2 copy of the jar is still there
afterwards, then something very weird is going on that may have more to do
with your operating system than with DB2.
The AXML.jar is kept in the C drive.
Do we need to keep the jar under SQLLIB\function s in the server?


It is fine to leave the original copy of AXML.jar where it is. Just remember
that sqlj.install_ja r copies that jar and places it in the appropriate
directory of SQLLIB, which is SQLLIB\FUNCTION \JAR\<schema-name>.
What maybe the possible reasons for saj.install_jar not working?

When sqlj.install_ja r fails to work, you should always get an error message.
That message should help you track down why the command failed. You can
prove this to yourself by going to your command line and trying to do a
sqlj.install_ja r with an invalid URL; the command should fail with a
reasonably clear error message. An incorrect URL is the most common reason
that sqlj.install_ja r would fail, assuming you don't have a syntax error in
the command itself; there must be other reasons but I can't think of any
that are very likely to occur. For example, the command might fail if the
file system was completely full but that isn't likely to happen very often.

--
Rhino


May 3 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5058
by: Paul Reddin | last post by:
Hi, (V8.1 FP2) Trying to run SQLJ.INSTALL_JAR, we get the following error SQL1131N DARI (Stored Procedure) process has been terminated abnormally. SQLSTATE=38503 Not sure why this has started failing now (we did upgrade to fp2 fairly
6
2436
by: gaetan | last post by:
Hi everybody, I have several stored procedure developped in Java that ran fine when I was in DB2 7.2 FP6 (on Windows) but since I have passed the FP11, I'm not able to call any of my stored procedure or call an install_JAR, replace_jar or whatever. I always get the following error : SQL1131N DARI (Stored Procedure) process has been terminated abnormally. SQLSTATE=38503
1
3286
by: Jack | last post by:
I am trying to get javamail running with DB2 and am running into a problem with the sqlj.install_jar. When I go to install the jar, I get a SQL1131 error message which is unhelpful. This is a fresh DB2 install and the first jar file I've tried to install on this system. This is one the command I am issuing: call sqlj.install_jar('file:/home/db2inst1/jaf-1.0.2/activation.jar','ACTIVATION') This is running on: Linux RHEL AS 3 update 1,
8
5240
by: Mike | last post by:
Hello, I have a few rather urgent questions that I hope someone can help with (I need to figure this out prior to a meeting tomorrow.) First, a bit of background: The company I work for is developing a web-based application, one part of which involves allowing the user the ability to page through transaction "history" information. The _summary_ history table will have the following fields: ServiceName, Date, User-Ref1, User-Ref2,...
8
2995
by: Xela | last post by:
Hi A have a very annoying problem. I have written java strored procedures for DB2 v8.1. Their deployement and usage is fine as long as the server is a Windows one. But under Solaris 8 and Linux RH, the call of sqlj.install_jar fails. It correctly create a directiory with the correct schema name, but the jar is not copied in it. The error is "Permission Denied" SQLSTATE 38501 and in the log, we can see that calling sqlejReadJar fails in...
4
2519
by: tomtailor | last post by:
Hello! I try to create a Java Procedure in DB2 running under SuSE 9.3. But the install_jar command fails with: Error 58004 Error starting the Java Interpeter. a db2set -all command results in: db2inst1@linux:/usr/share/java> db2set -all DB2COMM=tcpip DB2AUTOSTART=YES
4
1394
by: archana | last post by:
Hi all, I am having one confusion regarding invoking web method of web service asychronously through windows applicaiton. What i am doing is i am having one long runing web method whose one way attribute is set as i don't want any return value from that method. What i observered is when my window application start calling web method asynchronoysly
3
3329
by: tol7481 | last post by:
Hi, I'm trying to deploy a Java stored procedure on DB2 V8 on a Linux box, but I have some problems. I've added to the classpath the following JARs sqllib/java/db2java.zip sqllib/java/db2jcc.jar sqllib/java/db2jcc_license_cu.jar sqllib/java/sqlj.zip
5
2303
by: meenu_susi | last post by:
doubt regarding select box....urgent in the below code i am getting data from database..according to the condition.. i want the available data in database to get displayed in selectbox.. for ex... in the code i am getting color=rs("color")according to the condtion if(shirt=name) if i get red, blue as result the i want these two colors to be in selectbox.. if its three colors means i want those three colors to get displayed in...
0
8310
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7333
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6167
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4315
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1957
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1620
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.