lfabbric
asked on
ASP/Java Class - register a Jar file.
Well here is my first question I have to ask. This is a tough one.
If you require more point let me know. (200 seems correct though)
I am working on a server, that has both Coldfusion and asp. So I needed to create a java class that could authenticate users against Novell. (This isn't really important just a reference)
I have created simple objects in the past and I could call the object within ASP. An example would be
<% Set SimpleObj = Server.CreateObject("Simpl e") %>
<% = SimpleObj.SimpleFn(10) %>
This all worked great. The object was called and the function within the java object returned the value correctly.
But now this is where my problem starts.
************************
I have a class that uses a Novell api. "LDAP.jar" and I am having trouble registering the jar file so the object could use it.
<% Set personObj = Server.CreateObject("aguAu thenticate ") %>
<% = personObj.getAuthenticated ("cn=lfabb ric", "password") %>
And the response is
Java Exception error '80004005'
java.lang.NoClassDefFoundE rror: com/novell/ldap/LDAPConnec tion
************************
The steps I have done.
I have set the class path correctly.
c:\myclasses;c:\winnt\java \trustlib\ ldap.jar
I have also registered all the elements within the application.
for example.
javareg /register /class:aguAuthenticate /progid:aguAuthenticate
javareg /register /class:com.novell.ldap.LDA PConnectio n /progid:LDAPConnection
Please let me know what you think.
If you require more point let me know. (200 seems correct though)
I am working on a server, that has both Coldfusion and asp. So I needed to create a java class that could authenticate users against Novell. (This isn't really important just a reference)
I have created simple objects in the past and I could call the object within ASP. An example would be
<% Set SimpleObj = Server.CreateObject("Simpl
<% = SimpleObj.SimpleFn(10) %>
This all worked great. The object was called and the function within the java object returned the value correctly.
But now this is where my problem starts.
************************
I have a class that uses a Novell api. "LDAP.jar" and I am having trouble registering the jar file so the object could use it.
<% Set personObj = Server.CreateObject("aguAu
<% = personObj.getAuthenticated
And the response is
Java Exception error '80004005'
java.lang.NoClassDefFoundE
************************
The steps I have done.
I have set the class path correctly.
c:\myclasses;c:\winnt\java
I have also registered all the elements within the application.
for example.
javareg /register /class:aguAuthenticate /progid:aguAuthenticate
javareg /register /class:com.novell.ldap.LDA
Please let me know what you think.
ASKER
1)All permissions are correct.
2)I am not sure why the Visual J++ Environment would help. Could you explain why it would be beneficial.
3)The JVM is the newest one.
2)I am not sure why the Visual J++ Environment would help. Could you explain why it would be beneficial.
3)The JVM is the newest one.
ASKER
Ok, I found out how to do this.
I extracted the JAR file
jar xf ldap.jar
and then it worked.
thanks for you help.
I extracted the JAR file
jar xf ldap.jar
and then it worked.
thanks for you help.
First and foremost - I know NOTHING about java development :) (just wanted to make that clear)
I remember along time ago using the asp2htm java component which needed to registered differently... Probably won't help...
Here's the original install.bat for asp2htm.class:
javareg /register /class:IISSample.CspBuilde r /progid:IISSample.CspBuild er
javareg /register /class:IISSample.Asp2Htm /progid:IISSample.Asp2Htm
mkdir %SystemRoot%\Java\TrustLib \IISSample
copy CspBuilder.class %SystemRoot%\Java\TrustLib \IISSample
copy Asp2Htm.class %SystemRoot%\Java\TrustLib \IISSample
I remember along time ago using the asp2htm java component which needed to registered differently... Probably won't help...
Here's the original install.bat for asp2htm.class:
javareg /register /class:IISSample.CspBuilde
javareg /register /class:IISSample.Asp2Htm /progid:IISSample.Asp2Htm
mkdir %SystemRoot%\Java\TrustLib
copy CspBuilder.class %SystemRoot%\Java\TrustLib
copy Asp2Htm.class %SystemRoot%\Java\TrustLib
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Here are the thigns you should do
1. Check permisions
The iusr_{yourservername} user should have enough permission to aguAuthenticate DLL and other DLLs you will use. Youc an change/update permissions from windows explorer
2. I would suggest you to compile the java class in Visual J++ enviroment
3. Your MS JVM is outdated.
This link would be helpful too
http://search.support.microsoft.com/search/default.aspx?Catalog=LCID%3D1033%26CDID%3DEN-US-KB%26PRODLISTSRC%3DON&Product=&KeywordType=ALL&Titles=false&numDays=&maxResults=25&withinResults=&Queryl=NoClassDefFoundError&Query=NoClassDefFoundError&QuerySource=gsfxSearch_Query