Acme Video
I was looking at the sample video rental application that comes
with JDeveloper 2.0 and I had a question about the OAS part:
each
transaction starts a thread that handles the session's expiration
but as far as I know, the JWeb cartridge doesn't let threads run
in the background once the HTTP transaction is finished.
Could someone tell me if I missed something or if there's a later
version of OAS that allows Java Threads to run in the background
between HTTP transactions?
Another issue that comes to mind in this case is the fact that
OAS shuts the cartridge down after a while...
Anyone has other comments/questions about the Acme Video sample?
null
This worked fine for me. Are you using JDK 1.1x to compile the various components or JDK 1.2? I used JDK 1.1x.
Will
null
Similar Messages
-
ACME Video demo: Members can't log on
Using: JDeveloper 3.0 (build 532)
Tesing the ACME Video demo in JDeveloper's own environment (ie, without a separate web server), no member can sign in to the ACME video store web interface.
scott/tiger member/password doesn't work...
I proceeded to create a new ACME video member and to my surprise, I even received an e-mail welcoming me as a new ACME video member (very nice touch for the demo), but still when at the welcome screen for the ACME video store, I could not log in as a member with the new userid/password.
Just for interest sake, I tried to create another new user with the same member name and login as my first member that I created and as expected, it told me that that user existed. So, it is obviously referencing the database for verification that the member already exists, but member login just doesn't work for some reason.
When trying to login into the ACME video database member login screen, the error I get is the usual "invalid login" that you get when you enter an invalid password or userid.
I even tried entering the member# (eg, 2250 for scott/tiger) in case the interface was expecting the member# rather than the name, but no luck there.
I logged into the ACME Oracle database directly in SQL, and verified userid/password for all the members in the ACME_MEMBERS table, but none of the logins work.
Any ideas to what the problem is? I have yet
to track down the code where the password is being verified so that maybe I can see exactly why the login is failing, but I have not had any luck tracking it down as of yet. . . but I'll keep looking.
I'd really like to see this thing work to understand more about JDeveloper and it's features.hi mason mason,
iChat 3 has a feature that blocks multiple logins form the same screen name. this effects different apps on the same computer and trhe same name on different computers.
It also has a check box in iChat > Preferences > Accounts that can be set to over-ride this. (select the screen name on the left and then the Information tab)
9:21 PM Saturday; November 25, 2006 -
ACME video on Java Web Server 2.0
ACME video was fairly easy to get running using the built in web server provided with JDeveloper 3.0. Things got a bit more difficult when I tried to deploy the web application portion to Java Web Server 2.0.
Here's what I had to do to get it to work...
1. The acmevideo_deploy.properties file must be copied independently to the JWS2.0 root directory. If an attempt to access the site fails indicating that this file could not be found, you should place it in whatever directory contains the file acmepropfile_loc.txt. The program is designed to write this file out to help you locate where the properties file should go. Too bad there is no mention of this in the docs!
2. The imageURL property should be set to imageURL=/acmevideo/images/ for the image files to be found by the html generated by servlets. This value is set in the acmevideo_deploy.properties file mentioned above.
3. Similarly, the webAppURL propery should set to point to the JWS2.0 server location. For example, on my system it's webAppURL=http://localhost:8080/servlet/WebAppServlet
4. The following EJB jar files located in <JDEVELOPER>/samples/acmevideo/ejb/server must be added to the c:/acmedir directory and referenced in the CLASSPATH set in the batch file created and used to execute the web server.
EJBGeneratedRentals.jar
EJBGeneratedTitleQueries.jar
EJBSourceRentals.jar
EJBSourceTitleQueries.jar
5. The jsdk.jar file that is referenced in the CLASSPATH and which you are directed to copy into acmedir is not required and does not reside in the location specified.
Hope this helps anyone trying to get the sample running in all of its <ahem> glory. :-) Looks like a good sample app to base a project on if you aren't ready for J2EE or your application platform doesn't fully support the specification.
Will
nullThere is no need to install OAS or Oracle8i to test the servlet/jsp functionality in JDeveloper 3.0. You might want to check to insure that you installed all available components during installation (a few of them are hidden and you must scroll down to select them). Try running a few of the servlet/jsp samples before moving on to the full ACME video sample.
Hope this helps,
Will
null -
ACME Video EJB Oracle 8i deployment error.
An error occurs while stub compilation.
Tested using both 1.1.8 and 1.2.2 versions.
How can I solve this?
Thanks,
Sean
AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
Copyright (c) 1997-1998 Borland International. All Rights
Reserved.
Copyright (c) 1997-1999 Oracle Corporation. All Rights Reserved.
Reading Deployment Descriptor...done
Verifying Deployment Descriptor...done
Gathering users...done
Generating Comm
Stubs.............................................done
Compiling Stubs...Errors compiling the communication stubs
AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
Copyright (c) 1997-1998 Borland International. All Rights
Reserved.
Copyright (c) 1997-1999 Oracle Corporation. All Rights Reserved.
java.lang.NoClassDefFoundError: java/util/ArrayList
at sun.tools.util.CommandLine.parse
(CommandLine.java:42)
at sun.tools.javac.Main.compile(Compiled Code)
at sun.tools.javac.Main.main(Compiled Code)
*** Errors occurred while deploying the EJB to JServer ***
*** Deployment completed ***
nullWhen I add java 1.2 rt.jar to library list of deployment, this
problem can be solved.
However, then, insufficient privelege error occurs when
deployment program seems to try to load rt.jar file to the
Oralce 8i JServer.
How should I configure environment to make ACME video EJB sample
to run?
Thanks,
Sean
Sean (guest) wrote:
: An error occurs while stub compilation.
: Tested using both 1.1.8 and 1.2.2 versions.
: How can I solve this?
: Thanks,
: Sean
: AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
: Copyright (c) 1997-1998 Borland International. All Rights
: Reserved.
: Copyright (c) 1997-1999 Oracle Corporation. All Rights
Reserved.
: Reading Deployment Descriptor...done
: Verifying Deployment Descriptor...done
: Gathering users...done
: Generating Comm
: Stubs.............................................done
: Compiling Stubs...Errors compiling the communication stubs
: AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
: Copyright (c) 1997-1998 Borland International. All Rights
: Reserved.
: Copyright (c) 1997-1999 Oracle Corporation. All Rights
Reserved.
: java.lang.NoClassDefFoundError: java/util/ArrayList
: at sun.tools.util.CommandLine.parse
: (CommandLine.java:42)
: at sun.tools.javac.Main.compile(Compiled Code)
: at sun.tools.javac.Main.main(Compiled Code)
: *** Errors occurred while deploying the EJB to JServer ***
: *** Deployment completed ***
null -
ACME Video demo:JWS setup:Can't find classes
*** ACME Video demo ***
*** using: JDeveloper 3.0 (build 532) and JWS 2.0 ***
I am having great troubles simply getting JWS (v2.0) to acknowlege existence of my WebAppServlet (ie, ACME Video demo). I have been able to use the demo from within JDeveloper's own runtime environment, but then members can't log in to the demo database. So I am trying to use JWS to see if I can get the ACME Video demo working from a real web server, but I keep getting the infamous 404: File not found error when trying to access it from a browser at http://mycomputer:8080/acmevideo.html.
So to simplify the test I am now just trying to hit the LOAD button from within the JWS configuration manager, but when I try to hit the LOAD button in the JWS servlets tab I consistently get the folowing error:
Problem Updating Servlet
Cannot update servlet WebAppServlet:
Cannot find class for servlet WebAppServlet:
Could not load class acmevideo.servlet.WebAppServlet.
So here I am . . . if there is any guidance out there it would be greatly appreciated.
1) Is it true that I only have to put my WebAppServlet.jar file, along with the libraries listed at the bottom of this message in my e:\acmedir that I set my classpath to before starting JWS?
2) Why can't I just set the classpath to "e:\acme". Why must I set it to specify each individual archive in the folder when they are all in the same folder?
3) Does anyone know the logic behind the "acmevideo.servlet.WebAppServlet" naming scheme that is used to define the servlet in the JWS configuration? How does that define WebAppServlet? I have no folders named "acmevideo.servlet", my jar is named WebAppServlet, so I would suspect that I should define it as simply "WebAppServlet" since I have set my classpath to the folder that it exists in. Maybe this has something to do with why JWS can't find it, so can't load it?
4) How can I check inside the WebAppServlet.jar archive file to make sure that it really contains the class files that should be in there? Maybe I have the wrong jar file? I'm looking at all possibilities at this time.
4) Boy have I ever spent a lot of time simply trying to view this demo. . . . . I'll bake a pie for anyone who can get this thing working. I may not actually send the pie to you, but I'll bake it in your honor and tell you how good it was.
1) Here's my batch file (largely a copy of William Wise's batch file):
set cstdir=e:\acme
set JDK_HOME=
set JAVA_HOME=
set classpath=
set path=
set classpath=%CSTDIR%;%CSTDIR%\aurora_client.jar;%CSTDIR%\javax_ejb.zip;%CSTDIR%\jndi.jar;%CSTDIR%\vbjorb.jar;%CSTDIR%\vbjapp.jar;%CSTDIR%\vbjtools.jar;%CSTDIR%\vbj30ssl.jar;%CSTDIR%\ classes11 1.zip;%CSTDIR%\jdev-rt.zip;%CSTDIR%\WebAppServlet.jar
e:\javawebserver2.0\bin\httpd -verbose
2) Here's the contents of my e:\acme folder:
aurora_client.jar
classes111.zip
javax_ejb.zip
jdev-rt.zip
jndi.jar
servlet.jar
vbj30ssl.jar
vbjapp.jar
vbjorb.jar
vbjtools.jar
WebAppServlet.jar (this should be ACME Video archive, I guess)
3) My WebAppServlet's Servlet Class is defined in the JWS:Servlets:Configuration as:
acmevideo.servlet.WebAppServlet
4) My servlet alias in the JWS:Setup:Servlet Aliases is:
Alias: /acmevideo.html
Servlet Invoked: WebAppServlet
null*** ACME Video demo ***
*** using: JDeveloper 3.0 (build 532) and JWS 2.0 ***
I am having great troubles simply getting JWS (v2.0) to acknowlege existence of my WebAppServlet (ie, ACME Video demo). I have been able to use the demo from within JDeveloper's own runtime environment, but then members can't log in to the demo database. So I am trying to use JWS to see if I can get the ACME Video demo working from a real web server, but I keep getting the infamous 404: File not found error when trying to access it from a browser at http://mycomputer:8080/acmevideo.html.
So to simplify the test I am now just trying to hit the LOAD button from within the JWS configuration manager, but when I try to hit the LOAD button in the JWS servlets tab I consistently get the folowing error:
Problem Updating Servlet
Cannot update servlet WebAppServlet:
Cannot find class for servlet WebAppServlet:
Could not load class acmevideo.servlet.WebAppServlet.
So here I am . . . if there is any guidance out there it would be greatly appreciated.
1) Is it true that I only have to put my WebAppServlet.jar file, along with the libraries listed at the bottom of this message in my e:\acmedir that I set my classpath to before starting JWS?
2) Why can't I just set the classpath to "e:\acme". Why must I set it to specify each individual archive in the folder when they are all in the same folder?
3) Does anyone know the logic behind the "acmevideo.servlet.WebAppServlet" naming scheme that is used to define the servlet in the JWS configuration? How does that define WebAppServlet? I have no folders named "acmevideo.servlet", my jar is named WebAppServlet, so I would suspect that I should define it as simply "WebAppServlet" since I have set my classpath to the folder that it exists in. Maybe this has something to do with why JWS can't find it, so can't load it?
4) How can I check inside the WebAppServlet.jar archive file to make sure that it really contains the class files that should be in there? Maybe I have the wrong jar file? I'm looking at all possibilities at this time.
4) Boy have I ever spent a lot of time simply trying to view this demo. . . . . I'll bake a pie for anyone who can get this thing working. I may not actually send the pie to you, but I'll bake it in your honor and tell you how good it was.
1) Here's my batch file (largely a copy of William Wise's batch file):
set cstdir=e:\acme
set JDK_HOME=
set JAVA_HOME=
set classpath=
set path=
set classpath=%CSTDIR%;%CSTDIR%\aurora_client.jar;%CSTDIR%\javax_ejb.zip;%CSTDIR%\jndi.jar;%CSTDIR%\vbjorb.jar;%CSTDIR%\vbjapp.jar;%CSTDIR%\vbjtools.jar;%CSTDIR%\vbj30ssl.jar;%CSTDIR%\ classes11 1.zip;%CSTDIR%\jdev-rt.zip;%CSTDIR%\WebAppServlet.jar
e:\javawebserver2.0\bin\httpd -verbose
2) Here's the contents of my e:\acme folder:
aurora_client.jar
classes111.zip
javax_ejb.zip
jdev-rt.zip
jndi.jar
servlet.jar
vbj30ssl.jar
vbjapp.jar
vbjorb.jar
vbjtools.jar
WebAppServlet.jar (this should be ACME Video archive, I guess)
3) My WebAppServlet's Servlet Class is defined in the JWS:Servlets:Configuration as:
acmevideo.servlet.WebAppServlet
4) My servlet alias in the JWS:Setup:Servlet Aliases is:
Alias: /acmevideo.html
Servlet Invoked: WebAppServlet
null -
Sample- acme video for JD3.0
Hi,
I tried the acme video sample tutorial on JD3.0 and I found missing or not the right HTML files for the sample and some instruction file to copy are missing. Where can I download the right sample tutorial for acme video on JDE3.0
Urgent need for my hands-on practice.
RogerHi!
I was able to get the acme sample up and running from the base JDeveloper install. One thing you might want to insure is that when you installed you used the scrollbar to display a few additional options that are unchecked by default including visibroker. Re-run the install if necessary and make double sure all items are checked.
Let me know if this helps,
Will
null -
Error in OAS with Jservlet.
I have two problems.
I'm begin in java and i have a questions.
thanks for answer me to [email protected]
this is my enviroment:
Version ORACLE: oracle 8i enterprise edition 8.1.5
Version OAS: Oracenterprise edition 4.0.8.1
Version JDEVELOPER: 3.0 export.
Version WinNT: NT server SP5 , IE5
the instalation of ORACLE, OAS(Enterprise), y JDEVELOPER was default.
What i do:
I publish a JAva store procedure in the database and its working.
I run applets (make in jdeveloper, infobus) and work from IIS and OAS.
I can run PLSQL toolkit and it's work.
I run de application ACME VIDEO from jdeveloper and it's work.
I publisha HelloWorld Servlet from oas.
What i cant do?
- Publish a DBservlet from oas<error1>
- deploy a Enterprise JAva BEan to Oracle 8i using iiop<error2>
Questions?
Any configuration in OAS?
init.ora is ok?
patch jdeveloper?
patch oas?
other configuration?
How i confirm to JSERVER is correctly install?
How i test iiop conection? listener?
atach Errors, WRB.app, Init.ora, listener.ora. tnsnames.ora
Error 1 (SERVLET OAS)
I follow a manual in /jdeveloper/readme.html about how i install jservlet in oas.
and this problem result:
wrks.exe
Unable to locate DLL
the dynamic link library yoc40.dll could not be found in the specified path d:\oracle\oas\ows\4.0\bin; c:\winnt\System32;...
Error 2 (JDEVELOPER IIOP)
username acme
pasword acme
Host id icon
sid ORCL
port 2481
Error:
"Conection Exception
Can`t find resource. "
WRB.APP
La aplicacion que estoy probando es MYServlets
[SYSTEM]
SiteName = website40
DisplaySiteName = website40 Site
WRB_primary_host = orasvr.126.0.0.1
WRB_crypt = v1.0
WRB_type = b611064beb189bb6686ed7d705292c06
HostList = orasvr
CollapseProcessModel = TRUE
PriorityScheduling = yes
NextResourceId = 1002
OASEdition = Enterprise Edition
OASVersion = 4.0.8.1.0
OASCompatibleVersion = 4.0.8.1.0
RuntimeList = CWEB, CCORBA, PERL, LiveHTML, ECO4JAVA, EJB, JavaCorba, JAVAWEB, JSERVLET, PLSQL
AppsList = owsapps,DB_Utilities,plsql,jservlets,oneEJBHotel,MyServlets
AincName = __
[SYSTEM.HA]
ConfigProvider = Disabled
AuthServer = Disabled
Broker = Disabled
Logger = Disabled
CartridgeServerFac = Disabled
Dispatcher = Enabled
MonitorDaemon = Disabled
RMProxy = Disabled
Timeout = 30
BrokerTimeout = 60
[Basic]
Realm.Admin Server = Administrators
Group.Administrators = admin
User.admin = 21232f297a57a5a743894a0e4a801fc3
[AuthService]
Service.Mode = INMEMORY
Schemes.INMEMORY = Basic, Digest, IP, Domain
Schemes.ORB = Basic_Oracle, Cert
Schemes.ORBHOST = Basic_Oracle, Cert
Scheme.Basic.Lib = %ORAWEB_HOME%\bin\libwrasbasic40.dll, wrASPBDI_dyn_init
Scheme.Digest.Lib = %ORAWEB_HOME%\bin\libwrasdigest40.dll, wrASPGDI_dyn_init
Scheme.IP.Lib = %ORAWEB_HOME%\bin\libwrasip40.dll, wrASPIDI_dyn_init
Scheme.Domain.Lib = %ORAWEB_HOME%\bin\libwrasdomain40.dll, wrASPDDI_dyn_init
Scheme.Basic_Oracle.Lib = %ORAWEB_HOME%\bin\libwrasoracle40.dll, wrASPODI_dyn_init
Scheme.Cert.Lib = %ORAWEB_HOME%\bin\libwrascert40.dll, wrASPCDI_dyn_init
Scheme.IP.Impl = WRAS_IP
Scheme.Basic.Impl = WRAS_BASIC
Scheme.Digest.Impl = WRAS_DIGEST
Scheme.Domain.Impl = WRAS_DOMAIN
Scheme.Basic_Oracle.Impl = WRAS_BASIC_ORACLE
Scheme.Cert.Impl = WRAS_CERT
[Logger]
logger_dad_name = DBA
logger_batch = ON
logger_rollover = Never
logger_logxlf = ON
logger_logxlf_desttype = FS
logger_logxlf_destdir = %ORAWEB_HOME%\..\admin\website40\log
logger_logxlf_destfname = xlf.log
logger_logxlf_maxfsize = 10000000
logger_logxlf_archivedir = %ORAWEB_HOME%\..\admin\website40\log
logger_logxlf_fields = clf
logger_logsys = ON
logger_logsys_desttype = FS
logger_logsys_destdir = %ORAWEB_HOME%\..\admin\website40\log
logger_logsys_destfname = wrb.log
logger_logsys_maxfsize = 10000000
logger_logsys_archivedir = %ORAWEB_HOME%\..\admin\website40\log
logger_logsys_mask = 0xFFFFFFFF
logger_logsys_level = 3
logger_logattrib = ON
logger_logattrib_desttype = FS
logger_logattrib_destfname = attrib.log
logger_logattrib_destdir = %ORAWEB_HOME%\..\admin\website40\log
logger_logattrib_maxfsize = 10000000
logger_logattrib_archivedir = %ORAWEB_HOME%\..\admin\website40\log
[ots.otssrv]
description = OTS server
max_distributed_transactions = 66
max_resources_accessed_per_txn = 6
application_dispatch_thread_number = 3
[RUNTIME.CWEB]
RuntimeVersion = 4.0
DisplayName = "C Web"
AppFile = D:\Oracle\Oas\ows\4.0\install\CWEB.app
AddAppURL = /ows-abin/apadmin?FORM_CODE=APP_TYPE&AppType=CWEB&ConfigMode=manual
AddCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_ADD
DelAppURL = /ows-abin/apadmin?FORM_CODE=APP_DEL
DelCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_DEL
[APPLICATION.owsapps]
ServerInterface = WEB
ServerRuntime = CWEB
CartTimeout = 86400
Hosts = orasvr
ExecString = wrks -s
Priority = medium
DisplayName = "Server Status Monitor App"
Cartridges = owsapps/owsstat
[APPLICATION.owsapps.WEB]
AppMimeTypes = - jpeg,gif
GetClientCert = Disabled
Session = Disabled
SessionIdle = 15
[AppDirs]
/owsapps/owsstat owsapps/owsstat %ORAWEB_HOME%\bin
/owsstat owsapps/owsstat %ORAWEB_HOME%\bin
/DB_Utilities/DB_Browser DB_Utilities/DB_Browser %ORAWEB_HOME%\bin
/DB_Utilities/Log_Analyzer DB_Utilities/Log_Analyzer %ORAWEB_HOME%\bin
/plsql/toolkit/ plsql/toolkit %ORAWEB_HOME%\bin
/Jservlets/Samples/ jservlets/Samples d:\oracle\oas\ows\4.0\test\
/servlets/ MyServlets/DbServlets %ORAWEB_HOME%\lib
[SYSTEM_owsapps/owsstat]
Stateless = FALSE
ThreadSafe = no
Prestart = 0
MinInstances = 1
MaxInstances = 10
MinThreads = 1
MaxThreads = 1
Application = owsapps
DisplayName = "Web Server Status Monitor"
[Apps]
owsapps/owsstat %ORAWEB_HOME%\bin\wstat.dll testentry
DB_Utilities/DB_Browser %ORAWEB_HOME%\..\cartx\plsql\bin\ndwoa40.dll ndwoadinit
DB_Utilities/Log_Analyzer %ORAWEB_HOME%\..\cartx\plsql\bin\ndwoa40.dll ndwoadinit
plsql/toolkit %ORAWEB_HOME%\..\cartx\plsql\bin\ndwoa40.dll ndwoadinit
jservlets/Samples %ORACLE_HOME%\ows\cartx\jweb\lib\jcartx40.dll ojsdinit
MyServlets/DbServlets %ORACLE_HOME%\ows\cartx\jweb\lib\jcartx40.dll ojsdinit
[RUNTIME.CCORBA]
RuntimeVersion = 4.0.8
DisplayName = "C++ Corba"
AppFile = D:\Oracle\Oas\ows\4.0\install\CCORBA.app
AddAppURL = /ows-abin/jcgi.bat?FORM_CODE=j_cpp_ccorba_install
AddCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_ADD
DelAppURL = /ows-abin/apadmin?FORM_CODE=APP_DEL
DelCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_DEL
AppsDir = ..\cpp
[RUNTIME.PERL]
RuntimeVersion = 4.0
DisplayName = "Perl"
AppFile = D:\Oracle\Oas\ows\cartx\perl\install\perl.app
AddAppURL = /ows-abin/apadmin?FORM_CODE=APP_TYPE&AppType=PERL&ConfigMode=manual
AddCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_ADD
DelAppURL = /ows-abin/apadmin?FORM_CODE=APP_DEL
DelCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_DEL
[RUNTIME.LiveHTML]
RuntimeVersion = 4.0
DisplayName = "LiveHTML"
AppFile = D:\Oracle\Oas\ows\4.0\..\cartx\livehtml\install\livehtml.app
AddAppURL = /ows-abin/apadmin?FORM_CODE=APP_TYPE&AppType=LiveHTMLL&ConfigMode=manual
AddCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_ADD
DelAppURL = /ows-abin/apadmin?FORM_CODE=APP_DEL
DelCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_DEL
[RUNTIME.ECO4JAVA]
RuntimeVersion = 4.0
DisplayName = "Enterprise Corba Objects for Java"
AppFile = D:\Oracle\Oas\ows\4.0\install\ECO4JAVA.app
AddAppURL = /ows-abin/jcgi.bat?FORM_CODE=j_eco_add
AddCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_ADD
DelAppURL = /ows-abin/apadmin?FORM_CODE=APP_DEL
DelCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_DEL
AppsDir = ..\apps\eco4j
[RUNTIME.EJB]
RuntimeVersion = 4.0
DisplayName = "Enterprise JavaBeans"
AppFile = D:\Oracle\Oas\ows\4.0\install\EJB.app
AddAppURL = /ows-abin/jcgi.bat?FORM_CODE=j_ejb_add
AddCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_ADD
DelAppURL = /ows-abin/apadmin?FORM_CODE=APP_DEL
DelCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_DEL
AppsDir = ..\apps\ejb
[RUNTIME.JavaCorba]
RuntimeVersion = 4.0
DisplayName = "JCorba"
AppFile = D:\Oracle\Oas\ows\4.0\install\JavaCORBA.app
AddAppURL = /ows-abin/jcgi.bat?FORM_CODE=j_jco_add
AddCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_ADD
DelAppURL = /ows-abin/apadmin?FORM_CODE=APP_DEL
DelCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_DEL
AppsDir = ..\apps\jco
[RUNTIME.JAVAWEB]
RuntimeVersion = 4.0
DisplayName = "JWeb"
AppFile = D:\Oracle\Oas\ows\4.0\..\cartx\jweb\install\javaweb.app
AddAppURL = /ows-abin/apadmin?FORM_CODE=APP_TYPE&AppType=JAVAWEB&ConfigMode=manual
AddCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_ADD
DelAppURL = /ows-abin/apadmin?FORM_CODE=APP_DEL
DelCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_DEL
[RUNTIME.JSERVLET]
RuntimeVersion = 4.0
DisplayName = "JServlet"
AppFile = D:\Oracle\Oas\ows\4.0\..\cartx\jweb\install\jservlet.app
AddAppURL = /ows-abin/apadmin?FORM_CODE=APP_TYPE&AppType=JSERVLET&ConfigMode=manual
AddCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_ADD
DelAppURL = /ows-abin/apadmin?FORM_CODE=APP_DEL
DelCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_DEL
[RUNTIME.PLSQL]
RuntimeVersion = 4.0
DisplayName = "PL/SQL"
AppFile = D:\Oracle\Oas\ows\4.0\..\cartx\plsql\install\runtime_plsql.app
AddAppURL = /ows-abin/apadmin?FORM_CODE=APP_TYPE&AppType=PLSQL&ConfigMode=manual
AddCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_ADD
DelAppURL = /ows-abin/apadmin?FORM_CODE=APP_DEL
DelCartxURL = /ows-abin/apadmin?FORM_CODE=CARTX_DEL
[APPLICATION.DB_Utilities]
Hosts = orasvr
ExecString = wrks -s
ServerInterface = WEB
CartTimeout = 86400
Priority = medium
DisplayName = "DB Utilities"
ServerRuntime = PLSQL
Cartridges = DB_Utilities/Log_Analyzer, DB_Utilities/DB_Browser
[APPLICATION.DB_Utilities.WEB]
AppMimeTypes = - jpeg,gif
GetClientCert = Disabled
Session = Disabled
SessionIdle = 15
[SYSTEM_DB_Utilities/DB_Browser]
Stateless = FALSE
ThreadSafe = TRUE
Prestart = 0
MinInstances = 0
MaxInstances = 10
MinThreads = 1
MaxThreads = 1
Application = DB_Utilities
DisplayName = "DB Browser"
[SYSTEM_DB_Utilities/Log_Analyzer]
Stateless = FALSE
ThreadSafe = TRUE
Prestart = 0
MinInstances = 0
MaxInstances = 10
MinThreads = 1
MaxThreads = 1
Application = DB_Utilities
DisplayName = "Log Analyzer"
[DB_Utilities/Log_Analyzer_DB_Utilities/Log_Analyzer]
owa_error_page = error.html
owa_pkg_protect = TRUE
owa_error_level = 2
[DB_Utilities/DB_Browser_DB_Utilities/DB_Browser]
owa_compress_files = FALSE
owa_dad_name = toolkit
owa_error_page = error.html
owa_pkg_protect = TRUE
owa_error_level = 2
[DAD_toolkit]
username = toolkit
password = JHNMNIBOJPHDDBDL
hostname = orasvr
oracle_home = D:\Oracle\Oas
oracle_sid = orcl
nls_lang = AMERICAN_AMERICA.WE8ISO8859P1
resource_id = 1001
[APPLICATION.plsql]
Hosts = orasvr
ExecString = wrks -s
ServerInterface = WEB
CartTimeout = 86400
Priority = medium
DisplayName = "plsql"
ServerRuntime = PLSQL
Cartridges = plsql/toolkit
[APPLICATION.plsql.WEB]
AppMimeTypes = - jpeg,gif
GetClientCert = Disabled
Session = Disabled
SessionIdle = 15
[SYSTEM_plsql/toolkit]
Stateless = FALSE
ThreadSafe = TRUE
Prestart = 0
MinInstances = 0
MaxInstances = 10
MinThreads = 1
MaxThreads = 1
DisplayName = "toolkit"
Application = plsql
[plsql/toolkit_plsql/toolkit]
owa_dad_name = toolkit
owa_error_level = 2
[APPLICATION.jservlets]
ServerInterface = WEB
ServerRuntime = JSERVLET
CartTimeout = 86400
Hosts = orasvr
ExecString = wrks -s
Priority = medium
DisplayName = "jservlets"
Cartridges = jservlets/Samples
[APPLICATION.jservlets.ENV]
CLASSPATH = %ORAWEB_HOME%\jdk\lib\classes.zip;%ORAWEB_HOME%\classes\services.jar;%ORACLE_HOME%\ows\cartx\jweb\classes\jweb.jar;%ORACLE_HOME%\ows\cartx\jweb\classes\jservlet.jar;%ORACLE_HOME%\o rb\classes\yoj.jar;%ORAWEB_HOME%\classes\cosnam.jar;%ORACLE_HOME%\orb\classes\session.jar;%ORACLE_HOME%\orb\classes\cache.jar;%ORACLE_HOME%\jdbc\lib\classes111.zip;%ORACLE_HOME%\ot s\classes\oraclejts.jar;%ORACLE_HOME%\ots\classes\jtsjdbc.jar;%ORAWEB_HOME%\classes\ecoapi.jar;%ORAWEB_HOME%\classes\ejbapi.jar;%ORAWEB_HOME%\classes\oasdeploy.jar;%ORAWEB_HOME%/te st/serv.jar;%ORAWEB_HOME%\lib\classes111.jar;%ORAWEB_HOME%/test/hotel.jar;%CLASSPATH%
PATH = %ORAWEB_HOME%\jdk\bin;%ORACLE_HOME%\ows\cartx\jweb\lib;%PATH%
[APPLICATION.jservlets.WEB]
AppMimeTypes = - jpeg,gif
GetClientCert = Disabled
Session = Enabed
SessionIdle = 15
SessionFailoverSupport = TRUE
[APPLICATION.jservlets.JAVA]
SYSTEM_PROPERTY = ORAWEB_HOME=%ORAWEB_HOME%
SYSTEM_PROPERTY = ORACLE_HOME=%ORACLE_HOME%
MAX_HEAP = 64M
SYSTEM_PROPERTY = java.naming.factory.initial=oracle.oas.naming.jndi.CartxInitCtxFactory
RUNTIME_MODE = JSERVLET
[SYSTEM_jservlets/Samples]
Priority = medium
MinInstances = 1
MaxInstances = 1
MinThreads = 3
MaxThreads = 10
Stateless = TRUE
ThreadSafe = TRUE
MaxClients = 10
JavaWebInterface = 3.0
DisplayName = "Samples"
Application = jservlets
+ = plication
[APPLICATION.jservlets.LOG]
logger_logsys = OFF
logger_logsys_destdir = e:\
logger_logsys_destfname = servlet.log
logger_logsys_level = 15
[APPLICATION.oneEJBHotel]
ServerInterface = CORBA
ExecString = javaw -mx64M oracle.oas.container.Main
GlobalMinServers = 0
GlobalMaxServers = 20
Hosts = orasvr
Transactions = Disabled
Priority = medium
UsesAinc = TRUE
DisplayName = "oneEJBHotel"
ServerRuntime = EJB
ServerJarFile = %ORAWEB_HOME%\..\apps\ejb\oneEJBHotel\_server.jar
ClientJarfile = %ORAWEB_HOME%\..\apps\ejb\oneEJBHotel\_client.jar
AppFile = D:\Oracle\Oas\ows\4.0\..\apps\ejb\oneEJBHotel\_application.app
AppJarFile = %ORAWEB_HOME%\..\apps\ejb\oneEJBHotel\_application.jar
CreateNamingContext = TRUE
Cartridges = oneEJBHotel/__,oneEJBHotel/HotelSystem
ComponentGroups = oneEJBHotel/__
[APPLICATION.oneEJBHotel.ENV]
CLASSPATH = %ORAWEB_HOME%\classes\services.jar;%ORACLE_HOME%\orb\classes\yoj.jar;%ORAWEB_HOME%\ejb\lib\ejbrt.jar;%ORACLE_HOME%\ots\classes\jtsjdbc.jar;%ORACLE_HOME%\ots\classes\oraclejts.jar;% ORACLE_HOME%\jdbc\lib\classes111.zip;%ORAWEB_HOME%\..\apps\ejb\oneEJBHotel\_server.jar;%ORAWEB_HOME%\..\apps\ejb\oneEJBHotel\_application.jar;%CLASSPATH%
PATH = %ORACLE_HOME%\ots\lib;%ORAWEB_HOME%\jdk\bin;%PATH%
[SYSTEM_oneEJBHotel/HotelSystem]
MinInstances = 0
Prestart = 0
MaxInstances = 10
MinThreads = 1
MaxThreads = 10
Stateless = FALSE
ThreadSafe = yes
Application = oneEJBHotel
DisplayName = "HotelSystem"
RemoteInterface = oneEJBHotel.HotelSystem
HomeInterface = oneEJBHotel.HotelSystemHome
[SYSTEM_oneEJBHotel/HotelSystem.JBEAN]
FactoryClassName = oracle.oas.container.cartridge.ContainerCIFactoryImpl
HomeClassName = oneEJBHotel.oas.corba0._HomeImpl
Reusable = TRUE
Timeout = 0
[SYSTEM_oneEJBHotel/__]
MinInstances = 0
Prestart = 0
MaxInstances = 10
MinThreads = 1
MaxThreads = 10
Stateless = FALSE
ThreadSafe = yes
Application = oneEJBHotel
DisplayName = "Application Instance"
ComponentGroupMembers = oneEJBHotel/HotelSystem.Wrapper
[SYSTEM_oneEJBHotel/__.JBEAN]
FactoryClassName = oracle.oas.container.cartridge.ContainerCIFactoryImpl
CartClassName = oracle.oas.container.appinstance.AppInstanceCart
GlobalInitMethod = globalInit
GlobalRemoveMethod = globalRemove
GlobalShowStateMethod = globalShowState
Reusable = TRUE
Timeout = 3600
Homes = oneEJBHotel/HotelSystem
[SYSTEM_oneEJBHotel/HotelSystem.JBEAN.TX]
TransactionMode = TX_NOT_SUPPORTED
[APPLICATION.MyServlets]
ServerInterface = WEB
ServerRuntime = JSERVLET
CartTimeout = 86400
Hosts = orasvr
ExecString = wrks -s
Priority = medium
DisplayName = "MyServlets"
Cartridges = MyServlets/DbServlets
[APPLICATION.MyServlets.ENV]
CLASSPATH = %ORAWEB_HOME%\lib\myservlets.jar;
%ORAWEB_HOME%\lib\classes111.zip;
%ORAWEB_HOME%\jdk\lib\classes.zip;
%ORAWEB_HOME%\classes\services.jar;
%ORACLE_HOME%\ows\cartx\jweb\classes\jweb.jar;
%ORACLE_HOME%\ows\cartx\jweb\classes\jservlet.jar;
%ORACLE_HOME%\orb\classes\yoj.jar;
%ORAWEB_HOME%\classes\cosnam.jar;
%ORACLE_HOME%\orb\classes\session.jar;
%ORACLE_HOME%\orb\classes\cache.jar;
%ORACLE_HOME%\jdbc\lib\classes111.zip;
%ORACLE_HOME%\ots\classes\oraclejts.jar;
%ORACLE_HOME%\ots\classes\jtsjdbc.jar;
%ORAWEB_HOME%\classes\ecoapi.jar;
%ORAWEB_HOME%\classes\ejbapi.jar;
%ORAWEB_HOME%\classes\oasdeploy.jar;
%CLASSPATH%
PATH = %ORAWEB_HOME%\jdk\bin;
%ORAWEB_HOME%\ows\cartx\jweb\lib;
%PATH%
[APPLICATION.MyServlets.WEB]
AppMimeTypes = - jpeg,gif
GetClientCert = Disabled
Session = Enabled
SessionIdle = 15
SessionFailoverSupport = TRUE
[APPLICATION.MyServlets.JAVA]
SYSTEM_PROPERTY = ORAWEB_HOME=%ORAWEB_HOME%
SYSTEM_PROPERTY = ORACLE_HOME=%ORACLE_HOME%
MAX_HEAP = 64M
SYSTEM_PROPERTY = java.naming.factory.initial=oracle.oas.naming.jndi.CartxInitCtxFactory
RUNTIME_MODE = JSERVLET
[SYSTEM_MyServlets/DbServlets]
MinInstances = 1
MaxInstances = 1
MinThreads = 3
MaxThreads = 10
Stateless = TRUE
ThreadSafe = TRUE
MaxClients = 10
JavaWebInterface = 3.0
DisplayName = "DbServlets"
Application = MyServlets
init.ora
db_name = ORCL
instance_name = ORCL
service_names = ORCL
db_files = 1024 # INITIAL
control_files = ("D:\Oracle\oradata\ORCL\control01.ctl", "D:\Oracle\oradata\ORCL\control02.ctl")
db_file_multiblock_read_count = 8 # INITIAL
db_block_buffers = 8192 # INITIAL
shared_pool_size = 15728640 # INITIAL
java_pool_size = 20971520
log_checkpoint_interval = 10000
log_checkpoint_timeout = 1800
processes = 59 # INITIAL
parallel_max_servers = 5 # SMALL
log_buffer = 32768 # INITIAL
max_dump_file_size = 10240 # limit trace file size to 5M each
global_names = true
oracle_trace_collection_name = ""
background_dump_dest = D:\Oracle\admin\ORCL\bdump
user_dump_dest = D:\Oracle\admin\ORCL\udump
db_block_size = 2048
remote_login_passwordfile = exclusive
os_authent_prefix = ""
# The following parameters are needed for the Advanced Replication Option
job_queue_processes = 2
job_queue_interval = 10
open_links = 4
distributed_transactions = 500
mts_dispatchers = "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)"
mts_servers = 1
compatible = 8.1.0
LISTENER ORA
# D:\ORACLE\ORA81\NETWORK\ADMIN\LISTENER.ORA Configuration File:D:\Oracle\Ora81\network\admin\listener.ora
# Generated by Oracle Net8 Assistant
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = orasvr)(PORT = 1521))
(DESCRIPTION =
(PROTOCOL_STACK =
(PRESENTATION = GIOP)
(SESSION = RAW)
(ADDRESS = (PROTOCOL = TCP)(HOST = orasvr)(PORT = 2481))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\Oracle\Ora81)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = D:\Oracle\Ora81)
(SID_NAME = ORCL)
TNSNAMES.ora del server
# D:\ORACLE\ORA81\NETWORK\ADMIN\TNSNAMES.ORA Configuration File:D:\Oracle\Ora81\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle Net8 Assistant
ORCL.126.0.0.1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = orasvr)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = orasvr)(PORT = 2481))
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
EXTPROC_CONNECTION_DATA.126.0.0.1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
nullhi,
Are you using forms and reports???
If yes then go
$ORACLE_HOME\forms\j2ee\orion-web.xml
Check for the line
<context-param-mapping name="configFileName">
/oraApps/oraclebi/forms/server/formsweb.cfg
</context-param-mapping>
(/oraApps/oraclebi/ is the value for my ORACLE_HOME.)
Make sure that the configFileName is pointing to a valid file (formsweb.cfg by default) and that the directory path is correct.
This should solve your problem
Regards
Fabian -
Images do not display in Acmevideo sample application WebApp_8i.jws
Hello,
The JDeveloper 3 Acmevideo web application for Oracle8i is a nice-looking web application.
There is a syntax fault in the Java source files WebAppReports.java, WebApp.java of the JDeveloper 3 workspace WebApp_8i.jws
In the file acmevideo_deploy.properties I used something like this:
...imageURL=http://oashost:80/acmeimages/...
All occurrences of "/topmovie.gif", "/onoracle.gif","/filmsquare.gif" in the java source files WebAppReports.java, WebApp.java should be replaced by "topmovie.gif","onoracle.gif","filmsquare.gif". Otherwise these images will not display correctly in the web application.
I would like to know when Oracle will provide a tutorial on servlet deployment of the acmevideo web application to Oracle Application Server.
I understand that by providng a Java Webserver servlet deployment example the JDeveloper customer is not dependent on Oracle Application Server as web server.
How to deploy the acmevideo servlet to Oracle Application Server 4.0.8.1?
Thank you in advance for your reaction,
Erik Martens
nullHi Erik,
For our next release, we are actually removing the Acme Video sample application. It will be replaced with the Web Auctions demo, which was used at the most recent Oracle Open World conference.
Instructions for deploying DBServlets to OAS 4.0.8.1 are included in the JDeveloper 3.0 release notes.
Laura
null -
Can't add my class into example project
my class is in the workspace the project
tree with the same package(in code first
line is "package xxxx;"). When I instatiat it, it is not red color, it always occure
compile error: idendifier xxxx not found in the class(other class in the same pakege) xxxx.
do I need redeploy the project? but it did not compile and build.Fred,
I am not sure about the details of the
problem you have explained below.
But here are some guidelines that may
help you figure out what you are doing wrong.
1. A Workspace can contain one or more
projects - (never any Java class files)
2. A Project can contain one or more
Java class files.
3. A project has a default "Source Root"
directory and this is used as the Root
for the source files.
4. Java requires public class names be the
same as the file name
(e.g. Class CellPhone must be saved in file
CellPhone.java)
5. Java requires the package name correspond
to directory path
(e.g. Pachage name of Acme.Video.Preview
must be stored in <Source Root>\Acme\Video\Preview )
6. The actual path to a file is the
Root Source plus the package name plus the
class name.java.
(example: Source Root = C:\JDeveloper
Package Name = MyCompany.Report.Util
Class Name = GeneratePDF
will need to be stored in:
C:\JDeveloper\MyCompany\Report\Util\GeneratePDF.java
As for various Identifiers not being found,
it is simply telling you that your project's
list of included libraries does not include
the given identifier.
If it is valid, then add the appropriate
library to the project's library list.
See Menu: Project | Project Properties.../ Add...
I hope this helps,
John@Oracle JDeveloper Team http://technet.oracle.com
null -
Hi,
I seem to have a peculiar problem which I can not trace it's
exact cause. What I am trying to do is to get an InfoBus
Data Form to work with Oracle stored procedures.
To access the stored procedures I have created the java
wrapper class using the pl/sql wizzard, but when I try to
get it up and running, I get this panic message:
JBO-01100: A Generic exception occurred during Data access
Exception: java.sql.SQLException: Error while trying to
retrieve text for error ORA-12154
What happens is that, in order to instantiate the new java
wrapper class, I need to create a Session object, using the
following code:
public Session session = new Session();
and then:
session.logon("acs", "acs", "or815");
before instantiating the wrapper class using the Session object.
usr = new package1.USR(session);
This does not work! I always get this freak panic message and
my InfoBus frame appears blank! If I comment out these lines
of code, everything goes just well, and my data appear in the
frame, as the should. But I really need to access my stored
procedures!!!
So, does any one have any idea of what to do? Can I do something
to get it all working right? I am really quite desperate, and
a speedy reply would be much appreciated...
Thanking in anticipation,
Nick Papakyriakou
nullFirstly I would like to thank you for your prompt response,
and secondly I would like to make another little question,
in continuation of this one.
Can any one tell me how to use the InfoBus apis to manipulate
(retrieve, insert, etc) LOBs? Is there any way this can be done
using these apis? Perhaps a code excerpt or a pointer to
where I could find such code would be very helpful.
Thanking in advance,
Nick Papakyriakou
JDev Team (guest) wrote:
: You can access your stored procedure using the InfoBus apis.
The
: executeRetrieval method of the DbAccess object provides the
: functionality. For examples of the use of InfoBus apis take a
: look at the Acme Video sample application in
: samples/acmevideo/CashierApp.jws. The ViewMembersForm.java and
: ViewRentalsForm.java use these apis.
: - PSW
: Nick Papakyriakou (guest) wrote:
: : Hi,
: : I seem to have a peculiar problem which I can not trace it's
: : exact cause. What I am trying to do is to get an InfoBus
: : Data Form to work with Oracle stored procedures.
: : To access the stored procedures I have created the java
: : wrapper class using the pl/sql wizzard, but when I try to
: : get it up and running, I get this panic message:
: : JBO-01100: A Generic exception occurred during Data access
: : Exception: java.sql.SQLException: Error while trying to
: : retrieve text for error ORA-12154
: : What happens is that, in order to instantiate the new java
: : wrapper class, I need to create a Session object, using the
: : following code:
: : public Session session = new Session();
: : and then:
: : session.logon("acs", "acs", "or815");
: : before instantiating the wrapper class using the Session
: object.
: : usr = new package1.USR(session);
: : This does not work! I always get this freak panic message and
: : my InfoBus frame appears blank! If I comment out these lines
: : of code, everything goes just well, and my data appear in the
: : frame, as the should. But I really need to access my stored
: : procedures!!!
: : So, does any one have any idea of what to do? Can I do
: something
: : to get it all working right? I am really quite desperate, and
: : a speedy reply would be much appreciated...
: : Thanking in anticipation,
: : Nick Papakyriakou
null -
1)I cannot find Oracle 8i lite in the Oracle Store (web site).
What is the pricing?
2)There is a deploy feature. Does it mean I can distribute (read
sell) applications without additional licenses? Do customers
have to buy licenses?
3)Since Oracle 8i lite supports (32) concurrent connections, row
level locking, transactions, etc. why isn't it multi-user? Does
it mean I cannot share an Oracle 8i lite database on a network?
Regards,
nullWhen I add java 1.2 rt.jar to library list of deployment, this
problem can be solved.
However, then, insufficient privelege error occurs when
deployment program seems to try to load rt.jar file to the
Oralce 8i JServer.
How should I configure environment to make ACME video EJB sample
to run?
Thanks,
Sean
Sean (guest) wrote:
: An error occurs while stub compilation.
: Tested using both 1.1.8 and 1.2.2 versions.
: How can I solve this?
: Thanks,
: Sean
: AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
: Copyright (c) 1997-1998 Borland International. All Rights
: Reserved.
: Copyright (c) 1997-1999 Oracle Corporation. All Rights
Reserved.
: Reading Deployment Descriptor...done
: Verifying Deployment Descriptor...done
: Gathering users...done
: Generating Comm
: Stubs.............................................done
: Compiling Stubs...Errors compiling the communication stubs
: AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
: Copyright (c) 1997-1998 Borland International. All Rights
: Reserved.
: Copyright (c) 1997-1999 Oracle Corporation. All Rights
Reserved.
: java.lang.NoClassDefFoundError: java/util/ArrayList
: at sun.tools.util.CommandLine.parse
: (CommandLine.java:42)
: at sun.tools.javac.Main.compile(Compiled Code)
: at sun.tools.javac.Main.main(Compiled Code)
: *** Errors occurred while deploying the EJB to JServer ***
: *** Deployment completed ***
null -
JDeveloper3.0 and JavaWebServer2.0
I'm running Sun's brand new Java Web Server 2.0 (demo version), which is newer than the one available when Oracle released JDeveloper 3.0. I do this because version 1.1.3 is no longer available for download at Sun (or javasoft). Trying to run the ACME Video Store sample, WEB application, but I'm having a problem... It may have to do with the versions I'm running, or something else... Let me try the following two questions:
Question1: Anybody out there been running the ACME Video Store sample, WEB application, successfully with JDeveloper 3.0 and Java Web Server 2.0?
Question 2: According to JDeveloper 3.0 help on "Deploying the Servlet", the file <jdeveloper>\lib\jsdk.jar, among others, should be copied to "acmedir". However, that file - jsdk.jar - is nowhere to be found under any of my Oracle directories. Is this file important/where to get?
nullHere is the complete list of files I have in my application path directory (besides my own EJB jars, etc...). I don't have servlet.jar anywhere in my JWS 2.0 path (at least that I'm aware of and was responsible for setting up...)
aurora_client.jar
classes111.zip
javax_ejb.zip
jdev-rt.zip
jndi.jar
vbj30ssl.jar
vbjapp.jar
vbjorb.jar
vbjtools.jar
Also, here is the complete contents of the batch file I use to start JWS 2.0 to enable it for my environment. All of the files above are located in the e:\cst\application dir that is mentioned in the first line below. (Again minus my app's jars)
set cstdir=e:\cst\application
set JDK_HOME=
set JAVA_HOME=
set classpath=
set path=
set classpath=%CSTDIR%\aurora_client.jar;%CSTDIR%\javax_ejb.zip;%CSTDIR%\jndi.jar;%CSTDIR%\vbjorb.jar;%CSTDIR%\vbjapp.jar;%CSTDIR%\vbjtools.jar;%CSTDIR%\vbj30ssl.jar;%CSTDIR%\classes11 1.zip;%CSTDIR%\jdev-rt.zip
e:\javawebserver2.0\bin\httpd -verbose
My first guess would be that you've mispelled one of the references in your batch file or something similar. Better double check your way through the whole setup process again as it's not exactly superbly well documented. :-\ It does work, though.
Hope this helps,
Will
PS: Let me know if it works for you...
null -
For each new row displayed on the screen in an infobus
architecture, I need to derive calculated fields to present in
the form along with the database fields.
I'm implementing a change listener on the rowsetinfo and
overriding the rowsetpopulated method. The overriding method
tries to determine the value of a column called PART_NO, as
follows:
ScrollableRowsetAccess rsa =
(ScrollableRowsetAccess)e.getDataItem();
ImmediateAccess nv =
(ImmediateAccess)rsa.getColumnItem("PART_NO");
String partNo = nv.getValueAsString();
Problem is, as the user scrolls from record to record in the
rowset, the partNo value always seems to be one behind. That
is, the value of partNo pulled for record 2 is actually that for
record 1.
Could someone please offer some guidance as to what is going
on? I've been researching this for a day, and I'm losing sleep
over it. Thank you very much.
nullYou need to use the ScrollableRowsetAccess.absolute method to set
the column correctly. For an example, see the Acme Video sample
application's ViewRentalsForm class ->
ACME_COPYInfoIter_rowsetPopulated method.
- PSW
Matt (guest) wrote:
: For each new row displayed on the screen in an infobus
: architecture, I need to derive calculated fields to present in
: the form along with the database fields.
: I'm implementing a change listener on the rowsetinfo and
: overriding the rowsetpopulated method. The overriding method
: tries to determine the value of a column called PART_NO, as
: follows:
: ScrollableRowsetAccess rsa =
: (ScrollableRowsetAccess)e.getDataItem();
: ImmediateAccess nv =
: (ImmediateAccess)rsa.getColumnItem("PART_NO");
: String partNo = nv.getValueAsString();
: Problem is, as the user scrolls from record to record in the
: rowset, the partNo value always seems to be one behind. That
: is, the value of partNo pulled for record 2 is actually that
for
: record 1.
: Could someone please offer some guidance as to what is going
: on? I've been researching this for a day, and I'm losing sleep
: over it. Thank you very much.
Oracle Technology Network
http://technet.oracle.com
null -
Calling another servlet from a servlet
I'm working on a servlet and would like to know how to
call another servlet, by clicking on a form button
or a hyperlink that was generated from the first servlet,
is it only possible if the second servlet is called
in an shtml page? Can you please give me an example
of how to do this not using shtml pages?
(I'm working with JDeveloper 2.0)
When will the book be out for JDeveloper 2.0?
We're also having problems deploying the servlet
to the Java Web Server (1.1.3)
It seems to have a problem connecting to the database.
We get the first page of the servlet but the
second page is generated from the doPost()
and connects to the database using oracle JDBC thin
gives a http 500 internal server error ,
and we followed the instructions from JDeveloper
can the problem be caused from the connection string that
I used in the servlet:
Class.forName("oracle.jdbc.driver.OracleDriver");
DriverManager.registerDriver(
new oracle.jdbc.driver.OracleDriver());
con = DriverManager.getConnection(
"jdbc:oracle:thin:@(description=(address=
(host=10.10.10.53)(protocol=tcp)(port=1521))
(connect_data=(sid=OR8A)))",
"im_dev","im_dev");
or the configuration of the web server?
(web server: Solaris 2.7 running on Intel)
nullHi
The sample acme video demo in JDeveloper does something similar.
It has main Servlet "WebAppServlet.java" which overides the
doPost and doGet methods and this methods calls someother java
classes do perform some specific business logic which return a
html page in a String format to "WebAppServlet.java".
Open the samples directory in JDEveloper 2.0 with WebApp_81.jws
to look at the source code.
Steps to run the sample are included in the help system.
regards
argyro (guest) wrote:
: I'm working on a servlet and would like to know how to
: call another servlet, by clicking on a form button
: or a hyperlink that was generated from the first servlet,
: is it only possible if the second servlet is called
: in an shtml page? Can you please give me an example
: of how to do this not using shtml pages?
: (I'm working with JDeveloper 2.0)
: When will the book be out for JDeveloper 2.0?
: We're also having problems deploying the servlet
: to the Java Web Server (1.1.3)
: It seems to have a problem connecting to the database.
: We get the first page of the servlet but the
: second page is generated from the doPost()
: and connects to the database using oracle JDBC thin
: gives a http 500 internal server error ,
: and we followed the instructions from JDeveloper
: can the problem be caused from the connection string that
: I used in the servlet:
: Class.forName("oracle.jdbc.driver.OracleDriver");
: DriverManager.registerDriver(
: new oracle.jdbc.driver.OracleDriver());
: con = DriverManager.getConnection(
: "jdbc:oracle:thin:@(description=(address=
: (host=10.10.10.53)(protocol=tcp)(port=1521))
: (connect_data=(sid=OR8A)))",
: "im_dev","im_dev");
: or the configuration of the web server?
: (web server: Solaris 2.7 running on Intel)
null -
System: Windows NT4 SP6, JDEV 3.0, OAS 4.0.7, Oracle 8.1.5 EE
I've attempting to run the ACME Video sample web application for
Oracle 8i using JDEV 3.0. Everything goes well until the point
of Deploying the SQLJ Files Used by the Rentals EJB. I've
followed the directions religiously, but I get the following
error. What am I doing wrong? Much appreciation for any
information that you super gurus can give.
Sherman
*** Executing deployment profile C:\Program
Files\Oracle\JDeveloper 3.0
\samples\acmevideo\ejb\server\SQLJ.prf ***
*** Generating archive file C:\Program Files\Oracle\JDeveloper
3.0\myclasses\SQLJ_Untitled1.jar ***
Compiling the project...done
Validating the profile...done
Initializing deployment...done
Scanning project files...done
Generating classpath dependencies...done
Generating archive entries table...done
*** Archive generation completed ***
*** Loading archive C:\Program Files\Oracle\JDeveloper 3.0
\myclasses\SQLJ_Untitled1.jar into JServer using JDBC ***
Load Java argument list:
"C:\Program Files\Oracle\JDeveloper 3.0\java\bin\javaw"
"-DPATH=C:\Program Files\Oracle\JDeveloper 3.0\bin;C:\Program
Files\Oracle\JDeveloper 3.0\java\bin"
-classpath
"C:\Program Files\Oracle\JDeveloper 3.0
\java\lib\classes.zip;C:\Program Files\Oracle\JDeveloper 3.0
\lib\jdeveloper.zip;C:\Program Files\Oracle\JDeveloper 3.0
\myclasses;C:\Program Files\Oracle\JDeveloper 3.0
\sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper 3.0
\jdbc\lib\oracle8.1.5\classes111.zip;C:\Program
Files\Oracle\JDeveloper 3.0\lib\javax_ejb.zip;C:\Program
Files\Oracle\JDeveloper 3.0
\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper
3.0\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.0
\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.0
\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper 3.0
\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.0
\java\lib\classes.zip;C:\Program Files\Oracle\JDeveloper 3.0
\aurora\lib\aurora_client.jar;C:\Program Files\Oracle\JDeveloper
3.0\aurora\lib\vbjorb.jar;C:\Program Files\Oracle\JDeveloper 3.0
\aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper 3.0
\aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper
.0\aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper 3.0
\jdbc\lib\oracle8.1.5\classes111.zip"
oracle.aurora.server.tools.LoadJavaMain
-user
acme/acme@orant_lang:1521:ntdev81
-thin
-verbose
-resolve
"C:\Program Files\Oracle\JDeveloper 3.0
\myclasses\SQLJ_Untitled1.jar"
AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
Copyright (c) 1997-1998 Borland International. All Rights
Reserved.
Copyright (c) 1997-1999 Oracle Corporation. All Rights Reserved.
interrupted by user
loadjava: 1 errors
*** Errors occurred while loading the archive into JServer ***
*** Deployment completed ***
nullSherman,
I'm not seeing the same behavior when I try it here. You can use
the command line utility loadjava (which is basically all the
JDeveloper Deployment Wizard is doing as you can see from the
output).
For example:
loadjava -user acme/acme@orant_lang:1521:ntdev81 -thin -verbose
-resolve "C:\Program Files\Oracle\JDeveloper3.0
\myclasses\SQLJ_Untitled1.jar"
The Oracle8i Java Stored Procedures Guide contains the details
and arguments list. There is a loadjava.bat file in your
JDEV_Home\bin directory.
Hope this helps,
Laura
Sherman Spencer (guest) wrote:
: Thanks for your response. Yes this happens consistently. I've
: tried using Project|Deploy|SQLJ.prf to deploy the SQLJ Files
: several times to no avail. I get the same error. Is there a
: workaround or another method of accomplishing this.
: JDev Team (guest) wrote:
: : Sherman,
: : Everything looks OK at first glance. The 'interupted by
user'
: : error usually occurs if the 'Cancel' button was hit (perhaps
: : inadvertently) on the deployment messages dialog.
: : This is a modal dialog, and the default context is that
Cancel
: : button, so if you hit the Enter key it may have triggered the
: : interuption.
: : Does this happen consistently?
: : Laura
: : Sherman (guest) wrote:
: : : System: Windows NT4 SP6, JDEV 3.0, OAS 4.0.7, Oracle 8.1.5
EE
: : : I've attempting to run the ACME Video sample web
application
: : for
: : : Oracle 8i using JDEV 3.0. Everything goes well until the
: point
: : : of Deploying the SQLJ Files Used by the Rentals EJB. I've
: : : followed the directions religiously, but I get the
following
: : : error. What am I doing wrong? Much appreciation for any
: : : information that you super gurus can give.
: : : Sherman
: : : *** Executing deployment profile C:\Program
: : : Files\Oracle\JDeveloper 3.0
: : : \samples\acmevideo\ejb\server\SQLJ.prf ***
: : : *** Generating archive file C:\Program
: Files\Oracle\JDeveloper
: : : 3.0\myclasses\SQLJ_Untitled1.jar ***
: : : Compiling the project...done
: : : Validating the profile...done
: : : Initializing deployment...done
: : : Scanning project files...done
: : : Generating classpath dependencies...done
: : : Generating archive entries table...done
: : : *** Archive generation completed ***
: : : *** Loading archive C:\Program Files\Oracle\JDeveloper 3.0
: : : \myclasses\SQLJ_Untitled1.jar into JServer using JDBC ***
: : : Load Java argument list:
: : : "C:\Program Files\Oracle\JDeveloper 3.0\java\bin\javaw"
: : : "-DPATH=C:\Program Files\Oracle\JDeveloper 3.0
: \bin;C:\Program
: : : Files\Oracle\JDeveloper 3.0\java\bin"
: : : -classpath
: : : "C:\Program Files\Oracle\JDeveloper 3.0
: : : \java\lib\classes.zip;C:\Program Files\Oracle\JDeveloper
3.0
: : : \lib\jdeveloper.zip;C:\Program Files\Oracle\JDeveloper 3.0
: : : \myclasses;C:\Program Files\Oracle\JDeveloper 3.0
: : : \sqlj\lib\runtime.zip;C:\Program Files\Oracle\JDeveloper
3.0
: : : \jdbc\lib\oracle8.1.5\classes111.zip;C:\Program
: : : Files\Oracle\JDeveloper 3.0\lib\javax_ejb.zip;C:\Program
: : : Files\Oracle\JDeveloper 3.0
: : : \aurora\lib\aurora_client.jar;C:\Program
: : Files\Oracle\JDeveloper
: : : 3.0\aurora\lib\vbjorb.jar;C:\Program
Files\Oracle\JDeveloper
: : 3.0
: : : \aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper
3.0
: : : \aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper
: 3.0
: : : \aurora\lib\vbj30ssl.jar;C:\Program Files\Oracle\JDeveloper
: 3.0
: : : \java\lib\classes.zip;C:\Program Files\Oracle\JDeveloper
3.0
: : : \aurora\lib\aurora_client.jar;C:\Program
: : Files\Oracle\JDeveloper
: : : 3.0\aurora\lib\vbjorb.jar;C:\Program
Files\Oracle\JDeveloper
: : 3.0
: : : \aurora\lib\vbjapp.jar;C:\Program Files\Oracle\JDeveloper
3.0
: : : \aurora\lib\vbjtools.jar;C:\Program Files\Oracle\JDeveloper
: : : .0\aurora\lib\vbj30ssl.jar;C:\Program
: Files\Oracle\JDeveloper
: : 3.0
: : : \jdbc\lib\oracle8.1.5\classes111.zip"
: : : oracle.aurora.server.tools.LoadJavaMain
: : : -user
: : : acme/acme@orant_lang:1521:ntdev81
: : : -thin
: : : -verbose
: : : -resolve
: : : "C:\Program Files\Oracle\JDeveloper 3.0
: : : \myclasses\SQLJ_Untitled1.jar"
: : : AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
: : : Copyright (c) 1997-1998 Borland International. All Rights
: : : Reserved.
: : : Copyright (c) 1997-1999 Oracle Corporation. All Rights
: : Reserved.
: : : interrupted by user
: : : loadjava: 1 errors
: : : *** Errors occurred while loading the archive into JServer
: : : *** Deployment completed ***
null
Maybe you are looking for
-
How to find the user entered value is Integer or not?
hi, i want to find, whether the user entered value is Integer or not. If it is Integer, i wanna continue the program. otherwise send an error message. i tried to find for function in API. But i couldn't. can somebody help me with sample code. very ur
-
Embedded pdf file in MS Excel cannot be open in Surface RT.
Hi, I have a problem opening the embedded pdf file in my MS Excel in my Surface RT. When I clicked on the pdf file, it shows "Cannot start the source application for this object". I have the Adobe Reader Touch installed in my Surface RT. Does anyone
-
Hello Team , I am looking for the correct SAP business practice of MRP procurement process for existing setup. Current setup : Demand is based on the sales / market demand based on which material is planned . Sales order / Production order are posted
-
Order based to Period based switch
Hello CO Gurus, I'm a PP consultant, and one of my clients is working with Process orders and Order based cost controlling. For a number of reasons they would like to switch to period based cost controlling with process orders. I'd like to learn from
-
Adobe Update Manager Disabled using Packager
Hi, I installed CC Apps by use of a package created with Creative Cloud Packager. I had the "Adobe Update Manager" set to Disabled. Also, "Disable Adobe Creative Cloud Desktop Application" was checked. Now that the apps are installed, is it possible