Re: OC4J and VisualWeb
jbethune <jbethune <at> tannerycreeksystems.com>
2007-03-01 02:34:59 GMT
Hi Michal,
Thank you very much, that definitely put me on the right path (although now
I'm getting a connection error when I deploy talking about "'Example
Connection Pool_default'", but that's a different problem altogether).
For anyone curious, here's how I got the visual editor to work:
*I downloaded the ADF Faces stand alone from Oracle
(adf-faces-10_1_3_0_4.zip)
*I then looked inside their example WAR (adf-faces-demo.war) and traversed
to their WEB-INF/lib directory.
In there you'll find all the libraries you'll need (including the JSF base
implementation that the installation instructions for the ADF faces
requests, and the jstl libraries that Michal talked about).
*Copy all those libraries to your projects WEB-INF/lib folder
(adf-faces-api-SNAPSHOT.jar, adf-faces-impl-SNAPSHOT.jar,
adfshare-3549S.jar, commons-beanutils-1.6.jar, commons-collections-2.1.jar,
commons-digester-1.5.jar, commons-logging-1.0.3.jar, jsf-api-1.1_01.jar,
jsf-impl-1.1_01.jar, jstl.jar)
*Close all your open JSP files (if I didn't do this for some reason I kept
gettting errors).
*Do a clean and build
*Voila should work
-jeff
Michal Mocnak wrote:
>
> Hi Jeff,
>
> just for clarification. OC4j 10g is java ee 5 compliant (supports ejb3,
> jpa and so on) and there is no problem with these projects.
>
> Actually your problem with Visual Web Project (with JSF) is simple. OC4J
> doesn't contain JSF and JSTL libraries and due to you don't have these
> libraries on classpath -> there is a few ways : include these libraries
> into project and package them or include all these libraries on a server
> classapth -> <ORACLE_HOME>/j2ee/home/applib
>
> Thanks
>
> -mcihal
>
> jbethune wrote:
>> Hi everyone,
>>
>> I'm new to the Application Server model of programming, and for the first
>> time decided to give the Visual Web and Enterprise Packs a go.
>> Everything
>> is pretty straightforward using the "Sun Java System Application Server"
>> as
>> the J2EE server, but unfortunately I need to deploy to an Oracle 10g
>> server.
>> So I picked up the OC4J module, and attempted to create a Visual Web
>> project
>> based on that. This doesn't work giving me the following exception:
>>
>> Page1.java:16:19: package javax.faces does not exist
>> Page1.java:37:26: cannot access javax.faces.component.UIComponentBase
>> file javax\faces\component\UIComponentBase.class not found
>> etc...
>>
>> Now is this because the OC4J doesn't fully support Java EE 5, and instead
>> supports J2EE 1.4 with some stuff from 5 thrown in? If so, is there
>> anyway
>> around this? I'd really like to use the VisualWeb editor and not use
>> Oracles Development suite, as all our coding for the past 3 years has
>> been
>> using Netbeans.
>>
>> The interesting thing, is the "New Visual Web Application" Wizard
>> autodetects the Java EE Version to be 5 even though technically it's not
>> (I
>> think).
>>
>> Thanks, any help would be much appreciated.
>>
>> -Jeff
>>
>>
>
>
--
--
View this message in context: http://www.nabble.com/OC4J-and-VisualWeb-tf3307071.html#a9242753
Sent from the Netbeans - Users mailing list archive at Nabble.com.