Home » Developer & Programmer » Forms » signing jar files & OLE problem (merged)  () 1 Vote
signing jar files & OLE problem (merged) [message #167987] Tue, 18 April 2006 05:04 Go to next message
hidayatk
Messages: 25
Registered: November 2005
Junior Member
hi

can anybody tell me wether this jar file is signed or not

thankx n advance

-hidayat
Re: signing jar files [message #168102 is a reply to message #167987] Tue, 18 April 2006 18:33 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Can you remove the alias for webutil2 and then try it again?

David
Re: signing jar files [message #168127 is a reply to message #168102] Tue, 18 April 2006 23:13 Go to previous messageGo to next message
hidayatk
Messages: 25
Registered: November 2005
Junior Member
Sir,

i try my best to search any file with text containing 'webutil2' in oreder to find alias. i failed. again, 'tnsnames.ora' doesn't contain this alias.

plz help in removing alias 'webutil2'.

thank u 2 much

-hidayat
OLE problem [message #168142 is a reply to message #167987] Wed, 19 April 2006 00:51 Go to previous messageGo to next message
hidayatk
Messages: 25
Registered: November 2005
Junior Member
sir,

kindly look into 2 consecutive screen shots in the attachment.
my problem is

1-some bean area dont work due unavailability of desired javabean (image 1)
2-to solve the problem1, i assume to import desired java classes from 'program->import java classes' from Form' menue, but it also gives error.

to tell u, earlier i signed jacob.jar file, but due to mistake in oracle ducumentation, the path mentioned for jacob.jar is 'oracle_home/forms/webutil' intead of 'oracle_home/forms/java'. i signed in wrong directory, then again re-signed in java directory, but with error.

i m confused where should i go?

plz b my firend

Regards

-Hidayat
Re: signing jar files [message #168144 is a reply to message #168127] Wed, 19 April 2006 01:02 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
I googled 'removing alias jar file' and found
http://java.sun.com/docs/books/tutorial/security1.2/summary/tools.html
http://java.sun.com/docs/books/tutorial/deployment/jar/signing.html
http://azureus.aelitis.com/wiki/index.php/ConsoleUI
try the "To remove an alias use alias -d aliasname. Eg: alias -d speed" suggestion.

David
Re: OLE problem [message #168149 is a reply to message #168142] Wed, 19 April 2006 01:20 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Please don't start new threads that parallel your existing thread.

How about we clean up the alias and then worry about this second problem later, because once you clean up the alias the 'wrong directory' issue will go away.

David
Re: OLE problem [message #169656 is a reply to message #168149] Fri, 28 April 2006 00:24 Go to previous messageGo to next message
hidayatk
Messages: 25
Registered: November 2005
Junior Member
jars (frmwebutil+jacob) have been sgned with same digital signature successfully but the problem didnot solve.

for problem, please look into the attachment 'OLEfunction.jpg' in my previous post within this thread.

thank u

hidayat
Re: OLE problem [message #169941 is a reply to message #169656] Sun, 30 April 2006 21:43 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Did you clean up the alias? Do you still get the same error?

David
Re: OLE problem [message #170256 is a reply to message #169941] Tue, 02 May 2006 23:06 Go to previous messageGo to next message
hidayatk
Messages: 25
Registered: November 2005
Junior Member
yes, i cleaned alias by using java tools (keytools,jarsigner). i erased keystore file and placed new unsigned jars. again, i verified signed jars.

i want to ask, wether all jar files located in forms/java have to be signed or only these two (frmwebutil+jacob)?

My whole problem is the 'Olefunction.jpg' in this thread.

the error is "Exception occurred: java.lang.NoClassDefFoundError: com/jacob/com/ComException"

i looked onto the downloaded jacob. it contains many sourec codes including the desired class.i.e. ComException, located in com/jacob/com. but the problem is where sholud i place these codes along the folder/subfolder. As per Oralce concerns, it tells only two files (jacob).jar and .dll and nothing say about other jacob data.

Regards

-Hidayat
Re: OLE problem [message #170351 is a reply to message #170256] Wed, 03 May 2006 07:41 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Can anyone else help Hidayat with this problem? I don't have an environment in which I can do tests for this problem!

David
Re: OLE problem [message #171020 is a reply to message #170351] Sun, 07 May 2006 23:37 Go to previous messageGo to next message
hidayatk
Messages: 25
Registered: November 2005
Junior Member
hi

i'm looking for assistance. Is there any way to use 'webutil'?

-hidayat
Re: OLE problem [message #171046 is a reply to message #171020] Mon, 08 May 2006 01:50 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
This is silly! It should not be this hard! Which version of 'webutil' are you trying to use? Please, please print the installation document for webutil, review your settings, compare your settings to those in the documentation, and continue trying.

You have put your java directories into the java paths in the registry, right? And you put them at the 'right hand' end and DID NOT remove any of the other direcotires, right? And they DON'T have any spaces in their names, right? And NONE of the directories in your Oracle paths in the registry are empty, right?

David
Re: OLE problem [message #171310 is a reply to message #168142] Tue, 09 May 2006 06:48 Go to previous messageGo to next message
gacki
Messages: 33
Registered: May 2006
Location: Dueren, NRW, Germany
Member
Let's take it step by step:
You can ignore the error message shown in your OLEFunction.jpg file. The WEBUTIL_CANVAS is just a container for the webutil java stuff, there is normally no need to modify it.

Thus there is no need to import anything about OLEFunction.

Next step is to check settings in formsweb.cfg:
baseHTMLjinitiator=webutiljini.htm
webutilArchive=/forms90/webutil/webutil.jar,/forms90/webutil/jacob.jar

Copy webutiljini.htm to /ORACLE_HOME/forms90/server

Give it a try and let us know.

Gerald
Re: OLE problem [message #171499 is a reply to message #171310] Wed, 10 May 2006 04:42 Go to previous messageGo to next message
hidayatk
Messages: 25
Registered: November 2005
Junior Member
(thank u helping me)

My aim is to upload/download files among client machines, application and database servers.
& Problem here is, CLIENT_OLE2.CREATE_OBJ('Word.Application') doesn't work.

i took the following all steps (included those u asked)

1-Installed windows server 2003
2-Installed Developer Suite 10 (10.1.2.0.2)
3-Downloaded Jacob_18.zip. which contained jacob.dll (92 KB) and jacob.jar (17 KB)
4-Copied jacob.dll into <oracle_home>/forms/webutil, and jacob.jar into <oracle_home>/forms/java directories
5-Through command prompt, issued

E:/DS10G1P2/jdk/bin>keytool -genkey -dname "CN=Product Management, OU=Development Tools, O=Oracle, C=US" -alias webutil2 -keypass webutil2 -keystore C:/Temp/3keystore -storepass webutilpasswd -validity 360

E:/DS10G1P2/jdk/bin>jarsigner -keystore c:/temp/3keystore -storepass webutilpasswd -keypass webutil2 E:/DS10G1P2/forms/java/frmwebutil.jar webutil2

E:/DS10G1P2/jdk/bin>jarsigner -keystore c:/temp/3keystore -storepass webutilpasswd -keypass webutil2 E:/DS10G1P2/forms/java/jacob.jar webutil2

(Jacob.jar became 19 KB)

6-Verified both jars (by issuing: E:/DS10G1P2/jdk/bin>jarsigner -verify E:/DS10G1P2/forms/java/jacob.jar.. result was 'jar verified')
7-Developer Suite comes with Webutil. So, major parameters have been already configured.
8-formsweb.cfg had the following entries

[webutil]
WebUtilArchive=forms/java/frmwebutil.jar,/forms/java/jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
archive_jini=frmall_jinit.jar
archive=frmall.jar
lookAndFeel=oracle

9-Included path to default.env

E:\DS10G1P2\forms\java\jacob.jar
E:\DS10G1P2\forms\java\frmwebutil.jar

10- Compiled frmwebutil.pll in /forms directory
11-configured database schema, by creating package, and granting the schema, object privillages of 'SYS'


if something wrong with the above settings, please write to me
would it not be better to use Developer Suite 9?

waiting for reply

Regards

-Hidayat
Re: OLE problem [message #171514 is a reply to message #171499] Wed, 10 May 2006 05:20 Go to previous messageGo to next message
gacki
Messages: 33
Registered: May 2006
Location: Dueren, NRW, Germany
Member
That looks good at first sight. Now, how do you run your form? The URL must contain the "config=webutil" parameter.

Can you post or attach the content of the java console?

Gerald

Re: OLE problem [message #171665 is a reply to message #171514] Wed, 10 May 2006 23:23 Go to previous messageGo to next message
hidayatk
Messages: 25
Registered: November 2005
Junior Member

1-'default.env' contains WEBUTIL_CONFIG=E:\DS10G1P2\forms\server\webutil.cfg

2- i didn't understand the last question. how can i add contents of java console?

3-Earlier, i thought, jacob didn't work. but i downloaded a webutil demo. this demo failed at all. i think there's problem in configurations.

plz keep n touch


-Hidayat

[Updated on: Wed, 10 May 2006 23:31]

Report message to a moderator

Re: OLE problem [message #171702 is a reply to message #171665] Thu, 11 May 2006 02:41 Go to previous messageGo to next message
gacki
Messages: 33
Registered: May 2006
Location: Dueren, NRW, Germany
Member
1. What is the URL you use to run your forms module? Something like http://myserver/foms90/f90servlet?form=myform&config=webutil

2. When you run your module you should see a little java coffee cup icon in the task bar. Double-click this icon shows you the java console.

Gerald
Re: OLE problem [message #171744 is a reply to message #171702] Thu, 11 May 2006 05:51 Go to previous messageGo to next message
hidayatk
Messages: 25
Registered: November 2005
Junior Member
when i run from builder, it is like this

http://develop:8889/forms/frmservlet

Re: OLE problem [message #171749 is a reply to message #171744] Thu, 11 May 2006 06:03 Go to previous messageGo to next message
gacki
Messages: 33
Registered: May 2006
Location: Dueren, NRW, Germany
Member
ok. If you run your form from your browser you must use

http://develop:8889/forms/frmservlet?form=<myform>&config=webutil

Replace <myform> with the name of your frm file.


Gerald
Re: OLE problem [message #171873 is a reply to message #171749] Thu, 11 May 2006 23:17 Go to previous message
hidayatk
Messages: 25
Registered: November 2005
Junior Member
Oh

It did work, thanks alot.
first it downloaded the libraries, then run with no error.

best luck Gerald!

-Hidayat
Previous Topic: How do I look at a directory to see if a file exists
Next Topic: urgent help : how when insert new record navigation off
Goto Forum:
  


Current Time: Fri Sep 20 09:54:12 CDT 2024