Unable to run a login authentication program

hi,
i am a newbie in jsp. i have a project to complete, which involves a login code to be developed.
however, i just can't run this login program.
can anyone help me in finding any errors in this code, or is their any problem with tomcat ?
here is the code.
<html>
<body>
<%@ page import="java.sql.,java.io." %>
     <%      string a,b;
          string query;
          a=request.getParameter(uid);
          b=request.getParameter(pwd);
          try
          Class.form("java.jdbc.odbc.JdbcOdbcDriver");
          Connection cn=DriverManager.getConnection("jdbc:odbc:Driver={MicroSoft Access
Driver(*.mdb)};DBQ="user_login.mdb");
          Statement st1=cn.createStatement();
          query="select user_type
               from userLogin_master
               where user_name='a' and password='b' "
          ResultSet rs= st1.executeQuery(query);
          do while(rs.next())
               if (rs=="admin")
                    response.sendRedirect ("http://admin_main.html");
               elseif (rs=="client_admin")
                    response.sendRedirect ("http://client_admin_main.html");
               elseif (rs=="subclient_admin")
                    response.sendRedirect ("http://subclient_admin_main.html");
               elseif(rs=="normal_user")
                    response.sendRedirect ("http://user_main.html");
               else
                    System.out.println ("Invalid User :(Your username or password is
incorrect, please try again)";
          catch (exception e)
          st1.close();
          rs.close();
          cn.close();
     %>     
%>
     {code}{code}

