JDeveloper & iFS
Do the JDeveloper team plan on an add in for iFS, I'm not sure in what capacity, as I have only just started looking at iFS.
Regards
Lee
Oracle is working on Addins which will make working with and creation of iFS elements easier.
Such Wizards/Addins/Samples are being worked on by the iFS team and should be available in the future.
With JDeveloper 3.2, the iFS development libraries are included with JDeveloper
(Tools/Default Project Properties.../Libraries / Add .../ iFS 1.1 )
Include this library for using the iFS libraries - you may want to check the iFS area of OTN for their latest samples, etc which you can plug into JDeveloper.
I hope this helps,
-John
null
Similar Messages
-
I'm using an old version of iFS v1.1.10.0 and 9iAS v1.0.2.2.2a. I'm trying to get a simple LibrarySession connection to work with no luck.
My program is:
// Copyright (c) 2001 MCIA
import oracle.ifs.beans.*;
import oracle.ifs.common.*;
import java.util.*;
* A Class class.
* <P>
* @author ISB
public class IfsConnection1 extends Object {
public static void main (String args []) throws Exception
//Connect to the repository.
LibraryService ifsService = new LibraryService();
System.out.println("LibraryService, ifsService established.\n Creating LibrarySession using: userID = system and password = manager.");
CleartextCredential me = new CleartextCredential("system","manager");
ConnectOptions connectOpts = new ConnectOptions();
connectOpts.setServiceName("ServerManager");
connectOpts.setServicePassword("servermanager"); // IFS schema password: servermanager
LibrarySession ifsSession = ifsService.connect(me,connectOpts);
My error msg/stack trace is:
"D:\Program Files\JDeveloper\java1.2\jre\bin\javaw.exe" -mx50m -classpath "D:\Program Files\JDeveloper\myclasses;D:\Program Files\JDeveloper\lib\jdev-rt.zip;D:\Program Files\JDeveloper\jdbc\lib\oracle8.1.7\classes12.zip;D:\Program Files\JDeveloper\lib\connectionmanager.zip;D:\Program Files\JDeveloper\lib\servlet.jar;D:\Program Files\JDeveloper\lib\xmlparserv2.jar;D:\Program Files\JDeveloper\ifs\lib\adk.jar;D:\Program Files\JDeveloper\ifs\lib\email.jar;D:\Program Files\JDeveloper\ifs\lib\release.jar;D:\Program Files\JDeveloper\ifs\lib\repos.jar;D:\Program Files\JDeveloper\ifs\lib\utils.jar;F:\ORACLE\iSuites\ifs1.1\lib;F:\ORACLE\iSuites\ifs1.1\settings;D:\Program Files\JDeveloper\java1.2\jre\lib\rt.jar;F:\ORACLE\iSuites\jdbc\lib\classes12.zip;F:\jpdk\lib\provider.jar;F:\ORACLE\iSuites\Bin;D:\Program Files\JDeveloper\java1.2\jre\bin;D:\Program Files\JDeveloper\java1.2\jre\lib;F:\ORACLE\iSuites\jdbc\lib" IfsConnection1
LibraryService, ifsService established.
Creating LibrarySession using: userID = system and password = manager.
oracle.ifs.common.IfsException: IFS-21008: Login failure
oracle.ifs.server.S_LibrarySessionInterface oracle.ifs.server.S_LibraryService.connect(oracle.ifs.common.Credential, boolean)
oracle.ifs.server.S_LibrarySessionInterface oracle.ifs.beans.LibraryService.connectLocal(oracle.ifs.common.Credential, oracle.ifs.common.ConnectOptions)
oracle.ifs.beans.LibrarySession oracle.ifs.beans.LibraryService.connect(oracle.ifs.common.Credential, oracle.ifs.common.ConnectOptions)
void IfsConnection1.main(java.lang.String[])
Exception in thread main
thank you for any help, Timthanks, here's my new stack trace:
"D:\Program Files\JDeveloper\java1.2\jre\bin\javaw.exe" -mx50m -classpath "D:\Program Files\JDeveloper\myclasses;D:\Program Files\JDeveloper\lib\jdev-rt.zip;D:\Program Files\JDeveloper\jdbc\lib\oracle8.1.7\classes12.zip;D:\Program Files\JDeveloper\lib\connectionmanager.zip;D:\Program Files\JDeveloper\lib\servlet.jar;D:\Program Files\JDeveloper\lib\xmlparserv2.jar;D:\Program Files\JDeveloper\ifs\lib\adk.jar;D:\Program Files\JDeveloper\ifs\lib\email.jar;D:\Program Files\JDeveloper\ifs\lib\release.jar;D:\Program Files\JDeveloper\ifs\lib\repos.jar;D:\Program Files\JDeveloper\ifs\lib\utils.jar;F:\ORACLE\iSuites\ifs1.1\lib;F:\ORACLE\iSuites\ifs1.1\settings;D:\Program Files\JDeveloper\java1.2\jre\lib\rt.jar;F:\ORACLE\iSuites\jdbc\lib\classes12.zip;F:\jpdk\lib\provider.jar;F:\ORACLE\iSuites\Bin;D:\Program Files\JDeveloper\java1.2\jre\bin;D:\Program Files\JDeveloper\java1.2\jre\lib;F:\ORACLE\iSuites\jdbc\lib" IfsConnection1
LibraryService, ifsService established.
user = system password = manager
oracle.ifs.common.IfsException: IFS-21008: Login failure
oracle.ifs.common.IfsException: IFS-20002: Invalid schema version 1.1.0.1.0 (must be between 1.1.0.0.0 and 1.1.0.0.0)
oracle.ifs.server.S_LibrarySessionInterface oracle.ifs.server.S_LibraryService.connect(oracle.ifs.common.Credential, boolean)
oracle.ifs.server.S_LibrarySessionInterface oracle.ifs.beans.LibraryService.connectLocal(oracle.ifs.common.Credential, oracle.ifs.common.ConnectOptions)
oracle.ifs.beans.LibrarySession oracle.ifs.beans.LibraryService.connect(oracle.ifs.common.Credential, oracle.ifs.common.ConnectOptions)
void IfsConnection1.main(java.lang.String[])
Exception in thread main -
Why NTFS ignores changes in server side classes
Hi,
Following the developers guide I 'have some change to archive PublicObjects before freeing.
All what I did, was to implement a extendedPreeFree method for a SubClass of S_TieFolder.
When such a Folder is deleted, a copy is created and this copy will foldered in an other place.
It works at expected for WEBDaV , WebUI , CUP, but the NTFS server seems to ignore it completely.
Why the things go a other way vi a NTFS server and possibly (not tested yet) via SMB Server.
Thanks in advance
Regards
GuntherChris,
Are you are talking about the Chapter 17 examples for Replacing the Server (S_TieFolderRelationship) and Bean (TiePublicObject) Tie Classes. If so, that is where I started out, but it never seemed to have any effect at all within the IFS NTFS Share. Therefore, I switched the implementation to S_TieDocument, overriding the extendedPreUpdate and extendedPreInsert functions. This is also, where I made a few discoveries.
One is that if I placed my jar file before the repos.jar (as described in Chapter 17 Deploying Custom Tie Classes in the Jdeveloper IFS "library" class path along with my source directory. I was able to get system print messages, and debug inside my code in S_TieDocument.
Two is that when you update the ACL of a Document, it automatically calls the update function to save that change. Therefore, I had to add a flag to disable my code in the extendedPreUpdate function to prevent a infinite loop.
Even though my code works perfectly well when executed via the Jdeveloper IFS, the NTFS share still doesnât act as if it is ever finding the code.
Then I tried overriding the bean side (TieDocument) update function. Once again, the code worked perfectly well in Jdeveloper, but when we deployed it to the IFS server, it didnât do anything. That is the frustrating part of this, is that I know my code works, but NTFS doesnât give my any indication or output that my code is even being ran.
I followed the deployment steps described in chapter 17. We even tried variants.
We have tried variants on deployment, using a jar file; this was what got Jdevedoler wraith. We also attempted using the class path to oracle directory instead of the class directory. We also tried placing the classpath as the very first entry in the classpath list. Placing our path to just the oracle directory thinking that the class loader might be attempting to build âoracle\ifs\beansâ off the directory in the class path instead of using the class object in the class path; modifying the ifsclasspath.cl (This is apparently that configures the default classpath for ifs classpath Nothing worked.
The steps I used from Chapter 17 deploying Tie Classes to ifs. First, you compile the code. Secondly, you then your class file into following directory
(âifs_home\custom_classes\TieClassesoracle\ifs\beansâ)
Modify the evironment classpath, and finally shutdown and restart IFS to refresh the classpath. From what I have read, this should redirect ifs to use your new class instead of the original Tie Class.
Mark Daly -
Unable to logon to iFS from JDeveloper
I just upgraded my oracle Db from 8.1.6 to 8.1.7 and upgraded iFS from 1.0.8.3 to 1.1.9.
Now I am getting the following error while using an already running iFS program from JDeveloper3.2. I am attaching here the details of the program run in Jdeveloper. Any help is greatly appreciated. Thanks.
"D:\JDeveloper3.2\java\bin\javaw.exe" -mx50m -classpath "D:\JDeveloper3.2\myclasses;D:\JDeveloper3.2\lib\jdev-rt.zip;D:\JDeveloper3.2\lib\connectionmanager.zip;D:\JDeveloper3.2\jdbc\lib\oracle8.1.7\classes111.zip;D:\oracle817\ifs1.1\set tings;D:\oracle817\ifs1.1\lib;D:\oracle817\ifs1.1\lib\xmlparserv2.jar;D:\oracle817\ifs1.1\lib\release.jar;D:\oracle817\ifs1.1\lib\repos.jar;D:\oracle817\ifs1.1\lib\servlet.jar;D:\o racle817\ifs1.1\lib\vbjorb.jar;D:\oracle817\ifs1.1\lib\adk.jar;D:\oracle817\ifs1.1\lib\email.jar;D:\oracle817\ifs1.1\lib\tools.jar;D:\oracle817\ifs1.1\lib\utils.jar;D:\oracle817\if s1.1\jws\lib\servlet.jar;D:\JDeveloper3.2\lib\ojsp.jar;D:\JDeveloper3.2\lib\ojc.jar;D:\JDeveloper3.2\lib\servlet.jar;D:\JDeveloper3.2\java\lib\classes.zip" ifs.sampleapps.helloworld.tests
Establishing Session
Generic Error....
oracle.ifs.common.IfsException: IFS-10110: Unable to construct directory service
oracle.ifs.common.IfsException: IFS-10140: Unable to instantiate credential manager Ifs
oracle.ifs.common.IfsException: IFS-10150: Unable to construct credential manager (oracle.ifs.server.IfsCredentialManager)
oracle.ifs.common.IfsException: IFS-10176: Unable to get credential manager version
java.sql.SQLException: ORA-06550: line 1, column 13:
PLS-00103: Encountered the symbol "." when expecting one of the following:
( - + mod not null <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current exists max min prior sql stddev sum variance
execute forall time timestamp interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string>
The symbol "<an identifier>" was substituted for "." to continue.
PLS-00103: Encountered the symbol "." when expecting one of the following:
( - + mod not null <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current exists max min prior sql stddev sum variance
execute forall time timestamp interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string>
The symbol "<an identifier>" was substituted for "." to continue.
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java)
at oracle.jdbc.oci8.OCIDBAccess.executeFetch(OCIDBAccess.java)
at oracle.jdbc.oci8.OCIDBAccess.parseExecuteFetch(OCIDBAccess.java)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java)
at oracle.ifs.server.IfsCredentialManager.getVersionString(IfsCredentialManager.java:692)
at oracle.ifs.server.IfsCredentialManager.verifyVersion(IfsCredentialManager.java:1045)
at oracle.ifs.server.IfsCredentialManager.<init>(IfsCredentialManager.java:195)
at oracle.ifs.server.DirectoryService.<init>(DirectoryService.java:186)
at oracle.ifs.server.S_LibraryService.<init>(S_LibraryService.java:993)
at oracle.ifs.server.S_LibraryService.startService(S_LibraryService.java:1129)
at oracle.ifs.beans.LibraryService.connectLocal(LibraryService.java:408)
at oracle.ifs.beans.LibraryService.connect(LibraryService.java:280)
at ifs.sampleapps.helloworld.tests.<init>(tests.java:83)
at ifs.sampleapps.helloworld.tests.main(tests.java:708)
nullThanks for the tip, I found the following files on the server that were not on the PC:
smb.sys
smclib.sys
smcyscom.dll
smef.dll
smi2mir.exe
smierrsm.dll
smierrsy.dll
smimsgif.dll
These files were copied across to the PC /windows/system32 folder.
However the problem still persists, I have re-started PC but this has also not resolved the problem.
Many thanks for your assistance
Naz -
The iFS has been properly installed and tested by DBAs and its operational. I have a requirement to develop an iFS agent. As a first step in my learning process, I am testing the examples provided by Oracle (LoggingAgent.java, otificationAgent.java). Although I have successfully compiled and tested their HellowIFSWorld, I am having trouble compiling the Examples of Agent code.
The Error on NT using Jdeveloper is:
cannot access class oracle.ifs.management.domain.IfsServer; file oracle\ifs\management\domain\IfsServer.class not found
I get a similar error on Solaris as well when I compiled the code.
I searched all of the jar files in SDK (ifs/lib/repos.jar, utils.jar, adk.jar, release.jar, email.jar, classes12.zip & the settings) for this class and could not locate it. Suggestions? Help?
ThanksAre you searching in the .jar files that come with JDeveloper on NT?
If so, they are probably out of date (from a previous release of iFS).
What you should do is copy the .jar files from your iFS installation
(the one that you mentioned is operational) and replace the .jar files
that came with JDeveloper. You'll probably notice that the 'repos.jar'
from the iFS installation is different (newer in fact) than the one
from your JDeveloper installation.
When developing (whether you're using JDeveloper or any other IDE),
you should always be using the .jar files that are in your iFS installation.
Also make sure that the ORACLE_HOME in your development environment
is the same version as in your iFS installation. (Make sure that your
JDBC drivers -- classes12.zip and native libraries -- are the same version
in both the development and installation environments.) -
We are currently converting from 8i to 9i. I was finally able
to get JDeveloper configured so that I could develop against iFS
on 8i.
I have done the exact same things configuring for 9i but I still
get failed to get ResourcePropertyBundle.
I have done the following:
1. I have edited the JDeveloper.ini file to include the path to
my 9i client bin directory.
2. I have created a new library which has links to the
ifs\settings directory, xmlparserv2.jar, email.jar, release.jar,
repos.jar, servlet.jar, utils.jar, vbjorb.jar, adk.jar, my 9i
jlib directory, bin directory and classes111.zip.
3. I have edited the Java VM Parameters to: -mx50m;-
Djava.library.path=D:\Oracle9i\bin
4. I am using JDK 1.1.8_JDeveloper
5. I have edited my IfsDefault.properties file to include my
service name for the Database URL
6. The service name in #5 above is the same as the one in my
tnsnames.ora file
7. I also have my tnsnames.ora file set up
Doing all of this worked fine with Oracle 8i client and hitting
iFS 1.1 however I get a "failed to get PropertiesResourceBundle"
on 9i.
Can anyone tell me what I am missing?
Thanks.You should definitely double-check your development environment
settings. Here's a link to the summarized settings for our
version 9.0.1:
http://web06-
02.us.oracle.com/docs/products/ifs/doc_library/901/Developer%
20Reference/Output/getstart.htm#1030390 -
Class IfsMessage not available in iFS 1.1.9
Hi,
I am using iFS 1.1.9 under NT.
The javadoc api documentation describes a class (oracle.ifs.adk.mail.IfsMessage) not present in the jars deployed with 1.1.9.
I understood that this class will be deprecated in the version 1.2 for NT.
Is there any patch which fixes this bug, available for my current version ? Where can I locate it ?
Under ftp://oracle-ftp.oracle.com/server/patchsets/internet/NT/ifs I could find only a patch for iFS 1.1.6.
Thank youThe Class Designer is no longer part of JDeveloper. Please check out the Deprecated and Desupported doc here:
http://www.oracle.com/technology/products/jdev/htdocs/10.1.3.0.3/desupport1013g.html
Let me know if you have use cases for the Class Designer that are not covered by new features as described in the above document.
-- Brian -
CM Events not getting to a JDeveloper Application
Hi,
I'm using the IFS/CM sdk on our site so that we may be notified of changes to files given certain conditions.
I want to use waitServer() to wait on given conditions. We set up a demo on a Solaris box which works fine. The Solaris box is also where the test repository is held. The demo works fine. It runs from command prompt, initialises correctly and notifies us of changes. Perfect, you might imagine.
However when I moved it onto JDeveloper, we use exactly the same source, same properties, same class path etc, it initialises correctly, get to waitServer(), and just waits. It never receives a message. The event has definitely been generated, as the solaris app receives the message.
Obvious stuff we've done:
- both boxes ping each other.
- from the repository console we can see the client session's, on the correct PC.
- we can make other queries against the site, is this file in this folder etc.
- turned off the solaris demo to make sure it's not (somehow) swallowing the event.
Our environment is as follows:
- JDeveloper 9.0.3.1, OJVM build 1.3.1_02-b02 - which doesn't
- Solaris - Sun JVM build 1.3.1-b24 - which works
- Oracle Enterprise Manager 9.2.0.1.0
We want to use JDeveloper for this project as we use it everywhere else. I'm at my wits end. A little help would be greatly appreciated.Can you run the demo on the XP box outside of JDeveloper and does it work? I'm trying to find out if the issue is (a) the XP box or (b) JDeveloper.
If it's the XP box, you should try getting some help in the Oracle Files forum Content Services
Or if it's JDeveloper, try setting the Java VM from ojvm to hotspot in the Runner page under Project Properties.
Rob
Team JDev -
Error While Executing index.jspx Of Content.ear Project from Jdeveloper
Hi All,
We are trying to execute index.jspx (of the project we extracted from content.ear file present in $CONTENT_HOME/content/lib. ContentDB Version 10.1.0.4) from JDeveloper(10.1.3.1.0 build 3984), however getting the following error.
Sep 17, 2007 7:54:08 PM oracle.ifs.fdk.http.HttpNodeManager
INFO: Creating HTTP Node ...
07/09/17 19:54:08 Cannot create HTTP Node:
oracle.ifs.common.IfsException: IFS-45061: Unable to create node
oracle.ifs.common.IfsException: IFS-20016: Required parameters are null (either "Schema Name" or "Domain Name" should be non-null)
at oracle.ifs.management.domain.HttpServletNodeUtilities.createNode(HttpServletNodeUtilities.java:243)
at oracle.ifs.management.domain.HttpServletNodeUtilities.createNode(HttpServletNodeUtilities.java:156)
at oracle.ifs.fdk.http.HttpServer.createNode(HttpServer.java:162)
at oracle.ifs.fdk.http.HttpNodeManager.contextInitialized(HttpNodeManager.java:37)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1130)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:738)
at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
at com.evermind.server.Application.getHttpApplication(Application.java:545)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1990)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1973)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHttpApplication(HttpSite.java:1925)
at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:424)
at com.evermind.server.http.HttpRequestHandler.resolveApplication(HttpRequestHandler.java:393)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:434)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:595)
Can anyone please help us out in fixing this issue by giving some pointers.
Please let us know if we are required to make some settings in jdeveloper to run this project for connecting to content db from jdeveloper.
Any Help is really appreciated.
Thanks in Advance.
Vandana.I am facing the same. Have you found a solution?
Johnson -
IFS-20010 : Unable to get service configuration properties
Hi all,
I am trying to connect to IFS using JDeveloper. I have coded a JSP which makes a call to my java class to connect.
I know that I can connect from my machine because I can run a simple application from the command line to create
a file in IFS.
Anyway, I set up my classpath under Project Settings as follows (same as my classpath on command line):
C:\oracle\JDeveloper\9ifs\settings;.;C:\DOCUMENT\jars\adk.jar;C:\DOCUMENT\jars\email.jar;
C:\DOCUMENT\jars\repos.jar;C:\DOCUMENT\jars\utils.jar;C:\DOCUMENT\jars\xmlparserv2.jar;
C:\oracle\ora90\jdbc\lib\classes12.zip
When I run the jsp under JDeveloper I get the following output on my developer console.
Should the classpath value be what I have entered for my classpath under Project Settings?
Any help is appreciated,
Paul
C:\jdev9i_902\jdk\bin\javaw.exe -ojvm -classpath C:\jdev9i_902\j2ee\home\oc4j.jar com.evermind.server.OC4JServer -config C:\jdev9i_902\jdev\system\oc4j-config\server.xml
[Starting OC4J using the following ports: HTTP=9011, RMI=23916, JMS=9252.]
[waiting for the server to complete its initialization...]
Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized
Target URL -- http://127.0.0.1:9011/maps-ifs-context-root/docScreens/test.jsp
oracle.ifs.common.IfsException: IFS-20102: Unable to start service (IfsDefault)
oracle.ifs.common.IfsException: IFS-20010: Unable to get service configuration properties (IfsDefault)
void oracle.ifs.common.IfsException.<init>(int, java.lang.Object[])
oracle.ifs.common.AttributeValue[] oracle.ifs.beans.LibraryService.getServiceConfigurationProperties(java.lang.String)
oracle.ifs.beans.LibraryService oracle.ifs.beans.LibraryService.startService(java.lang.String, java.lang.String)
oracle.ifs.beans.LibrarySession com.fujitsu.docHandler.dao.BusinessDocument_IFS_DAO.connect(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
void com.fujitsu.docHandler.dao.BusinessDocument_IFS_DAO.<init>(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
void docscreens.testForm._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()Did anyone find a solution to the problem described in this thread?
I have made a simple stateless session bean in JDeveloper from which I try to connect to iFS. If I use the
embedded oc4j container in JDeveloper, I get the following exception:
Standard output of the EJB:
oracle.ifs.common.IfsException: IFS-20010: Unable to get service configuration properties (IfsDefault)Print stacktrace:
oracle.ifs.common.IfsException: IFS-20102: Unable to start service (IfsDefault)
oracle.ifs.common.IfsException: IFS-20010: Unable to get service configuration properties (IfsDefault)
void oracle.ifs.common.IfsException.<init>(int, java.lang.Object[])
oracle.ifs.common.AttributeValue[] oracle.ifs.beans.LibraryService.getServiceConfigurationProperties(java.lang.String)
oracle.ifs.beans.LibraryService oracle.ifs.beans.LibraryService.startService(java.lang.String, java.lang.String)
oracle.ifs.beans.LibrarySession xpackage1.impl.XSessionEJBBean.startSession(java.lang.String, java.lang.String)
oracle.ifs.beans.LibrarySession XSessionEJB_StatelessSessionBeanWrapper0.startSession(java.lang.String, java.lang.String)
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
The test client gets these messages:
oracle.ifs.common.IfsException: IFS-20102: Unable to start service (IfsDefault)
oracle.ifs.common.IfsException: IFS-20010: Unable to get service configuration properties (IfsDefault)
If I use oc4j in the application server, then I get the following exception:
Standard output of the EJB:
Localized message: IFS-20102: Message unavailableMessage: IFS-20102: Message una
vailableTo string :oracle.ifs.common.IfsException: IFS-20102: Message unavailabl
e
oracle.ifs.common.IfsException: IFS-20122: Message unavailable
oracle.ifs.common.IfsException: IFS-12000: Message unavailable
java.util.MissingResourceException: Can't find bundle for base name oracle.ifs.b
eans.resources.LibraryResources, locale no_NOPrint stacktrace:
oracle.ifs.common.IfsException: IFS-20102: Message unavailable
oracle.ifs.common.IfsException: IFS-20122: Message unavailable
oracle.ifs.common.IfsException: IFS-12000: Message unavailable
java.util.MissingResourceException: Can't find bundle for base name oracle.ifs.b
eans.resources.LibraryResources, locale no_NO
void java.util.ResourceBundle.throwMissingResourceException(java.lang.St
ring, java.util.Locale)
java.util.ResourceBundle java.util.ResourceBundle.getBundleImpl(java.lan
g.String, java.util.Locale, java.lang.ClassLoader)
java.util.ResourceBundle java.util.ResourceBundle.getBundle(java.lang.St
ring, java.util.Locale)
void oracle.ifs.common.Localizer.<init>(java.util.Locale, oracle.ifs.bea
ns.LibrarySession)
void oracle.ifs.common.Localizer.<init>(java.util.Locale)
void oracle.ifs.common.Localizer.<init>()
void oracle.ifs.server.S_LibraryService.<init>(java.lang.String, java.la
ng.String, oracle.ifs.common.AttributeValue[])
oracle.ifs.server.S_LibraryService oracle.ifs.server.S_LibraryService.st
artService(java.lang.String, java.lang.String, oracle.ifs.common.AttributeValue[
oracle.ifs.beans.LibraryService oracle.ifs.beans.LibraryService.startSer
vice(java.lang.String, java.lang.String, oracle.ifs.common.AttributeValue[])
oracle.ifs.beans.LibraryService oracle.ifs.beans.LibraryService.startSer
vice(java.lang.String, java.lang.String)
oracle.ifs.beans.LibrarySession xpackage1.impl.XSessionEJBBean.startSess
ion(java.lang.String, java.lang.String)
oracle.ifs.beans.LibrarySession XSessionEJB_StatelessSessionBeanWrapper0
.startSession(java.lang.String, java.lang.String)
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.
lang.Object[])
void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
The test client gets theese messages:
oracle.ifs.common.IfsException: IFS-20102: Unable to start service (IfsDefault)
oracle.ifs.common.IfsException: IFS-20122: Unable to construct service
oracle.ifs.common.IfsException: IFS-12000: Unable to construct localizer
java.util.MissingResourceException: Can't find bundle for base name oracle.ifs.beans.resources.LibraryResources, locale no_NO
java.util.MissingResourceException: Can't find bundle for base name oracle.ifs.beans.resources.LibraryResources, locale no_NO
The classpath of the actual project in JDeveloper is:
C:\oracle\ora92ias\9ifs\settings;C:\oracle\ora92ias\9ifs\lib\adk.jar;C:\oracle\ora92ias\9ifs\lib\email.jar;C:\oracle\ora92ias\9ifs\lib\repos.jar;C:\oracle\ora92ias\9ifs\lib\utils.jar;C:\oracle\ora92\jdbc\lib\classes12.jar;C:\oracle\ora92ias\lib\xmlparserv2.jar;C:\oracle\ora92ias\j2ee\home\oc4j.jar;C:\oracle\ora92ias\j2ee\home\ejb.jar;C:\oracle\ora92ias\j2ee\home\jaas.jar;C:\oracle\ora92ias\j2ee\home\jaxp.jar;C:\oracle\ora92ias\j2ee\home\jdbc.jar;C:\oracle\ora92ias\9ifs\lib\http.jar;C:\oracle\ora92ias\9ifs\lib\provider.jar;C:\oracle\ora92ias\9ifs\lib\webui.jar;C:\oracle\ora92ias\jlib\javax-ssl-1_2.jar;C:\oracle\ora92ias\jlib\jssl-1_2.jar
Other information:
I have oracle 9i, application server and iFS installed on one machine with the windows advanced server 2000 os.
Does anyone know what I can do in order to solve this problem?
Thanks,
Anne Sommerhein -
Hi !
I'm new in the IFS world and I attenped to run the Hello World Sample.
My java source is compliling well, but a have this run-time exception :
Exception in thread main
"D:\Program Files\Oracle\JDeveloper 3.1\java1.2\jre\bin\javaw.exe" -mx50m -classpath "D:\hdr-ifs;D:\Program Files\Oracle\JDeveloper 3.1\lib\jdev-rt.zip;D:\Program Files\Oracle\JDeveloper 3.1\jdbc\lib\oracle8.1.6\classes12.zip;D:\Program Files\Oracle\JDeveloper 3.1\lib\connectionmanager.zip;C:\orant8i\Ifs\repos.jar;C:\orant8i\Ifs\webui.jar;C:\orant8i\Ifs\clientlib.jar;C:\orant8i\Ifs\cmdlineutils.jar;C:\orant8i\Ifs\cup.jar;C:\orant8i\Ifs\e mail.jar;C:\orant8i\Ifs\ftp.jar;C:\orant8i\Ifs\http.jar;C:\orant8i\Ifs\ntfs.jar;C:\orant8i\Ifs\utils.jar;C:\orant8i\Ifs\wcp.jar;C:\orant8i\Ifs\adk.jar;C:\orant8i\Ifs;D:\Program Files\Oracle\JDeveloper 3.1\java1.2\jre\lib\rt.jar" sword.Application1
java.lang.NoSuchMethodError
oracle.ifs.beans.LibrarySession oracle.ifs.beans.LibraryService.connect(oracle.ifs.common.Credential, oracle.ifs.common.ConnectOptions)
void sword.Application1.main(java.lang.String[])
Exception in thread main
Here is my sample code :
// Copyright (c) 2000 IDL
package sword;
import oracle.ifs.beans.*;
import oracle.ifs.common.*;
import java.util.*;
public class Application1 {
public Application1() {
public static void main(String[] args) {
new Application1();
try {
//Connect to the repository.
LibraryService ifsService = new LibraryService();
CleartextCredential me = new CleartextCredential("system", "manager");
ConnectOptions connectOpts = new ConnectOptions();
connectOpts.setLocale(Locale.getDefault());
connectOpts.setServiceName("IfsTools");
connectOpts.setServicePassword("ifssys");
LibrarySession ifsSession = ifsService.connect(me,connectOpts);
//Create a new DocumentDefinition and a new Document.
DocumentDefinition newDocDef = new DocumentDefinition(ifsSession);
newDocDef.setAttribute("NAME", AttributeValue.newAttributeValue("Hello_World.txt"));
newDocDef.setContent("Hello World");
Document doc = (Document) ifsSession.createPublicObject(newDocDef);
//Obtain the users home folder and add the new Document to it.
DirectoryUser thisUser = ifsSession.getDirectoryUser();
PrimaryUserProfile userProfile = ifsSession.getPrimaryUserProfile(thisUser);
Folder homeFolder = userProfile.getHomeFolder();
homeFolder.addItem(doc);
//Disconnect from the repository.
ifsSession.disconnect();
catch (IfsException ex) {
ex.setVerboseMessage(true);
ex.printStackTrace();
catch(Exception ex) {
ex.printStackTrace();
nullThe entries in the CLASSPATH you posted above looks like they might be from iFS 1.0. (The directory they're being looked up from is C:\orant8i\Ifs) When did you install iFS into this directory? (iFS 1.1 gets installed into %ORACLE_HOME%\ifs1.1)
Also, the error you're seeing:
NoSuchMethodError: oracle.ifs.beans.LibrarySession oracle.ifs.beans.LibraryService.connect(oracle.ifs.common.Credential, oracle.ifs.common.ConnectOptions)
also makes me think you're using iFS 1.0 jars. (That method was added in iFS 1.1) -
JDeveloper/9iAS Deployment Help
I am developing a JSP/JavaBeans application. The JSPs call the JavaBeans which are dependent on Oracle libraries, but not using BC4J. I want to deploy to 9iAS.
I have tried deploying to JServ by copying stuff over and modifying classpaths, but the libraries I need (iFS) are not deployed to JServ; I believe they are deployed to OSE. That means I need to deploy to OSE.
I have been messing around with this for the past two days and have yet to get a working application running. I have read numerous technet postings as well as a tremendous amount of documentation on the topic. None of them cut to the point which is: What is the recommended way to deploy a JSP/JavaBeans application that doesn't use BC4K to 9iAS? This application includes JSPs, HTMLs, JSs, CSSs, and images.
I can successfully get my beans deployed to the 8i database. (Meaning I can see they are there in Enterprise Manager.) But my JSPs cannot see them, presumably because they are only visible to OSE and I have only been able to get my JSPs in JServ.
I have created a domain. In the aurora shell, it is /webdomains/watermark. Question 1: How do I access the files in this domain from a browser? Question 2: How can I get JDeveloper to deploy my other web files (JSP, HTML, JS, CSS, and images) so I can access this web app. (And if I can't with JDeveloper, what's the best way to accomplish this?)
Huge thanks to anyone who can help me with this?Hi,
I would recommend taking a look at the WAR deployment tool available from the OSE team. You can download it from OTN by going to the Technologies page, then click on JSP and Servlets under the Java Technologies section, then click on Download.
Currently, deploying to OSE from JDeveloper involves several separate steps that the WAR tool should combine for you. -
Java.lang.UnsatisfiedLinkError in JDeveloper standalone CMSDK application
When I try to run my standalone Content Management application on my development PC against a Content Management SDK deployed on another server (using jvm runtime parameters as in CM WebStarterApp II -DIFS.DOMAIN.Name=ifs://xtorc1:1521:test:CMSDK -DIFS.STANDALONE.Mode=true -DIFS.SCHEMA.PASSWORD=welcome), I got " IFS-20103: Unable to get sessions". When I debug the code, I notice the actual error as following:(I've tested it using JDeveloper versions 10.1.2 and 9.0.4)
(in JDeveloper 10.1.2):
java.lang.UnsatisfiedLinkError: int oracle.jdbc.driver.T2CConnection.t2cCreateState(byte[], int, byte[], int, byte[], int, short, int, short[], byte[], byte[])
(in JDeveloper 9.0.4):
java.lang.UnsatisfiedLinkError: int oracle.jdbc.oci8.OCIDBAccess.make_c_state(boolean)
I've checked the metalink and the forums, however nothing helped me solve the problem so far. It seems like the JDeveloper is confusing the oci driver (the dll's) somehow, however I checked my PATH in my environment, everything seems OK.
I was trying to run a standalone IFS (CM SDK) web application in development machine,
in JDeveloper's embedded OC4J server, against the CM SDK domain on another
server where the Application Server resides. The logon page appears and after
submitting the form the following piece of code returns the error:
String schemaPassword = System.getProperty("IFS.SCHEMA.PASSWORD");
String domainName = System.getProperty("IFS.DOMAIN.Name");
try
//the exception is caused by the following line
m_LibraryService = LibraryService.startService(serviceName, schemaPassword,
null, domainName);
catch (Throwable e)
// the exception is caught here
Any ideas??
ÃzgürI see that you're doing your conection using oci8; I had the same problem and my solution was changed to thin
For example: jdbc:oracle:thin:@IP_ADDRESS:PORT:SID
I hope it can help to you -
Hi.
I have followed all the steps I have been able to find for creating a connection from a NT workstation to IFS 1.1 on a Solaris Box.
Important error messages:
IfsException: IFS-10600: Unable to construct library connection
java.sql.SQL
Exception: ORA-12154: TNS:could not resolve service name
I have installed oracle NT client 8.1.7
I think the tnsnames.ora file may be in the wrong place (the client is installed in D:\oracle). Do I need to put it's location in the class path? Please help.
I am putting the whole stack trace below:
C:\Program Files\Oracle\JDeveloper 3.2\jdk1.3.0_01\jre\bin\java" -XXdebug -mx50m -classpath "C:\Program Files\Oracle\JDeveloper 3.2\myclasses;C:\Program Files\Oracle\JDeveloper 3.2\lib\jdev-rt.zip;C:\Program Files\Oracle\JDeveloper 3.2\jdbc\lib\oracle8.1.7\classes12.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\connectionmanager.zip;C:\Program Files\Oracle\JDeveloper 3.2\lib\webtogo.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\xmlparserv2.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\ojsp.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\servlet.jar;C:\Program Files\Oracle\JDeveloper 3.2\lib\jbcl2.0.zip;C:\Program Files\Oracle\JDeveloper 3.2\jfc\lib\swingall.jar;C:\Program Files\Oracle\JDeveloper 3.2\ifs\lib\adk.jar;C:\Program Files\Oracle\JDeveloper 3.2\ifs\lib\email.jar;C:\Program Files\Oracle\JDeveloper 3.2\ifs\lib\release.jar;C:\Program Files\Oracle\JDeveloper 3.2\ifs\lib\repos.jar;C:\Program Files\Oracle\JDeveloper 3.2\ifs\lib\utils.jar;C:\Program Files\Oracle\JDeveloper 3.2\ifs\settings;C:\Program Files\Oracle\JDeveloper 3.2\jdk1.3.0_01\lib\dt.jar;C:\Program Files\Oracle\JDeveloper 3.2\jdk1.3.0_01\jre\lib\rt.jar;C:\Program Files\Oracle\JDeveloper 3.2\jdk1.3.0_01\jre\lib\i18n.jar" package2.Dgw
System Output: oracle.ifs.common.IfsException: IFS-10620: Unable to construct connection pool
System Output: oracle.ifs.common.IfsException: IFS-10633: Unable to create library connection
System Output: oracle.ifs.common.IfsException: IFS-10600: Unable to construct library connection
System Output: java.sql.SQL
System Output: Exception: ORA-12154: TNS:could not resolve service name
System Output:
System Output:
System Output: oracle.ifs.server.S_LibraryService oracle.ifs.server.S_LibraryService.startService(java.lang.String, java.lang.String) (S_LibraryService.java:1129)
System Output: oracle.ifs.server.S_LibrarySessionInterface
System Output: oracle.ifs.beans.LibraryService.connectLocal(oracle.ifs.common.Credential, oracle.ifs.common.ConnectOptions) (LibraryService.java:408)
System Output: oracle.ifs.beans.LibrarySession oracle.ifs.beans.LibraryService.connect(oracle.ifs.common.Credential, oracle.ifs.commo
System Output: n.ConnectOptions) (LibraryService.java:280)
System Output: java.lang.String[] package2.ListFolder.getContents(java.lang.Long) (ListFolder.java:57)
System Output: void package2.Frame1.setPanelVisible(int) (Frame1.java:170)
System Output: void package2.Frame1$1.actionPerformed(java.awt.event.Act
System Output: ionEvent) (Frame1.java:544)
System Output: void javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent) (AbstractButton.java:1450)
System Output: void javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(java.awt.event.ActionEvent) (AbstractButton.java:150
System Output: 4)
System Output: void javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent) (DefaultButtonModel.java:378)
System Output: void javax.swing.DefaultButtonModel.setPressed(boolean) (DefaultButtonModel.java:250)
System Output: void javax.swing.plaf.basic.BasicButtonListene
System Output: r.mouseReleased(java.awt.event.MouseEvent) (BasicButtonListener.java:216)
System Output: void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent) (Component.java:3717)
System Output: void java.awt.Component.processEvent(java.awt.AWTEvent) (Component.java:3546)
System Output: void j
System Output: ava.awt.Container.processEvent(java.awt.AWTEvent) (Container.java:1164)
System Output: void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent) (Component.java:2595)
System Output: void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent) (Container.java:1213)
System Output: void java.a
System Output: wt.Component.dispatchEvent(java.awt.AWTEvent) (Component.java:2499)
System Output: void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent) (Container.java:2451)
System Output: boolean java.awt.LightweightDispatcher.processMouseEvent(j
System Output: ava.awt.event.MouseEvent) (Container.java:2216)
System Output: boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent) (Container.java:2125)
System Output: void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent) (Container.java:1200)
System Output: void java.awt.Window.dis
System Output: patchEventImpl(java.awt.AWTEvent) (Window.java:912)
System Output: void java.awt.Component.dispatchEvent(java.awt.AWTEvent) (Component.java:2499)
System Output: void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent) (EventQueue.java:319)
System Output: boolean java.awt.EventDispatchThread.p
System Output: umpOneEvent() (EventDispatchThread.java:103)
System Output: void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional) (EventDispatchThread.java:93)
System Output: void java.awt.EventDispatchThread.run() (EventDispatchThread.java:84)
System Output:
nullOriginally posted by Luis:Did you install iFS on the Windows box, into the same ORACLE_HOME as the Oracle client? Or did you just copy the .jar files over (or use the ones that come with JDeveloper) and then write and compile a custom app?
I did not install iFS on the Windows box at all (Do I need to?). I'm using the .jar files that came with JDeveloper.Where did you get the
C:\Program Files\Oracle\JDeveloper 3.2\ifs\settings directory?
I copied the whole \settings directory (with no changes) from the server where iFS is installed into the existing ifs directory on my NT workstation under Oracle/JDeveloper.you should be able to cd to: ...\ifs\settings\oracle\ifs\server\properties -- do so and then you should see at least one .properties file. Hopefully you'll find a ServerManager.properties file, since that's the service name you specified in the code you're using to connect to iFS.
Yes, ServerManager.properties is there. I'm going to paste it below along with TNS name. Unfortunately it appears that the service name "World" is in both files. Or if that is not correct could you say exactly how it should be written.TNS names:
# TNSNAMES.ORA Network Configuration File: D:\Oracle\Ora81\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
WORLD.US.SAS.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = sonoma.unx.sas.com)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = world)
ServerManager.properties: (not everything, this file is long):
AuroraService=false
Driver=oracle.jdbc.driver.OracleDriver
User=IFSSYS
DatabaseUrl=jdbc:oracle:oci8:@world
JdbcTracing=false
DefaultRowPrefetch=0
CaseSensitiveAuthentication=false
CredentialManagers=Ifs
CredentialManagerIfsClassname=oracle.ifs.server.IfsCredentialManager
CredentialManagerIfsAlternateNames=IFS, DEFAULT
CredentialManagerIfsSchema=IFSSYS$CM
CredentialManagerIfsRdbmsUserMustExist=false
CredentialManagerIfsAcceptCleartextCredential=true
CredentialManagerIfsAcceptChallengeResponseCredential=true
CredentialManagerIfsAcceptHttpDigestCredential=true
CredentialManagerIfsAcceptTokenCredential=true
NOTE: sonoma.unx.sas.com is the server where the oracle database is located. However munin.unx.sas.com is the server where ifs is located. When I use sql*plus I am connecting to sonoma and the database, not iFS. I believe this is correct and this is what my java app should also connect to (sonoma not munin). munin doesn't have a service name and there is no way for the client software to connect to it. Is this correct or could this be causing the problem?
Thanks so much for your help.
-Nick
null -
Extending the iFS WebUILogin class
Morning, all,
We're in the process of integrating a Web Content Management System with the iFS repository. Short version of the story is that we have tables and PL/SQL packages on a separate schema within the same database that the iFS repository is resident in that are being accessed through a JSP front end. During the early phase of the development, we used the following connection bean to open a connection to the schema
import java.sql.*;
import java.sql.DriverManager;
import java.sql.SQLException;
import javax.servlet.http.*;
import oracle.jdbc.driver.OracleDriver;
import java.util.Vector;
public class CMSConnectionBean implements HttpSessionBindingListener {
private Connection __CMSConnection;
private Statement __Statement;
private final static String ConnectString ="jdbc:oracle:thin:@.....";
private final static String uid = "uid";
private final static String pwd = "pwd";
* Constructor Definitions
public CMSConnectionBean() {
try {
DriverManager.registerDriver (new OracleDriver());
myConnection = DriverManager.getConnection(ConnectString,uid,pwd);
myStatement = __CMSConnection.createStatement();
catch (SQLException e) {
System.err.println("Connection Bean: driver is not loaded - " + e);
myConnection = null;
// Method implementations...
and used an SQLJ wrapper class generated from Jdeveloper to call the PL/SQL packages. Read only views of the necessary tables in the CMS schema have been created, and grant execute privs on the necessary PL/SQL packages have been incorporated into a role that has been granted to IFSSYS.
What we want to do know is use the WebUILogin class to authenticate users logging onto the Content Management System using iFS authentication; and we want to provide a Connection and Statement object so we can query the CMS table views and invoke the PL/SQL packages through the JSP app, as well as access the iFS API. Is it possible to create a new class extending the WebUILogin class, and include two new class attributes from the java.sql.* library (specifically, a Connection and Statement object) and then implement the associated getter and setter methods? More to the point, how would we use the iFS LibrarySession information to open a JDBC driver to the IFSSYS schema to access the views and packages from the CMS schema? For example, can we extend the WebUILogin class, and then generate a constructor for the new subclass, something like
package pkg;
import ...etc etc etc;
public class newclass extends WebUILogin {
// Class attributes
private Connection myConnection;
private Statement myStatement;
//Constructor
public newclass() {
try {
super(); //calls the constructor for the base class, WebUILogin
// open the JDBC thin driver here
DriverManager.registerDriver (new OracleDriver());
myConnection = DriverManager.getConnection(..LibrarySession provided information here...);
myStatement = myConnection.createStatement();
catch (...)
// Method implementations
Or is there a better way of getting this functionality?
Thanks for your help
Geoff.
nullGeoff
Are you wanting to use the iFS JDBC Connection or establish your own connection based on user information (username,password) stored somewhere in iFS.
If you want to use your own information then you could create an extendedUserProfile that would allow you to record the uid,pwd needed to establish your own connection.
As Alan says, if you want to share the iFS JDBC connection that's not currently supported
Maybe you are looking for
-
Hash Error (80091007) when installing Adobe Acrobat 10 From a Task Sequence in SCCM 2007
Hi, I have a problem with my deployment of Acrobat 10. I did create the package using the adminstrative install method to be able to apply the latest update available. The result is that when I am trying to deploy the software (using a Task Sequence)
-
After upgrading to ios7.1 iphone won't play via USB in car. Why?
I had been able to play my iphone through my 2013 Honda until I did the 7.1 upgrade. Now the car does not recognize the iPhone. How do I fix this?
-
Duplicate incomming messages in mail
Since I dumped Facebook & cleaned out the iPad every incoming e-mail now in mail is in duplicate. Any know how to stop this? Thanks.
-
Help! Lightroom 3 cannot read the .cr2 file of Canon EOS 60D.
Is there update available?
-
I have web query that i want to run. It's asking for certain variables eg : date. How can i check cube data to see what valid dates have been posted in the cube? so then I can put this in for the variable date ? thanks