Running ADF Essentials in Tomcat

This blog was moved to :

http://blog-raphaufrj.rhcloud.com/running-adf-essentials-in-tomcat/

Comments:

Hi, thank you so much for sharing this. I'm really interested in deploying on Tomcat but i have got some questions.
My application uses ADF Security based on a Weblogic provider for users and roles. Do you know how to manage it with Tomcat, should I use internal users declarations directly in my application (So hard coded)?
I built it to have dynamic users such as CRUD over them directly in my application with a Manage Users page.
So how can I link adf security with tomcat?
Additionally, do you know how to create data sources, I mean, for the application to use it to connect to a database for data controls loading...
I managed to deploy the demo application as it doesn't use security.. But I could not deploy my own. Maybe because I end with a WAR + a jar and it can't load it..
Do you have any idea?

Regards

Posted by Stéphane Biehler on September 26, 2012 at 12:20 AM PDT #

Stéphane Biehler, thanks for reading!

Regarding ADF Security, pay attention in the ADF Essentials constraints. In fact, ADF Essentials is a subset of ADF Framework and ADF security is not supported in ADF Essentials. In an FAQ [PDF] http://www.oracle.com/technetwork/developer-tools/adf/overview/adfessentialsfaq-1837249.pdf, Oracle list included and excluded components (quote edited slightly for readability):

Oracle ADF Essentials includes the following Oracle ADF components: Faces Rich Client Components, Controller, Model and Business Components.

The following functionality is not included in Oracle ADF Essentials, and requires the full Oracle ADF version – Mobile, Desktop Integration, Security, Web service data control, remote taskflows Business Component’s Service Interfaces, Data Controls for BI, Essbase and BAM, Integration with Oracle Fusion Middleware features such as MDS, OPSS, OWSM, Enterprise Manager and MBeans, High Availability and Clustering.

However, as a Tomcat is a Java EE container, you might use JAAS for securing your application.

Regarding data sources, take a look on this link:
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html

Posted by Raphael on September 26, 2012 at 03:32 AM PDT #

Getting errors

NFO: Deploying web application archive C:\Tools\apache-tomcat-7.0.30\webapps\rc
f-dvt-demo.war
Sep 28, 2012 9:09:34 AM org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngin
e[Catalina].StandardHost[localhost].StandardContext[/rcf-dvt-demo]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)

at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:
1600)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NoClassDefFoundError: javax/faces/FacesException

Posted by ron on September 28, 2012 at 09:16 AM PDT #

Have you put these jar's in TOMCAT_HOME/lib ?

* jsf-api.jar
• jsf-impl.jar
• glassfish.jstl_1.2.0.1.jar

Posted by Raphael Rodrigues on September 28, 2012 at 10:17 AM PDT #

Have you done this in Glassfish? I followed your step but causing my glassfish won't even loaded. Thanks.
[#|2012-10-18T11:55:23.401+0800|SEVERE|glassfish3.1.2|org.apache.catalina.core.ContainerBase|_ThreadID=20;_ThreadName=Thread-3;|PWC1415: Error stopping container StandardEngine[glassfish-web].StandardHost[server].StandardContext[]
org.apache.catalina.LifecycleException: PWC1644: Loader has not yet been started
at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:717)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5659)
at com.sun.enterprise.web.WebModule.stop(WebModule.java:527)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1239)
at com.sun.enterprise.web.VirtualServer.stop(VirtualServer.java:2365)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1239)
at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:534)

Posted by guest on October 17, 2012 at 08:57 PM PDT #

This is just a ADF Faces deployment, A Bug with id 14631409 forces an exception
oracle.adf.share.platform.UnknownPlatformException: The specified application server platform {0} is not supported by JRF.
Looks like until this bug is fixed the entire technology stack of ADF cannot be deployed.
Please let me know if there is another way of deploying ADFBC with ADF, the entire ADF Technology Stack.

thanks,
SK

Posted by Shantha Kumar on October 20, 2012 at 08:26 PM PDT #

This is just a ADF Faces deployment, A Bug with id 14631409 forces an exception
oracle.adf.share.platform.UnknownPlatformException: The specified application server platform {0} is not supported by JRF.
Looks like until this bug is fixed the entire technology stack of ADF cannot be deployed.
Please let me know if there is another way of deploying ADFBC with ADF, the entire ADF Technology Stack.

thanks,
SK

Posted by Shantha Kumar on October 21, 2012 at 10:38 AM PDT #

great! the first instruction that eventually worked for me on tomcat server! i'm pretty grateful

thanks!

Posted by guest on October 26, 2012 at 03:48 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About


Raphael Rodrigues is a Consultant at Oracle Brazil with focus in Fusion Middleware stack.
Follow Raphael Rodrigues on Twitter

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today