Sample Login page
anyone can show me sample login page, when button is click on the login, it will bring you to another sample.
i have tried many different ways like swapping panel...but cant work.
DomMense_Is_SlimMense wrote:
DrLaszloJamf wrote:
Okay. Who mentioned tabbed panes?I think it was gtRpr.
Please explain why not use Tabbed panes?
I mean from personal experiance,
when I create a swing app it usually has more than 1 page
now If I am already using tabbed panes what is the harm in
adding a login page?
I can understand otherwise.As you like.
Similar Messages
-
Custom Error message in Login Page
Hi,
I am using MVC framework for my project. I want to display custom error messages to the user in the Login page(JSP).
For eg: invalid password, password has been expired etc. How do I pass these messages from Java to my login page & display it?This is a sample action class for login page in struts : -
package xxx;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import LoginForm.java;
public class Action extends org.apache.struts.action.Action
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
ActionErrors errors = new ActionErrors();
ActionForward forward = new ActionForward(); // return value
String username;
String password;
try {
LoginForm lf = new LoginForm;
username =lf.getUserName();
password = lf.getPassword();
if( username== null)
forward=mapping.getInputForward();
if( (username == "admin" ) && ( password="admin"))
// do something here
} catch (Exception e) {
// Report the error using the appropriate name and ID.
//Errors will be caught here.
errors.add("name", new ActionError("id"));
// If a message is required, save the specified key(s)
// into the request for use by the <struts:errors> tag.
if (!errors.isEmpty()) {
saveErrors(request, errors);
// Forward control to the appropriate 'failure' URI (change name as desired)
// forward = mapping.findForward("failure");
} else {
// Forward control to the appropriate 'sucuess' URI (change name as desired)
forward = mapping.findForward("success");
// Finish with
return (forward);
You need to have LoginForm.java as Model and Login.jsp as View . Action.java will be your controller. -
Can Partner Application Access to Login Page's Information ?
Hi.
I wanna write a Partner Application to Access User's Information(UserName, subscriberName or Company Name)
This information represented by user In login Page.
I am not specialist in Oracle Sigle Sign-On ,for this reason Please Let me have a Sample .
Thanks.Please see the Single Sign-On Application Developer's Guide. If you write a partner application, this information that you mentioned is passed to you in your success URL.
-
Getting AADSTS50020 error on microsoft login page when using Azure Active Directory Authentication
We have implemented Azure Ad single sign on using auto generated code from Visual studio 2013 with organization account authentication and its working fine.
The problem is when user is logged in in azure management portal with his live account and in other tab he try to open our app, then he directly gets below error on Microsoft login page.
Additional technical information:
Correlation ID: 78e13474-6f92-40ec-b463-91e36a6dae84
Timestamp: 2015-04-14 12:27:20Z
AADSTS50020:
User account '[email protected]' from external
identity provider 'live.com' is not supported for application
'https://xxxxx.onmicrosoft.com/xxxx'. The account needs to
be added as an external user in the tenant. Please sign out and sign in
again with an Azure Active Directory user account.
It works fine if I log out from management portal. Is there any way to resolve this issue without forcing user to log out from live account(management portal)?I assume you created a web application using VS2013 which uses the WS-Federation protocol.
The behavior that you are seeing is expected Single-sign-on because you are logged in using the live account in the management portal.
For WS-Federation, there is no current way for a caller to specify they want to force a fresh login, so the behavior is always the equivalent of LoginBehavior.Normal.
The user will need to either sign-out or use an in-private session in the browse.
If you switch to openID connect(sample at
https://github.com/AzureADSamples/WebApp-OpenIDConnect-DotNet) and use the “prompt=login” query paramerter in the sign in request, this will force a fresh login. -
Browser error on APEX Login Page
Good morning,
Version Information:
- APEX 3.1.1
- Database 11.1.0.6.0
- Application Server: 10.1.3
I'm using the APACHE install on my APP server to connect to APEX.
When I connect to the APEX_ADMIN login page, after filling in the blanks, I get a browser error message, not an APEX error. The "caution" icon pops up on the status bar at the bottom of the browser window. When I look at the message, it says:
Line: 34
Char: 1
Error: Object expected
Code: 0
URL: http://<myservername>:7778/pls/apex/f?p=4550:10:7817059686490562
That URL, of course is the login page.
When I checked the status, the install completed successfully. I am listening on port 7778 mainly because those that came before me configured the app server's http.conf with 7778.
What am I missing?
Thanks,
Don.Thank you for your responses,
Yes, I'm pretty sure that my image alias is correct (see my DADS.CONF listing below).
I am NOT upgrading from 3.0, this is a new, clean install. I'm still checking other possible causes. Not sure where to go next.
# ============================================================================ # mod_plsql DAD Configuration File # ============================================================================ # 1. Please refer to dads.README for a description of this file # ============================================================================ # Note: This file should typically be included in your plsql.conf file with # the "include" directive. # Hint: You can look at some sample DADs in the dads.README file # ============================================================================
Alias /i/ "D:\oracle\AppServ\Apache\Apache\images/"
AddType text/xml xbl
AddType text/x-component htc
<Location /pls/apex>
Order deny,allow
AllowOverride None
PlsqlDocumentProcedure wwv_flow_file_mgr.process_download
PlsqlDocumentPath docs
PlsqlDatabaseConnectString <myservername>:portno:<servicename> ServiceNameFormat
PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8
PlsqlAuthenticationMode Basic
SetHandler pls_handler
PlsqlDocumentTablename wwv_flow_file_objects$
PlsqlDatabaseUsername APEX_PUBLIC_USER
PlsqlDefaultPage apex
PlsqlDatabasePassword <apexpassword>
PlsqlRequestValidationFunction wwv_flow_epg_include_modules.authorize
Allow from all
</Location> -
Problem creating login page in portal webapplication
Hi all,
I have been working with ADF for quite some years. Now, I have found webcenter portal on my path.
I'm telling you this is square one all over again.......trying to figure out why the most simple things do not work like they should. like this one
I'm on a project that has to build a new portal application. when you start it, you should be taken to a page where you have to log in.
This is the only public page in the portal app. after logging in, you will see the start page of the portal app. From here you can go to other pages through a menu tree on the left side of the page (=within the page template).
Anyway, I seem to no even get this to work........
I have made two pages. a loginPage and a landingPage. I know you get a login.jspx and a home.jspx for free, but I want to make my own since I had problems attaching my custom pagetemplate. Some other thing that doesn't work........
Anyway, I have made these two pages within the faces-config.xml I have tied the login_success action to my landingPage and the logout_success to the loginPage. I have also altered the login.html to redirect to my loginPage.jspx instead of the login.jspx On the loginPage Ideally, I would like to drag a login taskflow with a page-fragment where I have two inputfields and a button, which are connected to the o_w_s_l_LoginBackingBean. But that is for later, since it doesn't even work when I have put those two inputfields and button directly on my loginPage.jspx
I have tried several different configurations using both the pages.xml file and the jazn-data.xml, but to no avail.
What am I doing wrong? in the pages.xml, what should be the one with home as it's id? should both the loginPage and the landingPage be in there?
Even when I manage to get the loginPage first at startup, the button (who's action is pointing to the doLogin of the o_w_s_l_LoginBackingBean) does nothing. Also nothing in the logs.
Can anyone please tell me how I can get this to work?
thanks a lot in advance.....Hi fisherman,
custom login page can be created and it can be used in your custom template by simply creating your own login class :o_w_s_l_LoginBackingBean instead of using the default one.
otherwise the second type of solution is :
create a subform and write the following type of code in your jspx/jsff page.
<af:subform id="sub_id">
<af:panelFormLayout id="pt_pfl1" >
<af:panelGroupLayout id="pgl1" layout="vertical" >
<table>
<tr>
<td width="50%">
<af:activeOutputText value="username"
id="aot199"/>
</td>
</tr>
<tr>
<td width="50%">
<af:inputText id="pt_it1" simple="true"
value="#{o_w_s_l_LoginBackingBean.userName}"
/>
</td>
</tr><tr>
<td width="50%">
<af:activeOutputText value="password"
id="aot198"/>
</td>
</tr>
<tr>
<td width="50%">
<af:inputText id="pt_it2" simple="true"
value="#{o_w_s_l_LoginBackingBean.password}"
columns="30" secret="true"
/>
</td>
</tr>
</table>
</af:panelGroupLayout>
</af:panelFormLayout>
<af:spacer width="3" height="3" id="pt_s2"/>
<af:panelGroupLayout id="pt_pgl14" layout="horizontal" halign="end" >
<af:commandButton id="pt_logincb"
action="#{o_w_s_l_LoginBackingBean.doLogin}"
>
</af:commandButton>
this is a sample code,may be some errors are present.but it should work definity if you mention the login success page in faces-config.xml.
Hope ,it will help you.
Regards,
Hoque -
How to put a forwarder on BO Login page
Hello,
We only want our users to login through our customize login page and never through BO default login page. In some cases where session is getting expired, BO sends the user to the BO default login page automatically and this confuses the user.
http://bo.abc.com:8080/PlatformServices/service/app/logon.do?appKind=InfoView...
Is there a way to modify this logon.do page where we can put a forwarder in there that forwards any user coming to this page to our customize login page?
Thanks in advance.Hello,
Making changes to Infoview is not supported, so there will be very few people who might know how to do this. You might be able to find the correct page you want to edit by finding the various pages that make up the login page. Any changes you make to any Infoview pages might be overwritten if you apply a patch or service pack. That means you'll need to keep good notes on your edits.
You do have the ability to redirect to a specific page after logging off from Infoview, however I don't know what the behavior will be if the Enterprise session just times out and the log off button isn't actually clicked. To redirect to a specific page see KBase article (KBA) [1281092 - "How to redirect to a specified page after logging off from InfoView?|https://bosap-support.wdf.sap.corp/sap/support/notes/1281092]". You'll probably have to be logged into the [Service Marketplace|http://service.sap.com/support] (SMP) in order to view this article.
If you can't get to the KBA here's the information it covers:
+++++++++++++++++++++++++++++++++++++++++++++++
For BusinessObjects XIR2
Modify the web.xml file for the desktop.war.
1. Under the default Tomcat installation, the web.xml fileis located under:
<Tomcat install>\webapps\businessobjects\enterprise115\desktoplaunch\WEB-INF
2. Search for the following key: url.exit
3. Modify the param-value to contain the page you want to redirect to after logging off from InfoView
Sample excerpt of the web.xml showing the default value for the "url.exit":
<context-param>
<param-name>url.exit</param-name>
<param-value>../../default.htm</param-value>
</context-param>
Sample excerpt of the web.xml showing a modified value for the "url.exit":
<context-param>
<param-name>url.exit</param-name>
<param-value>http://www.google.com</param-value>
</context-param>
Restart Tomcat
For BusinessObjects XI 3.x
Modify the web.xml file for the InfoViewApp
1. Under the default Tomcat installation, the web.xml file is located under:
<Tomcat install>\webapps\InfoViewApp\WEB-INF
2. Search for the following key: url.exit
3. Modify the param-value to contain the page you want to redirect to after logging off from InfoView
Sample excerpt of the web.xml showing the default value for the "url.exit":
<context-param>
<param-name>url.exit</param-name>
<param-value/>
</context-param>
Sample excerpt of the web.xml showing a modified value for the "url.exit":
<context-param>
<param-name>url.exit</param-name>
<param-value>http://www.google.com</param-value>
</context-param>
+++++++++++++++++++++++++++++++++++++++++++++++++++++
Sincerely,
Dan Kelleher -
Help with Coldfusion 5 login page
Hi
I want to setup a login page for my company website. This is running in Coldfusion version 5(I know its very old version). I never worked with Coldfusion before. Is there any setting in Control panel that we can require user to login to view any of our contents? or do we have edit all the pages and redirect to a login page if thats a not registered user? Please advice me.
I cant upgrade this server to new version,because this project contract is finishing end of this year.
Thanks
AnanthYou want to search up the "Application.cfm" file.
In ColdFusion this file is automatically included at the beginning of all .cfm files requested from the same directory or any sub-directroy that does not have another Application.cfm file. It is a common place to put login logic and other code that needs to be executed with every ColdFusion request.
You will also want to know about the <cfapplication ...> tag that is used to name an application and provide access to applicaiton and session state scopes so that a login state can be maintained from request to request.
A great resource would be the ColdFusion documentation that has entire chapters compete with sample code on how to set up web site authentication:
Using the Application Framework
Application Security
http://www.adobe.com/livedocs/coldfusion/5.0/ -
How to make Login Page in ADF?
Hi,
Can anyone suggest me, how to make Login Page in ADF.
I am new on ADF, is any sample code or application is there than it will be helpful for me.
please reply its urgent.
Thanks,
Ramit MathurHI,
Jspx code
<af:panelFormLayout id="pfl1" binding="#{loginBean.mainForm}">
<f:facet name="footer"/>
<af:inputText label="Username" id="it1"
value="#{loginBean.username}"
binding="#{loginBean.usernameId}"
required="true"/>
<af:inputText label="Password" id="it2" secret="true"
value="#{loginBean.password}"
binding="#{loginBean.passwordId}"
required="true"/>
<af:spacer width="1px" height="20px" id="s3"/>
<af:panelGroupLayout id="pgl3">
<af:commandButton text="Submit" id="cb1"
action="#{loginBean.doLogin}"/>
<af:spacer width="85px" height="1px" id="s4"/>
<af:commandButton text="Cancel" id="cb2"
action="#{loginBean.clearFields}"/>
</af:panelGroupLayout>
</af:panelFormLayout>
BackingBean code
public String doLogin() {
String un = _username;
String pw = _password;
// byte[] pw = _password.getBytes();
FacesContext ctx = FacesContext.getCurrentInstance();
System.out.println("ctx" + ctx);
HttpServletRequest request =
(HttpServletRequest)ctx.getExternalContext().getRequest();
CallbackHandler handler = new SimpleCallbackHandler(un, pw);
System.out.println("Handler" + handler);
try {
Subject mySubject = Authentication.login(handler);
System.out.println("mySubject" + mySubject);
ServletAuthentication.runAs(mySubject, request);
ServletAuthentication.generateNewSessionID(request);
String loginUrl =
"/adfAuthentication?success_url=/faces" + ctx.getViewRoot().getViewId();
System.out.println("loginUrl---" + loginUrl);
HttpServletResponse response =
(HttpServletResponse)ctx.getExternalContext().getResponse();
System.out.println("response---" + response);
// loginUrl = "/adfAuthentication?success_url=/faces/WelcomeScreen1.jspx";
sendForward(request, response, loginUrl);
System.out.println("---" + response);
} catch (FailedLoginException fle) {
FacesMessage msg =
new FacesMessage(FacesMessage.SEVERITY_ERROR, "Incorrect Username or Password",
"An incorrect Username or Password" +
" was specified");
ctx.addMessage(null, msg);
} catch (LoginException le) {
reportUnexpectedLoginError("LoginException", le);
return null;
private void sendForward(HttpServletRequest request,
HttpServletResponse response, String forwardUrl) {
FacesContext ctx = FacesContext.getCurrentInstance();
System.out.println("sendForward--ctx--" + ctx);
RequestDispatcher dispatcher =
request.getRequestDispatcher(forwardUrl);
System.out.println("sendForward--dispatcher--" + dispatcher);
try {
dispatcher.forward(request, response);
} catch (ServletException se) {
reportUnexpectedLoginError("ServletException", se);
} catch (IOException ie) {
reportUnexpectedLoginError("IOException", ie);
ctx.responseComplete();
// 12.Implement a reportUnexpectedLoginError() method:
private void reportUnexpectedLoginError(String errType, Exception e) {
FacesMessage msg =
new FacesMessage(FacesMessage.SEVERITY_ERROR, "Unexpected error during login ",
"An incorrect Username or Password" +
" was specified");
FacesContext.getCurrentInstance().addMessage(null, msg);
e.printStackTrace();
} -
Can anyone help regarding the Admin Login page and Normal User Page.
Hi Friends,
I have worked on normal login page it has been worked well. But now i have to create the Admin login page. That means, I have written the code in the following way.
public String userLogin_action() {
// TODO: Process the button click action. Return value is a navigation
// case name where null will return to the same page.
com.sun.sql.rowset.CachedRowSetXImpl crs = new com.sun.sql.rowset.CachedRowSetXImpl();
String Name = getUserName().getText().toString();
String password = getUserPwd().getText().toString();
try {
crs.setDataSourceName("java:comp/env/jdbc/Employee");
crs.setCommand("SELECT * FROM srni.UserTable");
crs.setTableName("UserTable");
crs.execute();
crs.beforeFirst();
while(crs.next()){
info("Cursor is been moving");
boolean ok = crs.getBoolean("Admin");
info("Value of ok:" + ok);
String Username = (String) crs.getObject("UserName");
info("Usernames are:" + Username + Name);
if(Username.equals(Name)&&(ok)){
info("Login Successfull");
java.util.Date Date = new java.util.Date();
info(" Admin Logged on :" + Date);
return "toUserPage";
info("Login Failed or Admin doesn't exist");
catch (Exception e) {
error("Login Failed : " + e.getMessage());
} finally {
crs.close();
return null;
}You can see there that i have used the boolean type of value for verifying wheter the user is admin or not. If the admin type of column in database is true then it must allow the admin to certain page. Otherwise it must not redirect. So i have used this logic. When i am checking it is showing everything true,but it is not redirecting and it is saying that login failed. Please try the above code with a sample database table and verify it. You can see the output like this.
Cursor is been moving
Value of ok:true
Usernames are: srinu srinu //here it must not go to next cursor,because srinu has been identified, but it is not behaving like that.
Cursor is been moving
Value of ok:false
Usernames are: Chandu srinu
Cursor is been moving
Value of ok:false
Usernames are: kirank srinu
Login Failed or Admin doesn't exist The above output describes that it is moving the cursor from first row to the last row and checking all the usernames i n each row with the given username, and it is also checking wheter it is admin or not. Currently i have three rows so it is moving three times. It is retreiving every value correctly but in comparing it is not comparing. What to do.
Please help me out from this problem.
Thanking You in Advance.The buttons are all created using the same library object (but MC), except for the code you have in the revised file does not call on that for the con button.
You have it calling on something with a linkage name of "con", which a quick check tells me doesn't exist--so it is undefined in the code when you try to use it. I found this by using trace(newConBut._x); after its _x value was assigned, as I mentioned you should try. So the first thing you want to do is change the following line from...
var newConBut = _root.attachMovie("con", "conbut", _root.getNextHighestDepth());
To
var newConBut = _root.attachMovie("but", "conbut", _root.getNextHighestDepth());
so that it uses the but MC that serves that purpose in the library. Then you want to correct the _x assignment of the buttons to what I think you had earlier...
newConBut._x = 650-newConBut._width;
newRecBut._x = newConBut._x-newRecBut._width;
Here is a picture of what those changes do (note, without the XML file I had to finagle things just to work, so the biutton labels aren't what they will be)... -
Running into Exception while Creating new Login Page for Security
Hi,
I am following ADF Developers Guide to create a new login page ,so that whenever a page is run , first it redirects to Login page first and on Button click it
goes to the Original page which was run.
This is my Login bean code for doLogin()
public String doLogin(){
String un = _username;
byte[] pw = _password.getBytes();
FacesContext ctx = FacesContext.getCurrentInstance();
HttpServletRequest request = (HttpServletRequest)ctx.getExternalContext().getRequest();
try {
CallbackHandler handler = new URLCallbackHandler(un, pw);
Subject mySubj = weblogic.security.services.Authentication.login(handler);
weblogic.servlet.security.ServletAuthentication.runAs(mySubj, request);
ServletAuthentication.generateNewSessionID(request);
//String loginUrl = "/adfAuthentication?success_url=/faces/viewactivityname";
//sendForward(loginUrl);
} catch (FailedLoginException fle) {
FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR,"Incorrect Username or Password","An incorrect Username or Password" +" was specified");
ctx.addMessage(null, msg);
setPassword(null);
} catch (LoginException le) {
reportUnexpectedLoginError("LoginException", le);
return null;
Now the Dev guide says that :: "Specifically, without specifying a view activity as the
redirect target, command components, such as the commandButton
component, will always return to the original page after login."
Hence I have commented out the code for the call to sendForward().
As soon as I press the button I am running into an error :: "javax.faces.el.EvaluationException: java.lang.NullPointerException"
]] Root cause of ServletException.
javax.faces.el.EvaluationException: java.lang.NullPointerException
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NullPointerException
at oracle.sample.view.LoginBean.doLogin(LoginBean.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
These are the steps which I followed ::
a) Created Managed bean class and registered it to adfc.config.xml
b) Created a Custom Login Page say Login.jspx and created a DataBound Page say EmpDetails.jspx
c) Made sure that My Login page is custom Login Page
d) Command Button has the Action Property set to LoginBean.doLogin
e) Configured security and has only one user, no roles and assigned the user to access the page
e) When I run EmpDetails.jspx , I am redirected to Login page as expected but as soon as I press
Login "CommandButton" it throws this error.
Any pointers.
Regards,
Nikhil MisraHi Puthanampatti,
In that ase what would be my sendForward() mthod look like.
Currently as per the Dev guide it is :
private void sendForward(String forwardUrl) {
FacesContext ctx = FacesContext.getCurrentInstance();
try {
ctx.getExternalContext().redirect(forwardUrl);
} catch (IOException ie) {
reportUnexpectedLoginError("IOException", ie);
ctx.responseComplete();
I understand tat there would be change in parameters like sendForward(HttpServletRequest request,HttpServletResponse response,String forwardUrl),
but how would the other parameters work.
Regards,
Nikhil Misra -
How to create login page using OAF
Hi,
I am using Jdeveloper 11.1.1.6.0
Plese give me Sample Code creating the log in page .
Thanks
RamHi,
here i am using the webcenter application using the adf faces need secured login page using the OAM.
Thanks
Ram -
Create login page using jsp, servlet & Oracle
hi,
i need the sample application for creating login page using jsp, servlet & Oracle,can you please post one sample application.
thanks
sonaSee
http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adfstrutsj2eesec.pdf
Frank -
Partner application configuration is missing error on SSO login page
We have APEX 3.1.2 setup as a partner application and an application within APEX setup to use SSO for authentication. Following a link to the APEX application redirects to the Single Sign-On page, as it should, but it also shows "Error: The partner application configuration is missing or expired." I type in my password and username, click the Login button, and (if I entered my username and password correctly, of course!) then the APEX application is shown. So, I cannot figure out why we're getting the no_papp_err error and I have not found any solutions to that issue on Metalink or anywhere else on the Internet. Any ideas? I'm concerned that we have a misconfiguration somewhere that is causing this error and will affect any other partner application we setup in the future.
We're on Oracle Portal 10.1.4, SSO 10.1.2, and SSL is setup on both infra and mid tiers.Did you try checking the partner application entries on the SSO-login server page?
please login as orcladmin or some other user with membership in, i beleive, iasadmins group. verify that for this partner application, what you see here corresponds to the application URL. it looks like your login page call may have issues. so check for login url too.
also check the ORASSO.WWSSO_LS_CONFIGURATION_INFO$ for entries corresponding to Apex application. -
I have a 10.1.3 ADF application that runs well on Web Sphere and OC4J. I'm trying to run it on JBoss EAP 6.0.1. The ear file was deployed successfully to JBOSS and according to ADF logging the connection to Oracle database is established.
But when I try to load the application login page, I obtain the following exception
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/cv].[Faces Servlet]] (http-/0.0.0.0:8080-1) Servlet.service() for servlet Faces Servlet threw exception: oracle.jbo.common.ampool.ApplicationPoolException:
JBO-30003: The application pool (com.claimvantage.adf.root.Oracle) failed to checkout an application module due to the following exception:
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002) [bc4jct.jar:]
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793) [bc4jct.jar:]
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453) [bc4jct.jar:]
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:233) [adfmweb.jar:]
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424) [bc4jct.jar:]
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419) [bc4jct.jar:]
at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1536) [adfm.jar:]
at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1396) [adfm.jar:]
at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:99) [adfm.jar:]
at oracle.adf.model.BindingContext.get(BindingContext.java:457) [adfm.jar:]
at oracle.adf.model.BindingContext.findDataControl(BindingContext.java:308) [adfm.jar:]
at com.claimvantage.web.bean.jsf.JhsPageLifecycle.getMessageHolder(JhsPageLifecycle.java:220) [cv-model.jar:]
at com.claimvantage.web.bean.jsf.JhsPageLifecycle.reportErrors(JhsPageLifecycle.java:203) [cv-model.jar:]
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareRender(PageLifecycleImpl.java:548) [adf-controller.jar:]
at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareRender(FacesPageLifecycle.java:99) [adf-controller.jar:]
at oracle.jheadstart.controller.jsf.lifecycle.JhsPageLifecycle.prepareRender(JhsPageLifecycle.java:1080) [jhsadfrt-10.1.3.jar:]
at oracle.adf.controller.v2.lifecycle.Lifecycle$1.execute(Lifecycle.java:297) [adf-controller.jar:]
at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116) [adf-controller.jar:]
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:29) [adf-controller.jar:]
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$1.before(ADFPhaseListener.java:426) [adf-controller.jar:]
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.beforePhase(ADFPhaseListener.java:77) [adf-controller.jar:]
at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228) [jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99) [jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) [jboss-jsf-api_2.1_spec-2.0.7.Final-redhat-1.jar:2.0.7.Final-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.17.Final-redhat-1.jar:]
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162) [adfm.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.17.Final-redhat-1.jar:]
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228) [adf-faces-impl-no-oracle-desktop-xss.jar:10_1_3_2_0]
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197) [adf-faces-impl-no-oracle-desktop-xss.jar:10_1_3_2_0]
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123) [adf-faces-impl-no-oracle-desktop-xss.jar:10_1_3_2_0]
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103) [adf-faces-api.jar:10_1_3_2_0]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:622) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:560) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:488) [jbossweb-7.0.17.Final-redhat-1.jar:]
at com.claimvantage.web.sso.AuthenticationFilter.doFilter(AuthenticationFilter.java:272) [cv-model.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.17.Final-redhat-1.jar:]
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162) [adfm.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.17.Final-redhat-1.jar:]
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228) [adf-faces-impl-no-oracle-desktop-xss.jar:10_1_3_2_0]
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197) [adf-faces-impl-no-oracle-desktop-xss.jar:10_1_3_2_0]
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123) [adf-faces-impl-no-oracle-desktop-xss.jar:10_1_3_2_0]
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103) [adf-faces-api.jar:10_1_3_2_0]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:372) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679) [jbossweb-7.0.17.Final-redhat-1.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931) [jbossweb-7.0.17.Final-redhat-1.jar:]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_16]
Any help would be really appreciated.
ThanksThanks Frank for your answer.
I can't see where the exception states that DB connection was not established!
In the log, I have:
21:49:06,874 INFO [stdout] (http-/0.0.0.0:8080-1) [3011] Created root application module: 'com.claimvantage.adf.root.RootAppModule'
21:49:06,874 INFO [stdout] (http-/0.0.0.0:8080-1) [3012] Locale is: 'en_US'
21:49:06,874 INFO [stdout] (http-/0.0.0.0:8080-1) [3013] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
21:49:06,890 INFO [stdout] (http-/0.0.0.0:8080-1) [3014] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
21:49:06,890 INFO [stdout] (http-/0.0.0.0:8080-1) [3015] import java.util.*; // JBO-JDBC-INTERACT
21:49:06,890 INFO [stdout] (http-/0.0.0.0:8080-1) [3016] import java.sql.*; // JBO-JDBC-INTERACT
21:49:06,890 INFO [stdout] (http-/0.0.0.0:8080-1) [3017] import java.io.*; // JBO-JDBC-INTERACT
21:49:06,890 INFO [stdout] (http-/0.0.0.0:8080-1) [3018] public class JDBCCalls // JBO-JDBC-INTERACT
21:49:06,890 INFO [stdout] (http-/0.0.0.0:8080-1) [3019] { // JBO-JDBC-INTERACT
21:49:06,890 INFO [stdout] (http-/0.0.0.0:8080-1) [3020] public Connection conn = null; // JBO-JDBC-INTERACT
21:49:06,890 INFO [stdout] (http-/0.0.0.0:8080-1) [3021] public CallableStatement cStmt = null; // JBO-JDBC-INTERACT
21:49:06,890 INFO [stdout] (http-/0.0.0.0:8080-1) [3022] public PreparedStatement pStmt = null; // JBO-JDBC-INTERACT
21:49:06,890 INFO [stdout] (http-/0.0.0.0:8080-1) [3023] public Statement stmt = null; // JBO-JDBC-INTERACT
21:49:06,890 INFO [stdout] (http-/0.0.0.0:8080-1) [3024] public ResultSet rslt = null; // JBO-JDBC-INTERACT
21:49:06,890 INFO [stdout] (http-/0.0.0.0:8080-1) [3025] public static void main(String argv[]) // JBO-JDBC-INTERACT
21:49:06,890 INFO [stdout] (http-/0.0.0.0:8080-1) [3026] { // JBO-JDBC-INTERACT
21:49:06,890 INFO [stdout] (http-/0.0.0.0:8080-1) [3027] DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); // JBO-JDBC-INTERACT
21:49:06,890 INFO [stdout] (http-/0.0.0.0:8080-1) [3028] Creating a new pool resource
21:49:06,890 INFO [stdout] (http-/0.0.0.0:8080-1) [3029] Trying connection/2: url='jdbc:oracle:thin:@s1ora01s:1521:s1ora01a' ...
21:49:07,093 INFO [stdout] (http-/0.0.0.0:8080-1) [3030] conn = DriverManager.getConnection("jdbc:oracle:thin:@s1ora01s:1521:s1ora01a", /*properties*/); // JBO-JDBC-INTERACT
21:49:07,093 INFO [stdout] (http-/0.0.0.0:8080-1) [3031] conn.setAutoCommit(false); // JBO-JDBC-INTERACT
21:49:07,093 INFO [stdout] (http-/0.0.0.0:8080-1) [3032] Successfully logged in
21:49:07,093 INFO [stdout] (http-/0.0.0.0:8080-1) [3033] JDBCDriverVersion: 10.2.0.1.0XE
21:49:07,093 INFO [stdout] (http-/0.0.0.0:8080-1) [3034] DatabaseProductName: Oracle
21:49:07,093 INFO [stdout] (http-/0.0.0.0:8080-1) [3035] DatabaseProductVersion: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
Don't you think that it indicates that DB connection is well established?
MBen
Maybe you are looking for
-
Does anyone know the myRIO's ideal/max operating temperature? I'm working on launching a CubeSAT like object with different sensors, cameras, etc in it into the stratospere via HAB. At first I was going use a few Arduino's and RPI's, but then I remem
-
Mac OS X 10.5.8; PSE 6.0 I would like to create a layer that contains a gradient that shades from a color to transparent (not white). I can't see any way to do this since the gradient tool/color selector doesn't offer "none" as a color selection. R
-
How do I create a split track audio recording (2 outputs)?
I am trying to create a two-output track for use with IEM and house sound (right channel with some instrument tracks to house; left channel with click & choral voices to IEM only). I don't know how to assign the output to L or R in Express. I've seen
-
Restrict User to access/fetch data in back date
Hi All, As financial year is about to close, one of my clients has requirement that for all t-codes, user must be having restriction to access or fetch the data in back date or till 31st March, he won't be able to access it. So my ques is can we do i
-
Can't upgrade the new version of App World
Blackberry Curve 8520 To use the App World, I need to upgrade it, but I can't. I went to the site blackberry.com/appworld/support and blackberry.com/appworld/download but it didn't work. I want some apps and I can't download them without App World.