Problem in your code syntax itself. try to understand the JDBC concepts.
http://java.sun.com/docs/books/tutorial/jdbc/overview/index.html
No problem in your tomcat.
See this jsp code:
<%@ page import="java.sql.Connection" %>
<%@ page import="java.sql.DriverManager" %>
<%@ page import="java.sql.ResultSet" %>
<%@ page import="java.sql.Statement" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>Simple jsp page</title></head>
<body>
<%
    String a, b;
    String query;
    a = request.getParameter("uid");
    b = request.getParameter("pwd");
    Statement st1 = null;
    Connection cn = null;
    ResultSet rs = null;
    try {
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
        String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=user_login.mdb;DriverID=22;READONLY=true";
        cn = DriverManager.getConnection(database, "username", "password");
        st1 = cn.createStatement();
        query = "select user_type from userLogin_master where user_name='" + a + "' and password='" + b + "'";
        rs = st1.executeQuery(query);
        rs.next();
        String uType = rs.getString("user_type");
        if (uType.equals("admin")) {
            response.sendRedirect("http://admin_main.html");
        } else if (uType.equals("client_admin")) {
            response.sendRedirect("http://client_admin_main.html");
        } else if (uType.equals("subclient_admin")) {
            response.sendRedirect("http://subclient_admin_main.html");
        } else if (uType.equals("normal_user")) {
            response.sendRedirect("http://user_main.html");
        } else {
            System.out.println("Invalid User :(Your username or password is incorrect, please try again)");
    } catch (Exception e) {
        //Handle exception
        System.out.println(e);
    } finally {
        try {
            rs.close();
            st1.close();           
            cn.close();
        } catch (Exception e) {
            //Handle exception
%>
</body>
</html>I recommend use this kind of validation logic in servlets.

Similar Messages

  • Unable to run authentication credential check function.

    Hi everybody,
    I have a employee table. In order to make authentication custom I use that table. The following is the function for it.
    CREATE OR REPLACE PACKAGE BODY PKG_CONTROLS
    AS
    FUNCTION CheckPassword (vUsername VARCHAR2,vPassword VARCHAR2)
    RETURN BOOLEAN
    IS
         v_pw_check varchar2(1);
    BEGIN   
        SELECT 'x'
        INTO v_pw_check
        FROM EMPLOYEE
        WHERE EMP_NAME = vUsername
        AND PASSWORD = vPassword;
        APEX_UTIL.SET_AUTHENTICATION_RESULT(0);
        RETURN true;   
    EXCEPTION WHEN no_data_found THEN
        APEX_UTIL.SET_AUTHENTICATION_RESULT(4);
        RETURN false;
    END CheckPassword;
    END PKG_CONTROLS;I also form an authentication schema and call the above function. But when I try to login the system with the data that I saved before, it gives the following error;
    ORA-06550: line 2, column 8: PLS-00306: wrong number or types of arguments in call to 'CHECKPASSWORD' ORA-06550: line 2, column 1: PL/SQL: Statement ignored
    Error     ERR-10460 Unable to run authentication credential check functionPlease help me why am I taking this error?
    Thanks

    Use
      RETURN PKG_CONTROLS.CheckPasswordfor yor authentication function and it will work. I think the default is two parameters and apex is parsing those two always. This is why explicit handling over of parameters will not work.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • After restarting my computer firefox is deleted for Windows, when i try to open firefox a message pops up saying the program has been moved from its original location and is unable to run How do I get Firefox on my computer permanently?

    After restarting my computer firefox is deleted for Windows, when i try to open firefox a message pops up saying the program has been moved from its original location and is unable to run How do I get Firefox on my computer permanently?

    I have tried everything I could to fix this, but some things require actually being on Firefox, and since I cannot get on, I cannot click on the tabs to do it. I have even totally uninstalled firefox, and that has not fixed this. I still get the same message that firefox is running and I need to close it or restart (which I have also tried dozens of times). I have removed things like Java, and that has not helped either. If I cannot even get on line in firefox, how can I fix this. I am not crazy about using internet explorer, but right now, it is my only option. I even tried to start in safe mode, and the same message box pops up!

  • Unable to Run C Program using Xcode "Stop Executable"

    Hi All
    Have been using the Terminal to compile programs built through Xcode but now want to use Xcode itself. Everytime I press build and go it builds successfully but won't run. I found a tutorial that mentioned if you are using Xcode 3.0 (I am) you can't use build and run, for output, you have to go to run and then push console.Ok that works. I then found someone with the same issue as mine everytime you want to build and run it appears with another window saying "Stop Executable"They were told to make sure they were building the .c file in a project and not building it from a text editor and then importing. I always build new projects.
    I want to interact with the program not just see its output? so my question is can I interact with programs i.e. User can enter data or strings or, do I have to build an interface to do this through Xcode. I Also forgotten to mention I found information through the forum that said to go to First Aid through utilities and repair file permissions, this has been done but still does not work. Many thanks for your time and as you can probably tell I am new to Xcode.

    To run your command-line program in Xcode, open the debugger console by choosing Run > Console. Run your program by choosing Run > Run or Build > Build and Run. You'll have to build and run if you haven't compiled the program before. Your program will run, and you will see output in the console. You interact with the program from the console.
    If you're not able to enter input in the console, choose Run > Sync with Debugger. If doing that doesn't work, you can run your program in the Terminal application by double-clicking the program from the Finder. It's less convenient than running it in Xcode, but you'll at least be able to run the program and interact with it.

  • I receive the error: Unable to load block component C:\Program Files\Hyperception\VABINF\KeyRcv.dll

    I have two Major issues with our Infinity Project computers,
    We have one entire lab that is getting this error... "Unable to load
    block component C:\Program Files\Hyperception\VABINF\KeyRcv.dll. 
    Please verify that the component exists and any dependencies it may
    have are satisfied."  It is also producing this error with
    NumEntry.dll.  Both files exist.  I am not sure what
    dependencies these files may have.  Ideas?
    We have several systems that are giving the following error on one of
    our labs... "You have exceeded the number of block functions allowed by
    VAB for Infinity; contact Hyperception regarding upgrades."  From
    what The professor here at UTA told me when I first took on this
    project, this was a problem that we had on the previous boards and that
    someone at Hyperception was able to help us resolve this problem.
    Can you help out with these issues?  The first one I need an answer today if possible. 
    Thanks,

    We have seen this type of problem on some computers (we do not know why as of yet).The problem with missing blocks is very likely being caused by file permissions, and can be seen when non-administrators are using VAB software. To resolve this: 1. login as ADMINISTRATOR 2. run the command line script from a DOS prompt as shown below: cacls "C:\Program FIles\Hyperception\VABINF" /T /E /G Everyone:F It will scroll through the name of every file in the provided directory, and all subdirectories. This should reset every file, and allow the USER to access all files in VAB software. This should correct the problem. Regards,Steve

  • Error while logging in  `ERR-10740 Unable to run custom post-auth process.'

    Hi there,
    I get the following error only with specific users; some can login, some can't. There is consistency is who receives this error.
    Error      ERR-10740 Unable to run custom post-auth process.
    the text of the "Post-Authentication Process" field in the my authentication schemes is as follows:
    begin
    bare_auth.session_init;
    end;
    The bare_auth package has no errors:
    select object_type, status
    from user_objects
    where object_name = 'BARE_AUTH';
    OBJECT_TYPE STATUS
    PACKAGE VALID
    PACKAGE BODY VALID
    2 rows selected
    The error message isn't very helpful and I can't see why Apex can't run it. Why is Apex unable to run the custom post-auth process?
    Robert

    Thats just the message when you get when there is an unhandled exception in your post-auth process. Apex wraps your code with its own and if you hit any error it just raises that error to the screen. If you were to go into your post-auth and do:
    declare
      v number;
    begin
      v:= 1/0;
    end;You can see that it raises the same error message to the screen instead of an excepted pl/sql exception about dividing by zero.

  • Unable to run app in Restricted access or Available to developers modes.

    Hi
    We want to run the application in either Restricted access or Available to developers modes. so that we can move the changes from our QA to production and test it. We are trying to login as ADMIN (having Workspace administrators access) user but unable to run the application. getting Access to this application is restricted to application developers, please try again later. and Access to this application is restricted, please try again later errors.
    Our apex version:3.0.1.00.08
    Changing application def attributes for Restricted access
    status = Restricted access
    Build status = Run and build application
    Restrict to comma separated user list (status must equal Restricted Access) : ADMIN
    Changing application def attributes for Available to developers
    status = Available to developers
    Build status = Run and build application
    Restrict to comma separated user list (status must equal Restricted Access) : (leaving blank)
    using sso authentication (do not know whether this impacts) for our application.
    Thanks for the help in advance.
    Ram

    Ram,
    1) not able change notification, application access restricted, Please try later(any way to put customized notification.?)I don't think so.
    2) Edit links are not available (any availability status to have these..?, other than available with edit links)No.
    You might want to implement this using authorization schemes. You would need a way to determine what privileges the authenticated user has then you could restrict access to the whole application or to certain pages based on the privilege.
    Scott

  • JAAS Error, Unable to locate a login configuration

    Maybe I can get some help with this one. Seem when I try to run my little login program as a jsp under Tomcat 4.1 I get the following
    java.lang.SecurityException: Unable to locate a login configuration
    First I modiied java.security like this:
    # Default login configuration file
    login.config.url.1==file:${java.home}/login.config
    That didn't work
    next I modified Tomcats setclasspath.bat like this
    set RUNJAVA="%JAVAHOME%\bin\java -Djava.security.auth.login.config=C:\j2sdk1.4.2_02\jre\login.config"
    That didn't work.
    Next I created a jar that contained the login.config and put it into MyApplication/WEB-INF/lib
    that didn't work.
    So I am wondering if anyone here can tell me how to get my little JAAS login program working as either a servlet or a jsp? Why can't it find my login.config file? Works fine when I run directly with java
    like this
    java LoginJaas
    thanks in advance
    jim

    thanks for the advice, I've tried that too. I think I have a permissions problem. Tomorrow I am going to bug our consultant, the one that got me into this mess in the first place. It has got to me a permissions of configuration problem cause everything works great, until I put the login logic into a servlet container.
    thanks again for the reply
    jim

  • How to set up local server to use a remote server for login authentication?

    Thank you in advance for any help you can offer.
    We are trying to set up a "sub-network" (dont' know if this is the right terminology) using a 10.4 Server OS, to manage a set of clients... the trick is that the client login/home directory information is on a different remote server, and shall remain there, for the most part.
    To make it easy to understand here's the environment:
    *Local Server:* 10.4 G4 Server Quicksilver 1G dual--we have total control of this one
    *Main/remote server:* 10.5 Xserve.. don't know which vintage--we have very very very little input on this machine.. effectively at the mercy of the sysadmin of this system who is very conservative in changing anything (hence the need for a separate server to install applications and client machine-specific profiles, etc since the Xserve admin refuses do it). This serves MacBooks/MacBookPros and few iMacs. (no Windows PC.. as that group of comptuers have their own server)
    client: ~20 eMacs/iBooks all running 10.4.
    use environment: elementary school-->very low network demand (no e-mail, just running local apps linking to server(s) for licensing and login, and some file saving small files on remote server, user preferences, etc).
    The remote server (the Xserve) has all the login authentication, as well as the home directories. every school year, the directories get updated as new students enroll and old students graduate. Currently all the clients are directly linked to the Xserve via LDAP while we bring the local server on-line.
    the local sever (our G4 Quicksilver) will have few network applications that will support the client machines. We also will be setting up computer accounts and groups for our clients so that we can properly set their environments (the Xserve admin will not do this on the Xserve, so currently all the clients are connecting to the server as a "guest computer" from what little I understand watching what was done)
    now, what is the best way to approach this type of set up with minimal "inconvenience" of the Xserve admin?
    I am pretty experienced with standalone UNIX and macOS X administration, but a novice to this whole Server and network setup thing. Any suggestions, instructions, pointers to URLs with how-tos is much appreciated. I am not afraid to use Terminal (grew up on UNIX before GUI), etc., and willing to try safe but unconventional setups if that is what's needed...
    thanks for any help!

    Oh never mind.... I figured it out myself helps to read up on the manuals. d'oh. sorry for the bandwidth waste...

  • Unable to run jar file without lib folder containing swing-layout-1.0.jar

    I have done my project through NetBeans 5.0. Eventhough I have copied my lib foloder containing swing-layout-1.0.jar inside my project.jar, I am still unable to run my project.jar in other systems, it is creating an error as Could not find the main class. Program will exit. But if I copy the lib foloder containing swing-layout-1.0.jar in the same path as the project.jar, then my project.jar is running.
    But I want to give only the project.jar for other users and not also lib foloder containing swing-layout-1.0.jar each time.
    Could someone please help me with this.

    When you develop GUI applications using the Netbeans you may endup using netbeans specific jar files in your auto generated code.
    And when you build jar files with netbeans it copy the third party jar files used in a application in to a lib folder in the same directory as the jar file of your project. And then set a class path entry to those jar files in your project jar file's manifest file.
    So if you want to redistribute the package you have to redistribute your jar file and every thing in the lib folder in with the same directory structure.
    If you want to change the structure you will have to change the class path to suit the new structure.

  • Unable to run struts project from jdeveloper 10.1.3

    Hi,
    I have created a struts-based application project using jdeveloper 10.1.3(build JDEVADF_10.1.3.1.0_NT..) by importing an ear file .The project seems to be built fine as i get no errors in compiling the entire project.I have included the Struts runtime library as well in the project.
    But when i try to run the login.jsp from the struts-config.xml,i get the :
    The page cannot be displayed message in the browser.
    I dont see any errors in the Embedded OC4J log except few warnings lik dis:
    [Another instance of the server is still running.  JDeveloper will shut it down and then restart the server.]
    Process exited.
    [Starting OC4J using the following ports: HTTP=8898, RMI=23899, JMS=9235.]
    D:\jdevr12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\config>
    D:\jdevr12\jdevbin\jdk\bin\javaw.exe -client -classpath D:\jdevr12\jdevbin\j2ee\home\oc4j.jar;D:\jdevr12\jdevbin\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\jdevr12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    25-Jul-2007 18:46:28 com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    25-Jul-2007 18:46:28 com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    WARNING: Code-source D:\jdevr12\jdevbin\jdev\appslibrt\xml.jar (from <library> in /D:/jdevr12/jdevhome/jdev/system/oracle.j2ee.10.1.3.39.81/embedded-oc4j/config/application.xml) has the same filename but is not identical to /D:/jdevr12/jdevbin/lib/xml.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\jdevr12\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source D:\jdevr12\jdevbin\jdev\appslibrt\jazn.jar (from <library> in /D:/jdevr12/jdevhome/jdev/system/oracle.j2ee.10.1.3.39.81/embedded-oc4j/config/application.xml) has the same filename but is not identical to /D:/jdevr12/jdevbin/j2ee/home/jazn.jar (from <code-source> in META-INF/boot.xml in D:\jdevr12\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source D:\jdevr12\jdevbin\jdev\appslibrt\jazncore.jar (from manifest of /D:/jdevr12/jdevbin/jdev/appslibrt/jazn.jar) has the same filename but is not identical to /D:/jdevr12/jdevbin/j2ee/home/jazncore.jar (from <code-source> in META-INF/boot.xml in D:\jdevr12\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source D:\jdevr12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\applications\datatags\webapp\WEB-INF\lib\uix2.jar (from WEB-INF/lib/ directory in D:\jdevr12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\applications\datatags\webapp\WEB-INF\lib) has the same filename but is not identical to /D:/jdevr12/jdevbin/jdev/appslibrt/uix2.jar (from <library> in /D:/jdevr12/jdevhome/jdev/system/oracle.j2ee.10.1.3.39.81/embedded-oc4j/config/application.xml). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader datatags.web.webapp:0.0.0.
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 26766 ms.
    pls help me out on what could be the problem.This application wsa running fine in Eclipse but i am unable to run it using Jdeveloper.

    Is this new develop page ?
    you check these points for this issue.
    1. Check JDEV_USER_HOME
    2. Design a Test PG and test it first.
    3. Your OAF patch level: is 12.0.4 ? Are you running with r12?
    Thanks

  • Unable to run project: illegal character in path - Flash Catalyst CS5.5

    Environment is a new install of Windows 7 x64 on a new Dell workstation in an Active Directory environment. Until fall of last year, we used redirected folders for the Application Data folders until issues with Adobe Reader 9.x forced us to abandon that and we reconfigured our network not to use redirected folders. We have not experienced any issues and all programs are using the Application Data folder on the local machines.
    Just installed Adobe Master Collection on a new workstation and all Adobe applications are using the C:\Users\cballew\AppData\Roaming\Adobe folder including Flash Catalyst. However, when I try to Run Project in Catalyst, it created a folder named Application Data using the network path to where we used to store the Application Data folder and is saving its workspace there. No other programs (including Adobe products) are doing this. Any ideads of how to fix it?
    Error message:
    Unable to run project
    Illegal character in path at index 47: file:///////xxxx.corp/home$/cballew/Application Data/Adobe/Flash Catalysts CS5.5/workspace/Project/bin-debug/Maim.html

    This seems to be configured in an ini file located at C:\Program Files (x86)\Adobe\Adobe Flash Catalyst CS5.5\configuration\config.ini
    [email protected]/Application Data/Adobe/Flash Catalyst CS5.5/workspace
    [email protected]/Application Data/Adobe/Flash Catalyst CS5.5
    [email protected]/Application Data/Adobe/Flash Catalyst CS5.5/configuration
    Can anyone tell me where the variable @user.home is defined and whether I can change it or not? I might find that some of the other applications might experience this same issue

  • ADF Security unable to run/deploy

    Hi all,
    I want to use ADF Security in my new project, so I created an simple test application in my JDeveloper 11g R1.
    What I have done is simple, I created a new application using Fusion Web Application Template, and then I run the Config ADF Security Wizard from Application->Secure menu. In the wizard, I selected generate default login page, and welcome page. Then I try to run the login.html.
    But I failed with the following error messages, can anybody help me?
    Thanks in advanced.
    2009年11月16日 下午02:13:17 oracle.mds.internal.lcm.logging.MDSLCMLogger info
    資訊: Application ID : wsm-pm
    2009年11月16日 下午02:13:17 oracle.mds.internal.lcm.logging.MDSLCMLogger info
    資訊: "Metadata Services: Metadata archive (MAR) not found."
    <2009年11月16日 下午02時13分37秒 CST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\itssdu10\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <2009年11月16日 下午02時13分37秒 CST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\itssdu10\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log00001. Log messages will continue to be logged in C:\Documents and Settings\itssdu10\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log.>
    <2009年11月16日 下午02時13分37秒 CST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    2009年11月16日 下午02:13:38 oracle.wsm.audit.Auditor <init>
    資訊: Created J2EE application auditor for componentType=oracle.security.jps.internal.audit.AuditServiceImpl$Auditor@95c8c2
    2009年11月16日 下午02:13:38 oracle.adf.share.config.ADFConfigFactory getInstance
    資訊: ADF Config instance implementation in use is : oracle.adf.share.config.MDSConfigFactory
    2009年11月16日 下午02:13:41 oracle.adf.share.config.ADFMDSConfig parseADFConfiguration
    資訊: Configuration file:/META-INF/adf-config.xmlcannot not be read by MDS. Reading directly from the classpath
    <2009年11月16日 下午02時13分42秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <2009年11月16日 下午02時13分42秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <2009年11月16日 下午02時13分42秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
    <2009年11月16日 下午02時13分42秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.16.127.167:7101 for protocols iiop, t3, ldap, snmp, http.>
    <2009年11月16日 下午02時13分42秒 CST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
    <2009年11月16日 下午02時13分42秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <2009年11月16日 下午02時13分42秒 CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    DefaultServer startup time: 53578 ms.
    DefaultServer started.
    [Running application TestLogin on Server Instance DefaultServer...]
    <2009年11月16日 下午02時13分49秒 CST> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application TestLogin is not versioned.>
    2009年11月16日 下午02:13:49 oracle.mds.internal.lcm.logging.MDSLCMLogger info
    資訊: Application ID : TestLogin
    2009年11月16日 下午02:13:49 oracle.mds.internal.lcm.logging.MDSLCMLogger info
    資訊: "Metadata Services: Metadata archive (MAR) not found."
    2009年11月16日 下午02:13:49 JpsApplicationLifecycleListener Policy Migration
    資訊: Application [TestLogin] is being deployed, start policy migration with jps.policystore.migration set to OVERWRITE.
    2009年11月16日 下午02:13:49 JpsApplicationLifecycleListener Policy Migration
    資訊: Application policy migration for [TestLogin] is completed successfully.
    2009年11月16日 下午02:13:50 JpsApplicationLifecycleListener Policy Migration
    資訊: Codebase policy migration for [TestLogin] is completed successfully.
    <2009年11月16日 下午02時13分50秒 CST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1258352028648' for task '0'. Error is: 'java.lang.NullPointerException'
    java.lang.NullPointerException
         at oracle.security.pki.l.c(Unknown Source)
         at oracle.security.pki.l.b(Unknown Source)
         at oracle.security.pki.OracleSSOKeyStoreSpi.engineLoad(Unknown Source)
         at oracle.security.pki.OracleSecretStore.load(Unknown Source)
         at oracle.security.pki.OracleWallet.getSecretStore(Unknown Source)
         Truncated. see log file for complete stacktrace
    java.lang.NullPointerException
         at oracle.security.pki.l.c(Unknown Source)
         at oracle.security.pki.l.b(Unknown Source)
         at oracle.security.pki.OracleSSOKeyStoreSpi.engineLoad(Unknown Source)
         at oracle.security.pki.OracleSecretStore.load(Unknown Source)
         at oracle.security.pki.OracleWallet.getSecretStore(Unknown Source)
         Truncated. see log file for complete stacktrace
    >
    <2009年11月16日 下午02時13分50秒 CST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'TestLogin'.>
    <2009年11月16日 下午02時13分50秒 CST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    java.lang.NullPointerException
         at oracle.security.pki.l.c(Unknown Source)
         at oracle.security.pki.l.b(Unknown Source)
         at oracle.security.pki.OracleSSOKeyStoreSpi.engineLoad(Unknown Source)
         at oracle.security.pki.OracleSecretStore.load(Unknown Source)
         at oracle.security.pki.OracleWallet.getSecretStore(Unknown Source)
         Truncated. see log file for complete stacktrace
    java.lang.NullPointerException
         at oracle.security.pki.l.c(Unknown Source)
         at oracle.security.pki.l.b(Unknown Source)
         at oracle.security.pki.OracleSSOKeyStoreSpi.engineLoad(Unknown Source)
         at oracle.security.pki.OracleSecretStore.load(Unknown Source)
         at oracle.security.pki.OracleWallet.getSecretStore(Unknown Source)
         Truncated. see log file for complete stacktrace
    >
    [02:13:50 PM] Weblogic Server Exception: weblogic.application.WrappedDeploymentException
    [02:13:50 PM] See server logs or server console for more details.
    [02:13:50 PM] #### Deployment incomplete. ####
    oracle.jdeveloper.deploy.DeployException: oracle.jdeveloper.deploy.DeployException: oracle.jdeveloper.deploy.DeployException: Deployment Failed
    oracle.jdeveloper.deploy.DeployException: oracle.jdeveloper.deploy.DeployException: oracle.jdeveloper.deploy.DeployException: Deployment Failed
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.doDeploymentAction(Jsr88RemoteDeployer.java:341)
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.deployImpl(Jsr88RemoteDeployer.java:235)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdeveloper.deploy.common.BatchDeployer.deployImpl(BatchDeployer.java:82)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.WrappedDeployer.deployImpl(WrappedDeployer.java:39)
         at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:94)
         at oracle.jdevimpl.deploy.fwk.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:442)
         at oracle.jdeveloper.deploy.DeploymentManager.deploy(DeploymentManager.java:209)
         at oracle.jdevimpl.runner.adrs.AdrsStarter$6$1.run(AdrsStarter.java:1469)
    Caused by: oracle.jdeveloper.deploy.DeployException: oracle.jdeveloper.deploy.DeployException: Deployment Failed
         at oracle.jdevimpl.deploy.common.Jsr88DeploymentHelper.deployApplication(Jsr88DeploymentHelper.java:483)
         at oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer.doDeploymentAction(Jsr88RemoteDeployer.java:332)
         ... 11 more
    Caused by: oracle.jdeveloper.deploy.DeployException: Deployment Failed
         at oracle.jdevimpl.deploy.common.Jsr88DeploymentHelper.deployApplication(Jsr88DeploymentHelper.java:465)
         ... 12 more
    #### Cannot run application TestLogin due to error deploying to DefaultServer.
    [Application TestLogin stopped and undeployed from Server Instance DefaultServer]
    Samson Fu

    I found the deployment was failed inside JDeveloper from the error message, so the application is not able to run from JDeveloper. I don't understand why JDeveloper unable to run the application that generate by the build-in wizard. I've tried to reinstall my JDeveloper 11g, but still cannot have it work.
    Regards,
    Samson Fu

  • Unable to Run/Deploy the Application

    JDev 11.1.2.1.0 ADF BC
    I am unable to run my application and it gives the below log:
    *** Using HTTP port 7101 ***
    *** Using SSL port 7102 ***
    C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m  -XX:MaxPermSize=512m
    WLS Start Mode=Development
    CLASSPATH=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1112\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.5.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;D:\Sahar Hassan\sqljdbc4.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
    PATH=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1112\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;D:\oracle\product\10.2.0\db_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    *  To start WebLogic Server, use a username and   *
    *  password assigned to an admin-level user.  For *
    *  server administration, use the WebLogic Server *
    *  console at http:\\hostname:port\console        *
    starting weblogic with Java version:
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b50)
    Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode)
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client   -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m  -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Djavax.net.ssl.trustStore=C:\Users\ADMINI~1\AppData\Local\Temp\trustStore4013408576188156013.jks -Doracle.jdeveloper.adrs=true -Dweblogic.nodemanager.ServiceEnabled=true  -Xverify:none  -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server  -Djps.app.credential.overwrite.allowed=true -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1 -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\servers\DefaultServer -Doracle.domain.config.dir=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1  -Digf.arisidbeans.carmlloc=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\carml  -Digf.arisidstack.home=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\fmwconfig\jps-config.xml -Doracle.deployed.app.dir=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\servers\DefaultServer\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol  -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\oracle\store\gmds   -Dweblogic.management.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1112\profiles\default\sysext_manifest_classpath  weblogic.Server
    <Jun 19, 2012 4:43:24 PM IST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
    <Jun 19, 2012 4:43:24 PM IST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
    <Jun 19, 2012 4:43:24 PM IST> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\lib\sqljdbc4.jar>
    <Jun 19, 2012 4:43:25 PM IST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 19.1-b02 from Sun Microsystems Inc.>
    <Jun 19, 2012 4:43:27 PM IST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.5.0  Fri Apr 1 20:20:06 PDT 2011 1398638 >
    <Jun 19, 2012 4:43:27 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Jun 19, 2012 4:43:27 PM IST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Jun 19, 2012 4:43:27 PM IST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Jun 19, 2012 4:43:27 PM IST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log00019. Log messages will continue to be logged in C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log.>
    <Jun 19, 2012 4:43:27 PM IST> <Notice> <Log Management> <BEA-170019> <The server log file C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
    <Jun 19, 2012 4:43:31 PM IST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <MessageLocalizationHelper> <getLocalizedMessage> The resource for bundle "oracle.jrf.i18n.MBeanMessageBundle" with key "oracle.jrf.JRFServiceMBean.checkIfJRFAppliedOnMutipleTargets" cannot be found.
    <Jun 19, 2012 4:43:36 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Jun 19, 2012 4:43:36 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <CodebasePolicyHandler> <migrateDeploymentPolicies> Migration of codebase policy failed. Reason: oracle.security.jps.JpsException: java.lang.reflect.InvocationTargetException.
    <AppPolicyHandler> <migrateAppPolicies> Migration of application policy failed. Reason: oracle.security.jps.JpsException: java.lang.reflect.InvocationTargetException.
    <CodebasePolicyHandler> <migrateDeploymentPolicies> Migration of codebase policy failed. Reason: oracle.security.jps.JpsException: java.lang.reflect.InvocationTargetException.
    <AppPolicyHandler> <migrateAppPolicies> Migration of application policy failed. Reason: oracle.security.jps.JpsException: java.lang.reflect.InvocationTargetException.
    <WSEE:12>com.bea.core.repackaged.springframework.beans.factory.BeanCreationException: Error creating bean with name 'weblogic.wsee.jaxws.client.async.AsyncTransportProvider': Instantiation of bean failed; nested exception is com.bea.core.repackaged.springframework.beans.BeanInstantiationException: Could not instantiate bean class [weblogic.wsee.jaxws.client.async.AsyncTransportProvider]: No default constructor found; nested exception is java.lang.NoSuchMethodException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider.<init>()<WSEEComponentContributor.loadUsingSpring:83>
    <Jun 19, 2012 4:44:26 PM IST> <Error> <HTTP> <BEA-101216> <Servlet: "weblogic.wsee.jaxws.client.async.AsyncTransportProvider" failed to preload on startup in Web application: "SugarCRM-ViewController-context-root".
    javax.xml.ws.WebServiceException: javax.xml.ws.WebServiceException: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
         at weblogic.wsee.jaxws.WLSInstanceResolver.getSingleton(WLSInstanceResolver.java:36)
         at weblogic.wsee.jaxws.WLSInstanceResolver.start(WLSInstanceResolver.java:55)
         at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.start(WLSInstanceResolver.java:82)
         at com.sun.xml.ws.server.InvokerTube.setEndpoint(InvokerTube.java:85)
         at weblogic.wsee.jaxws.EndpointAwareLateInitTube.postCreateEndpoint(EndpointAwareLateInitTube.java:48)
         Truncated. see log file for complete stacktrace
    Caused By: javax.xml.ws.WebServiceException: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
         at weblogic.wsee.jaxws.WLSServletInstanceResolver.create(WLSServletInstanceResolver.java:37)
         at weblogic.wsee.jaxws.WLSInstanceResolver.getSingleton(WLSInstanceResolver.java:34)
         at weblogic.wsee.jaxws.WLSInstanceResolver.start(WLSInstanceResolver.java:55)
         at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.start(WLSInstanceResolver.java:82)
         at com.sun.xml.ws.server.InvokerTube.setEndpoint(InvokerTube.java:85)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
         at java.lang.Class.newInstance0(Class.java:340)
         at java.lang.Class.newInstance(Class.java:308)
         at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:54)
         at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:42)
         at weblogic.wsee.jaxws.WLSServletInstanceResolver.create(WLSServletInstanceResolver.java:35)
         Truncated. see log file for complete stacktrace
    >
    <Jun 19, 2012 4:44:26 PM IST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application 'SugarCRM'.
    weblogic.application.ModuleException: [HTTP:101216]Servlet: "weblogic.wsee.jaxws.client.async.AsyncTransportProvider" failed to preload on startup in Web application: "SugarCRM-ViewController-context-root".
    javax.xml.ws.WebServiceException: javax.xml.ws.WebServiceException: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
         at weblogic.wsee.jaxws.WLSInstanceResolver.getSingleton(WLSInstanceResolver.java:36)
         at weblogic.wsee.jaxws.WLSInstanceResolver.start(WLSInstanceResolver.java:55)
         at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.start(WLSInstanceResolver.java:82)
         at com.sun.xml.ws.server.InvokerTube.setEndpoint(InvokerTube.java:85)
         at weblogic.wsee.jaxws.EndpointAwareLateInitTube.postCreateEndpoint(EndpointAwareLateInitTube.java:48)
         at weblogic.wsee.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:150)
         at weblogic.wsee.jaxws.JAXWSServlet.init(JAXWSServlet.java:64)
         at weblogic.wsee.jaxws.JAXWSDeployedServlet.init(JAXWSDeployedServlet.java:54)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
         at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1985)
         at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1959)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1878)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
         at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
         at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
         at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: javax.xml.ws.WebServiceException: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
         at weblogic.wsee.jaxws.WLSServletInstanceResolver.create(WLSServletInstanceResolver.java:37)
         at weblogic.wsee.jaxws.WLSInstanceResolver.getSingleton(WLSInstanceResolver.java:34)
         ... 49 more
    Caused by: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
         at java.lang.Class.newInstance0(Class.java:340)
         at java.lang.Class.newInstance(Class.java:308)
         at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:54)
         at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:42)
         at weblogic.wsee.jaxws.WLSServletInstanceResolver.create(WLSServletInstanceResolver.java:35)
         ... 50 more
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
         at java.lang.Class.newInstance0(Class.java:340)
         at java.lang.Class.newInstance(Class.java:308)
         at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:54)
         at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:42)
         at weblogic.wsee.jaxws.WLSServletInstanceResolver.create(WLSServletInstanceResolver.java:35)
         Truncated. see log file for complete stacktrace
    >
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log00019. Log messages will continue to be logged in C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias DemoIdentity from the jks keystore file C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoIdentity.jks.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoTrust.jks.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\Oracle\MIDDLE~1\JDK160~1\jre\lib\security\cacerts.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=Entrust Root Certification Authority - G2,OU=(c) 2009 Entrust\, Inc. - for authorized use only,OU=See www.entrust.net/legal-terms,O=Entrust\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=thawte Primary Root CA - G3,OU=(c) 2008 thawte\, Inc. - For authorized use only,OU=Certification Services Division,O=thawte\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems CO.\,LTD.,C=JP". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=VeriSign Universal Root Certification Authority,OU=(c) 2008 VeriSign\, Inc. - For authorized use only,OU=VeriSign Trust Network,O=VeriSign\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GeoTrust Primary Certification Authority - G3,OU=(c) 2008 GeoTrust Inc. - For authorized use only,O=GeoTrust Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default[6]" is now listening on 0:0:0:0:0:0:0:1:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[5]" is now listening on 127.0.0.1:7102 for protocols iiops, t3s, ldaps, https.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[6]" is now listening on 0:0:0:0:0:0:0:1:7102 for protocols iiops, t3s, ldaps, https.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default[5]" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Jun 19, 2012 4:44:33 PM IST> <Warning> <Server> <BEA-002611> <Hostname "path-mumbai7", maps to multiple IP addresses: 192.168.1.20, fe80:0:0:0:8ceb:756:d0e1:6176%11, fe80:0:0:0:3401:2477:3f57:feeb%13, 2001:0:5ef5:79fb:3401:2477:3f57:feeb>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on fe80:0:0:0:3401:2477:3f57:feeb:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[1]" is now listening on 192.168.1.20:7102 for protocols iiops, t3s, ldaps, https.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on fe80:0:0:0:0:5efe:c0a8:114:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[2]" is now listening on fe80:0:0:0:3401:2477:3f57:feeb:7102 for protocols iiops, t3s, ldaps, https.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 192.168.1.20:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[4]" is now listening on fe80:0:0:0:8ceb:756:d0e1:6176:7102 for protocols iiops, t3s, ldaps, https.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on fe80:0:0:0:8ceb:756:d0e1:6176:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 2001:0:5ef5:79fb:3401:2477:3f57:feeb:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 2001:0:5ef5:79fb:3401:2477:3f57:feeb:7102 for protocols iiops, t3s, ldaps, https.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[3]" is now listening on fe80:0:0:0:0:5efe:c0a8:114:7102 for protocols iiops, t3s, ldaps, https.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
    <Jun 19, 2012 4:44:34 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Jun 19, 2012 4:44:34 PM IST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    IntegratedWebLogicServer startup time: 98161 ms.
    IntegratedWebLogicServer started.
    [Running application SugarCRM on Server Instance IntegratedWebLogicServer...]
    [04:44:34 PM] **** Warning: Application SugarCRM may have been left deployed on the server.  Undeploy it from the admin console.
    [04:44:34 PM] Web Module ViewControllerWebApp.war recognized in project ViewController.jpr
    [04:44:34 PM] ----  Deployment started.  ----
    [04:44:34 PM] Target platform is  (Weblogic 10.3).
    [04:44:35 PM] Retrieving existing application information
    [04:44:35 PM] Running dependency analysis...
    [04:44:35 PM] Deploying 2 profiles...
    [04:44:35 PM] Wrote Web Application Module to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\o.j2ee\drs\SugarCRM\ViewControllerWebApp.war
    [04:44:36 PM] Wrote Enterprise Application Module to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\o.j2ee\drs\SugarCRM
    [04:44:36 PM] Redeploying Application...
    <CodebasePolicyHandler> <migrateDeploymentPolicies> Migration of codebase policy failed. Reason: oracle.security.jps.JpsException: java.lang.reflect.InvocationTargetException.
    <AppPolicyHandler> <migrateAppPolicies> Migration of application policy failed. Reason: oracle.security.jps.JpsException: java.lang.reflect.InvocationTargetException.
    <Jun 19, 2012 4:44:37 PM IST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1340104476670' for task '0'. Error is: 'weblogic.application.ModuleException: Context path '/SugarCRM-ViewController-context-root' is already in use by the module: SugarCRM-ViewController-context-root application: SugarCRM_Project1_SugarCRM'
    weblogic.application.ModuleException: Context path '/SugarCRM-ViewController-context-root' is already in use by the module: SugarCRM-ViewController-context-root application: SugarCRM_Project1_SugarCRM
         at weblogic.servlet.internal.WebAppModule.initAndValidateContextPath(WebAppModule.java:1210)
         at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:970)
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:382)
         at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:433)
         at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:375)
         Truncated. see log file for complete stacktrace
    >
    <Jun 19, 2012 4:44:37 PM IST> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application 'SugarCRM'.>
    <Jun 19, 2012 4:44:37 PM IST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'SugarCRM'.>
    <Jun 19, 2012 4:44:37 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: Context path '/SugarCRM-ViewController-context-root' is already in use by the module: SugarCRM-ViewController-context-root application: SugarCRM_Project1_SugarCRM
         at weblogic.servlet.internal.WebAppModule.initAndValidateContextPath(WebAppModule.java:1210)
         at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:970)
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:382)
         at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:433)
         at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:375)
         Truncated. see log file for complete stacktrace
    >
    [04:44:37 PM] Deployment cancelled.
    [04:44:37 PM] ----  Deployment incomplete  ----.
    [04:44:37 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    #### Cannot run application SugarCRM due to error deploying to IntegratedWebLogicServer.
    [Application SugarCRM stopped and undeployed from Server Instance IntegratedWebLogicServer]

    Context path '/SugarCRM-ViewController-context-root' is already in use by the module: SugarCRM-ViewController-context-root application: SugarCRM_Project1_SugarCRMLooks like the application (or another application which uses same context root) is already deployed to the server and could not be undeployed.
    Can you invoke the WLS console, navigate the deployment and undeploy it, then try deploying from JDev and see if it works fine?
    -Arun

  • How can I set up SSL login authentication on one domain for multiple domains

    Our site currently runs in 22 countries with 22 different
    country domains:
    www.mysite.com
    www.mysite.co.uk
    www.mysite.fr
    etc
    We want to use SSL on our login pages but realise that the
    cost of certification for every domain is expensive. One solution
    would be to channel all login activity to a single domain, eg:
    www.mysite.com/login.cfm?site=fr which would then redirect to
    www.mysite.fr – this is how Google do it
    But, currently we are using encrypted cookies for login
    authentication so we would have the problem of having to transfer
    the cookie info across domains securely. Is there any way of going
    about this?
    Any other suggestions would be great, too. We do plan to move
    to session management for logins but this is a longer term project
    so we are hoping to sort out the SSL prior to that.

    Can you not pass the values you need as URL parameters?
    Encrypt them befor you send them and then decrypt them on the new
    domain. Then add them to whatever place you need (cookie, session,
    etc.)?

Maybe you are looking for