Failed tacacs+ user authentication

I want to autenticate admin users in a AP350 with v12.01T1, with a tacacs+ server (ACS v3.1).
I configured on the AP350 an authentication server, port 49, tacacs, correct key, etc.
I configured the aaa client, users, etc, and I obtain in the ACS "failed attempts" this message: "CS password invalid". I am sure the password I typed was correct.
Does anyone know what could be happening?
TIA

I had the same thing. Make sure that if you are doing MAC authentication or any authentication. Make sure you observe case sensitvity. The MAC addresses are sent to the ACS server as all lower case.

Similar Messages

  • Cisco ISE (Authentication failed: 24415 User authentication against Active Directory failed since user's account is locked out)

    Hi,
    I have a setup ISE 1.1.1. Users are getting authenticate against AD. Everything is working fine except some users report disconnection. I see in the ISE that (Authentication failed: 24415 User authentication against Active Directory failed since user's account is locked out). Users are using Windows 7 OS.
    Error is enclosed & here is the port configuration.
    Port Configuration.
    interface GigabitEthernet0/2
    switchport access vlan 120
    switchport mode access
    switchport voice vlan 121
    authentication event fail action next-method
    authentication event server dead action reinitialize vlan 120
    authentication event server alive action reinitialize
    authentication host-mode multi-auth
    authentication order mab dot1x
    authentication priority dot1x mab
    authentication port-control auto
    authentication periodic
    authentication timer reauthenticate server
    mab
    dot1x pae authenticator
    dot1x timeout tx-period 60
    spanning-tree portfast
    ip dhcp snooping limit rate 30 interface GigabitEthernet0/2
    switchport access vlan 120
    switchport mode access
    switchport voice vlan 121
    authentication event fail action next-method
    authentication event server dead action reinitialize vlan 120
    authentication event server alive action reinitialize
    authentication host-mode multi-auth
    authentication order mab dot1x
    authentication priority dot1x mab
    authentication port-control auto
    authentication periodic
    authentication timer reauthenticate server
    mab
    dot1x pae authenticator
    dot1x timeout tx-period 60
    spanning-tree portfast
    ip dhcp snooping limit rate 30
    Please help.

    The error message means that Active Directory server Reject the authentication attempt
    as for some reasons the user account got locked.I guess, You should ask your AD Team to check in the AD
    Event Logs why did the user account got locked.
    Under Even Viewers, You can find it out
    Regards
    Minakshi (Do rate the helpful posts)

  • Tacacs user authentication not working

    I am trying to setup my AP to use tacacs+ running on Cisco ACS to authenticate users logging into the AP with no success.
    Here is the AP config.  At the end of the config you can see the debugs that are running and the output of those when I try to login to the unit with the web browser.
    version 12.4
    no service pad
    service timestamps debug datetime msec
    service timestamps log datetime msec
    service password-encryption
    hostname ap1250
    aaa new-model
    aaa group server radius rad_eap
    aaa group server radius rad_mac
    aaa group server radius rad_acct
    aaa group server radius rad_admin
    cache expiry 1
    cache authorization profile admin_cache
    cache authentication profile admin_cache
    aaa group server tacacs+ tac_admin
    server 192.168.1.25
    cache expiry 1
    cache authorization profile admin_cache
    cache authentication profile admin_cache
    aaa group server radius rad_pmip
    aaa group server radius dummy
    aaa authentication login default local cache tac_admin group tac_admin
    aaa authentication login eap_methods group rad_eap
    aaa authentication login mac_methods local
    aaa authorization exec default local cache tac_admin group tac_admin
    aaa accounting network acct_methods start-stop group rad_acct
    aaa cache profile admin_cache
    all
    aaa session-id common
    power inline negotiation prestandard source
    username seth privilege 15 password 7 02050D480809
    username Cisco privilege 15 password 7 072C285F4D06
    bridge irb
    interface Dot11Radio0
    no ip address
    no ip route-cache
    shutdown
    station-role root
    bridge-group 1
    bridge-group 1 subscriber-loop-control
    bridge-group 1 block-unknown-source
    no bridge-group 1 source-learning
    no bridge-group 1 unicast-flooding
    bridge-group 1 spanning-disabled
    interface Dot11Radio1
    no ip address
    no ip route-cache
    shutdown
    dfs band 3 block
    channel dfs
    station-role root
    bridge-group 1
    bridge-group 1 subscriber-loop-control
    bridge-group 1 block-unknown-source
    no bridge-group 1 source-learning
    no bridge-group 1 unicast-flooding
    bridge-group 1 spanning-disabled
    interface GigabitEthernet0
    no ip address
    no ip route-cache
    duplex auto
    speed auto
    bridge-group 1
    no bridge-group 1 source-learning
    bridge-group 1 spanning-disabled
    interface BVI1
    ip address 192.168.1.60 255.255.255.0
    no ip route-cache
    ip http server
    ip http authentication aaa
    no ip http secure-server
    ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag
    ip radius source-interface BVI1
    tacacs-server host 192.168.1.25 port 49 key 7 00071A150754
    radius-server attribute 32 include-in-access-req format %h
    radius-server vsa send accounting
    bridge 1 route ip
    line con 0
    line vty 0 4
    end
    ap1250#  sho debug
    General OS:
      TACACS+ authentication debugging is on
      TACACS+ authorization debugging is on
      AAA Authentication debugging is on
    ap1250#
    *Mar  1 00:25:56.239: AAA/BIND(00000024): Bind i/f
    *Mar  1 00:25:56.243: AAA/AUTHEN/LOGIN (00000024): Pick method list 'default'

    The radio's are shut down as I do not have an SSID configured on the unit either at this time.  I was merely trying to get the setup for login authentication.
    I did also have a local user name and password defined but was unable to use that login either.
    I tried the config on another AP and got it to work by changing the statement to read
    aaa authentication login default local group tac_admin
    This was done by not checking the box for caching.
    Seth

  • Cisco ISE Failure: 24408 User authentication against Active Directory failed since user has entered the wrong password

    Hi,
    Since we implemented Cisco ISE we receive the following failure on several Notebooks:
    Authentication failed : 24408 User authentication against Active Directory failed since user has entered the wrong password
    This happens 2 or 3 times per Day. So basically the authentications are working. But when the failure appears, the connection is lost for a short time.
    The Clients are using PEAP(EAP-MSCHAPv2) for Authentication. We've got a Cisco Wireless Environment (WLC 5508).
    Why is this happening?
    Thanks,
    Marc

    The possible causes of this error message are:
    1.] If the end user entered an incorrect username.
    2.] The shared sceret between WLC and ISE is mismatched. With this we'll see continous failed authentication.
    3.] As long as a PSN not receiving a response from the supplicant within this limit during an EAP conversation, it will throw this error code. In majority of cases it says eap session timed out.
    In your cases, the 3rd option seems to be the most closest one.
    Jatin Katyal
    - Do rate helpful posts -

  • TACACS "fail unknown users" after upgrade to ACS 3.3

    Basic config issue is :
    1) User Account is added to ACS 3.3
    2) User Account is added to Group with correct Privilege Levels
    3) User Password Authentication: is listed as "Windows Database"
    4) TACACS+ Enable Control: is set to user group settings
    5) And TACACS+ Enable is also set to "Windows Database"
    In External DB all windows Domains are listed (but not down to specific group mapping)
    Here is the problem, every thing works fine.
    Users can log onto router in User mode (using domain password) & change to EN mode (using domain password)
    As long as the "Unknown user policy" is set to check against "Windows". this works.
    But if it is set to "fail Unknown users" then no one can gain access

    Hi Michael,
    We opened a TAC case ans was given the following info;
    CSCef84196
    First Found-in Version 3.3(1)
    Symptom:
    users created on acs but mapped to external DB manually fail authentication
    Condition:
    -this happens when unkown user policy is set to fail authentication attempt.
    Workaround:
    - set unkown policy to check external database.
    if dynamic users aren't desired to authenticate, you can map the external DB to a disabled group.
    and put the manually mapped users in an enabled group.
    Ther is no fix available yet!

  • User Authentication failed

    Hi all,
    I like to share one of my peculiar issue with you and like to get a solution as well.
    I am trying to install a portal server with r3load based method. I did a java export of mssql Portal server and suceefully imported in the newly installed server.The server is up and running.I also completed the post installation activites like SLD ,SSO and Jco creation. I am not able to log in to the java page using administrator user and also other users..It keep on saying that user authentication is failed.
    But the beauty is that using the same adminsitrator user i am logging in the visaul administrator .
    I dont know where the problem and also i verified the log files under cluset/server nodes. There i found the log as  follows  --- > Connection is already closed and no longer associated with a managed connection,,
    I dont know where i am missing. Due to this I reinstalled the server and imported again..But the same problem is existing to me. Anyone have suggestion on this please do reply.
    Thanks and Regards
    Vijay

    Hi,
    Thnaks for reply. Its only a java system ,, So no activity needs to be done in SU01. I checked the table in database..the users are exisitng as well in the table.
    FYI: I am able to log in visaul admin but not in the java pages like
    http://<hostname>:port/
    http://<hostname>:port/irj
    Hope i explained  my problem it in right way
    Regards
    Vijay

  • "Authentication failed. User is already authenticated as a different user."

    Hello,
    Initially I was not able to log into the Visual Admin. When I logged into the Visual Admin, I got authenication failed. I reset the password of Administrator in the User Administration on the portal. Now I can log into the Visual Admin using the password I just changed on the portal .
    I am not able to logon to the portal using "Administrator". I get this message: "Authentication failed. User is already authenticated as a different user."
    The URL is somewhat different as this is a production portal: "http://host.com/sld" (/irj/portal)
    Does any one have a clue.
    Thanks
    Srinivas

    There were no relevant roles assigned.

  • Authentication failed: invalid user/password.

    After uploading a new RPD in obiee( 11.1.1.5), my obiee has started failing with following error in nqserver.log. I have verified that BISystemUser password is the same in console and EM. I have also verified that I am entering correct RPD password while uploading it through EM. What else may be wrong ?
    [2011-08-23T03:52:39.000+00:00] [OracleBIServerComponent] [NOTIFICATION:1] [] [] [ecid: 004emGWVmAQAtHd5Tf^Ayc0000K2000000] [tid: b38396d0] [36007] Loading repository /product/obiee_11.1.1.5/instances/instance1/bifoundation/OracleBIServerComponent/coreapplication_obis1/repository/iipreports_BI0038.rpd.
    [2011-08-23T03:52:40.000+00:00] [OracleBIServerComponent] [NOTIFICATION:1] [] [] [ecid: 004emGWVmAQAtHd5Tf^Ayc0000K2000000] [tid: b0923b90] [14055] Loading subject area: AIP ...
    [2011-08-23T03:52:40.000+00:00] [OracleBIServerComponent] [NOTIFICATION:1] [] [] [ecid: 004emGWVmAQAtHd5Tf^Ayc0000K2000000] [tid: b0923b90] [14056] Finished loading subject area: AIP.
    [2011-08-23T03:52:40.000+00:00] [OracleBIServerComponent] [NOTIFICATION:1] [] [] [ecid: 004emGWVmAQAtHd5Tf^Ayc0000K2000000] [tid: b38396d0] [85003] MDX Member Name Cache subsystem started successfully.
    [2011-08-23T03:52:40.000+00:00] [OracleBIServerComponent] [NOTIFICATION:1] [] [] [ecid: 004emGWVmAQAtHd5Tf^Ayc0000K2000000] [tid: b38396d0] [85004] MDX Member Name Cache subsystem recovered entries: 0, size: 0 bytes.
    [2011-08-23T03:52:40.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: 004emGWVmAQAtHd5Tf^Ayc0000K2000000] [tid: b38396d0] [13026] Error in getting roles from BI Security Service: 'Error Message From BI Security Service: [nQSError: 46164] HTTP Server returned 404 (Not Found) for URL .'
    [2011-08-23T03:52:40.000+00:00] [OracleBIServerComponent] [NOTIFICATION:1] [] [] [ecid: 004emGWVmAQAtHd5Tf^Ayc0000K2000000] [tid: b38396d0] nqsserver:     Clustered Oracle BI Server started. Version: 11.1.1.5.0.110427.0846.000.
    [2011-08-23T03:52:44.000+00:00] [OracleBIServerComponent] [NOTIFICATION:1] [] [] [ecid: 004emGWVmAQAtHd5Tf^Ayc0000K2000000] [tid: b0923b90] [43071] A connection with Cluster Controller xxx.us.oracle.com:9706 was established.
    [2011-08-23T03:52:46.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: 004emGWtbaWAtHd5Tf^Ayc0000K3000001] [tid: b00beb90] Error Message From BI Security Service: [nQSError: 46164] HTTP Server returned 404 (Not Found) for URL .
    [2011-08-23T03:52:46.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: 004emGWtbaWAtHd5Tf^Ayc0000K3000001] [tid: b00beb90] [nQSError: 43126] Authentication failed: invalid user/password.
    If I run opmnctl status then BIServer is up but the presentation services is down.
    Following error is observed in sawlog0.log
    [2011-08-22T22:52:46.000-05:00] [OBIPS] [ERROR:10] [] [saw.security.odbcuserpopulationimpl.initialize] [ecid: ] [tid: ] Authentication Failure.
    Odbc driver returned an error (SQLDriverConnectW).
    State: 08004. Code: 10018. [NQODBC] [SQL_STATE: 08004] [nQSError: 10018] Access for the requested connection is refused.
    [nQSError: 43113] Message returned from OBIS.
    [nQSError: 43126] Authentication failed: invalid user/password. (08004)[[
    File:odbcuserpoploaderimpl.cpp
    Line:292
    Location:
         saw.security.odbcuserpopulationimpl.initialize
         saw.catalog.local.loadCatalog
         saw.subsystems.catalogbootstrapper.loadcatalog
         saw.webextensionbase.init
         saw.sawserver
    ecid:
    [2011-08-22T22:52:46.000-05:00] [OBIPS] [NOTIFICATION:1] [] [saw.sawserver] [ecid: ] [tid: ] Oracle BI Presentation Services are shutting down.[[
    File:sawserver.cpp
    Line:712
    Location:
         saw.sawserver
    ecid:

    Hi,
    I have upgraded a existing OBIEE 10G file EBSAnalyticMaster.rpd to 11G using ua (upgrade assistant) and getting the same error while upgrading the catalog.
    Presentation service is not starting. Do you have a solution yet.

  • User Authentication Failed via http BUT not with Visual Administrator !!?

    OS : Win 2k3 Server UK * DB : SQL Server 2005
    SAP Netweaver 2004s Application Java
    Hi All,
    Since a couple of days, I have a problem concerning authentication to the java apllication on a SAP Netweaver 2004s.
    Using the user ‘Administrator’, I CAN logon the Visual Administrator tool, with the same user I tried to logon via http://host:port/nwa without success.
    At the beginning, I was thinking about a problem of password then I enabled the emergency user SAP*, the problem was the same. Ok with Visual Administrator but not via http.
    Here is two logs found in folder : D:\usr\sap\SID\JC02\j2ee\cluster\server0\log\system\
         security.3.log
         <i>#1.5#001871E5EA3A00550000006D0000172800043B836D838427#1191335570983#/System/Security/Audit#sap.com/com.sap.security.core.admin#com.sap.security.core.util.SecurityAudit#Guest#0####5aac137070f411dcc513001871e5ea3a#SAPEngine_Application_Thread[impl:3]_11##0#0#Warning#1#com.sap.security.core.util.SecurityAudit#Plain###Guest     | LOGIN.ERROR     | null     |      | Login Method=[default], UserID=[Administrator], IP Address=[192.168.10.125], Reason=[Authentication did not succeed.]#</i>
         server.0.log
         <i>#1.5#001871E5EA3A0052000000130000172800043B835E3661D1#1191335314249#/System/Server/SLDService##com.sap.sldserv.SldServerFrame######c1a349a070f311dcaa68001871e5ea3a#SAPEngine_System_Thread[impl:5]_71##0#0#Warning#1#com.sap.sldserv.SldServerFrame#Plain###Failed to collect SLD data. Failed to send HTTP data: 401 : Unauthorized. Please check if the target SLD system is available and the SLD bridge is started there.#</i>
    &#61664; I tried to connect http://host:port/sld same problem User Authentication Failed
    <b>Do you have an idea for me? Why a user can connect via Visual Administrator and not via the http interface?</b>
    Thanks in advance
    Yves

    Hi,
    I found the solution this last week-end.
    This behavior let's thinking to a problem of authentication.
    But the problem was in SQL, an index was missing in table J2EE_CONFIG, called J2EE_CONFIG_I3
    Cheers
    Yves

  • NoMachine(freenx) Authentication failed for user (MYUSERNAME)

    Hi all,
    I have quite a few experience with freenx on other linux distributions, but this is my first time setting up freenx on archlinux. After following the instructions in the wiki, authentication keeps failing no matter what I do.
    Stuff I've done from the wiki:
    1. install freenx
    2. add RSAAuthentication yes AllowUsers someuser nx to sshd_config
    3. add md5sum to node.conf
    4. pacman -S xdialog xterm
    5. run "/usr/bin/nxsetup --install --setup-nomachine-key"
    6. modify /etc/nxserver/node.conf so that "USER_X_STARTUP_SCRIPT=.xinitrc"
    7. pick the right configurations when connecting to my server
    I have "exec startxfce4" in .xinitrc.
    It always goes up to "Waiting for authentication" and then "Authentication failed for user (MYUSERNAME)" pops up. I think it should not be a XFCE issue since authentication itself didn't even pass. I assume if it is a X window problem, what I would get is something like a blank screen.
    I'm using public key, so I didn't really copy anything from the server to my client.
    I couldn't think of a second reason why this wouldn't work. Is there any thing obvious that I missed? (If so, please move this thread to the newbie corner. lol)
    Any thoughts would be highly appreciated.
    Thanks
    Aweather

    Hi,
    I did update the password in the properties file but still I get the error
    BUILD FAILED
    C:\product\10.1.3.1\OracleAS_1\bpel\samples\utils\CreditRatingService\build.xml:
    79: Authentication failed for user "oc4jadmin" on host
    I am able to deploy from JDEV. and could configure as per documentation
    Thanks in advance,
    Anand
    I had to update the <OH>/bpel/utilities/ant-orabpel.properties file for the password and now I can deploy successfully...information was there in the readme file...
    Anand
    Message was edited by:
    AnandP

  • User Authentication failed on configuring LDAP

    Hi,
    I had configured MS ADS ReadOnly Deep Hierarchy + Database as my datasource. earlier it was "Database only". Once I did new configuration to ADS+Database, the test connection was succesfull and then restarted the server.
    When I try to login it says user authentication failed. When I check for particular loginId say "testuser" in User Administration it gave 2 results for the same login ID one coing from UME and the other from LDAP.
    To resolve this conflict do I need to delete one of the login ID from either UME or LDAP, or is there any other solution where I can resolve this issue.
    Regards,
    Ravi.

    Ravi
    If the user id is same in the portal UME as well as LDAP there will be conflict and you need to delete the id at one place or if you want both you need to change the id.
    Thanks
    Lakshmi
    Reward points if useful !!

  • Essbase Error 1051440 - Authentication fails for user admin

    We are facing a very unique problem...
    The application is up & running.. even I can login into the application, can perform member addition, editing & mamage database from planning.... but I get this error while retreiving from excel addin or running scripts.
    What I analysed is that this problem is Actually coming when a particular set of members are called anywhere either in scripts or during retreival thru Addin.
    Recently we had added one dimension in one of the database of our application. After that that this problem started.
    There were fewer Xref functions used to pull data from other cubes.... The problem is cominng with only those set of members where this Xref function has been used.
    Even I had changed the formulas & incorporated member of new dimension in the formulas to point to target members....
    Can you guys ever had faced such kind of issue....
    Please help in resolving....
    Complete Error is: msg fromremote site[date n time] Local////Error(1051440) Essbase user[admin] Authentication fails against shared services serverwith Error[30:1005:Authentication failed for user admin. Enter valid credentials.]]

    Hi,
    are you sure that user "admin" has all necessary rights to run your scripts? I have to ask because we sometimes had problems with our admin user... There is an "native essbase server admin" and the admin user in shared services.
    We dont had any idea how this could happen but sometimes our admin user changed to the mentioned "native essbase server admin" - you can see it if you are connected as "admin (internal)".
    If you are logged in as "admin (internal)" you have to "externalize" this user.
    Hope this helps and my bad english is not so much confusing... :-)
    Kind regards
    André

  • User authentication Failed in XMII portal

    Hi,
    we are using XMII 12.0 version and deployed in SAP netweaver 2004s. We are frequently facing issue in XMII Menu page login and in SAP netweaver user management logins as "User authentication Failed". It is happening for all users suddenly. we are giving  username and password correctly but we faced the same problems. We tried with all users then also we cant able to find the probem. Every time we needs to restart the server then it works.
    What is the issue and how to resolve it?
    Regards,
    Senthil

    Hi Senthil,
    I would strongly recommend upgrading your installation.  You are on 12.0.2 and the current release is 10 service packs later.  You should upgrade to 12.0.12 before working on what is probably the original GA version from about 4 years ago.
    Regards,
    Mike

  • [nQSError: 43126]Authentication failed:invalid user/password, how to avoid?

    Hi,
    I encountered following error: [nQSError: 43126] Authentication failed: invalid user/password.
    when I was starting weblogic server, and server used to shutdown.
    After snooping around on net, came across this blog: http://obiee11gqna.blogspot.com/2011/09/obiee-11g-errors-nqserror-43113.html
    Found that password for MDS & BIPLATFORM was 'expired', was able to solve my problem and my Presentation Services were up & running.
    My question is, how to avoid password of MDS & BIPLATFORM from getting expired in future??
    Regards,
    Jitendra

    Dpka,
    Thanx for the link, it shows the way to avoid expiry of password.
    I also found another link, in comment section which is equally useful: http://www.artofbi.com/index.php/2011/03/mds-or-biplatform-schema-password-change-considerations/
    PS: Thanx to Deva as well for replying to my query.
    Regards,
    Jitendra

  • Java.sql.SQLException: User: fusionEJB3, failed to be authenticated

    Dear experts,
    My intention was to call a pojo, (ProductCatalog) from a servlet (SimpleRestServlet) in order to query a db entity for products in xml form.
    The original thought was to be able to get the products via a servlet, but the entity manager is null:
    Thus, what I get is:
    Target URL -- http://localhost:7101/example8-1/products.jsp
    DoGet invoked on RESTful service.
    <Aug 22, 2011 7:12:09 AM GMT> <Error> <HTTP> <BEA-101020> <[ServletContext@335926353[app:chapter8 module:example8-1 path:/example8-1 spec-version:2.5]] Servlet failed with Exception
    java.lang.NullPointerException
         at com.soacookbook.ProductCatalog$beaVersion0_15.getAllProducts(ProductCatalog.java:38)
         at com.soacookbook.ProductCatalog.getAllProducts(ProductCatalog.java)
         at com.soacookbook.ProductCatalog.<init>(ProductCatalog.java:29)
         at com.soacookbook.web.SimpleRestServlet$beaVersion0_14.doGet(SimpleRestServlet.java:45)
         at com.soacookbook.web.SimpleRestServlet.doGet(SimpleRestServlet.java)
         Truncated. see log file for complete stacktrace
    However, if I create a stateless session bean, the generated java SE client is working well!
    I start with the error logs; the full code will follow.
    If i use the servlet to access the product entity I get:
    <Aug 21, 2011 1:48:07 PM GMT> <Alert> <EclipseLink> <BEA-2005000> <2011-08-21 13:48:07.826--ServerSession(2081428224)--Local Exception Stack:
    Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: User: fusionEJB3, failed to be authenticated.
    Error Code: 0
         at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:309)
         at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:138)
         at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:94)
         at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)
         at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:327)
         at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:291)
         at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:415)
         at org.eclipse.persistence.sessions.server.ConnectionPool.buildConnection(ConnectionPool.java:155)
         at org.eclipse.persistence.sessions.server.ExternalConnectionPool.startUp(ExternalConnectionPool.java:118)
         at org.eclipse.persistence.sessions.server.ServerSession.connect(ServerSession.java:495)
         at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:627)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:230)
         at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:389)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:164)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:221)
         at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:209)
         at com.soacookbook.ProductCatalog.getAllProducts(ProductCatalog.java:46)
         at com.soacookbook.ProductCatalog.<init>(ProductCatalog.java:27)
         at com.soacookbook.SimpleRestServlet.doGet(SimpleRestServlet.java:41)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    <?xml version="1.0" encoding="UTF-8" ?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
    version="1.0">
    <persistence-unit name="example8-1">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <!--jta-data-source>jdbc/fusionEJB3</jta-data-source>
    <non-jta-data-source>jdbc/fusionEJB3</non-jta-data-source-->
    <class>com.soacookbook.entities.Product</class>
    <properties>
    <property name="eclipselink.target-server" value="WebLogic_10"/>
    <property name="javax.persistence.jtaDataSource"
    value="jdbc/fusionEJB3"/>
    <property name="javax.persistence.jdbc.driver"
    value="oracle.jdbc.OracleDriver"/>
    <property name="javax.persistence.jdbc.url"
    value="jdbc:oracle:thin:@localhost:1521:orcl"/>
    <property name="javax.persistence.jdbc.user" value="fusionEJB3"/>
    <property name="javax.persistence.jdbc.password"
    value="57DAF0ADC12F7C37C6EC6D357C70ABD33754E34C120EB192D80F6E3B564BA6C8"/>
    <property name="eclipselink.logging.level" value="ALL"/>
    <property name="eclipselink.target-database" value="Oracle11"/>
    </properties>
    </persistence-unit>
    <persistence-unit name="JavaSEClient" transaction-type="RESOURCE_LOCAL">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <class>com.soacookbook.entities.Product</class>
    <properties>
    <property name="eclipselink.target-server" value="WebLogic_10"/>
    <property name="eclipselink.target-database" value="Oracle"/>
    <property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver"/>
    <property name="javax.persistence.jdbc.password" value="fusionEJB3"/>
    <property name="javax.persistence.jdbc.user" value="fusionEJB3"/>
    <property name="eclipselink.logging.level" value="ALL"/>
    <property name="eclipselink.orm.validate.schema" value="true"/>
    <property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@hera:1521:orcl"/>
    </properties>
    </persistence-unit>
    </persistence>
    package com.soacookbook;
    import com.soacookbook.entities.Product;
    import java.util.ArrayList;
    import java.util.Hashtable;
    import java.util.Iterator;
    import java.util.List;
    import javax.persistence.EntityManager;
    import javax.persistence.EntityManagerFactory;
    import javax.persistence.Persistence;
    import javax.persistence.Query;
    import javax.xml.bind.annotation.XmlRootElement;
    @XmlRootElement
    public class ProductCatalog {
    private EntityManager entityManager;
    private Hashtable emProps = new Hashtable();
    private List<Product> products;
    public ProductCatalog() {
    super();
    products= this.getAllProducts();
    public List<Product> getAllProducts(){
    EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("example8-1");
    entityManager= entityManagerFactory.createEntityManager(emProps);
    Query query= entityManager.createNamedQuery("Product.findAll");
    System.out.println(" Results number: " + query.getMaxResults());
    return query.getResultList();
    public void setProducts(List<Product> products) {
    this.products = products;
    package com.soacookbook;
    import java.io.IOException;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.xml.bind.JAXBContext;
    import javax.xml.bind.JAXBException;
    import javax.xml.bind.Marshaller;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.transform.Source;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Document;
    public class SimpleRestServlet extends HttpServlet {
    private static final String CONTENT_TYPE = "text/xml; charset=UTF-8";
    private static final String DOC_TYPE = null;
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public SimpleRestServlet() {
    super();
    protected void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    System.out.println("DoGet invoked on RESTful service.");
    ProductCatalog catalog = new ProductCatalog();
    Source xmlSource = asXml(catalog);
    ServletOutputStream out = response.getOutputStream();
    response.setContentType("text/xml");
    StreamResult st = new StreamResult(out);
    try {
    Transformer t = TransformerFactory.newInstance().newTransformer();
    t.transform(xmlSource, st);
    } catch (Exception e) {
    throw new ServletException(e);
    System.out.println("All done.");
    private static Source asXml(ProductCatalog pc) throws ServletException {
    System.out.println("Marshalling...");
    Source source = null;
    Document doc = null;
    try {
    JAXBContext ctx = JAXBContext.newInstance(ProductCatalog.class);
    Marshaller m = ctx.createMarshaller();
    DocumentBuilder parser =
    DocumentBuilderFactory.newInstance().newDocumentBuilder();
    doc = parser.newDocument();
    System.out.println("Products=" + pc);
    m.marshal(pc, doc);
    System.out.println("Marshalled catalog to XML.");
    } catch (JAXBException je) {
    throw new ServletException(je);
    } catch (ParserConfigurationException pce) {
    throw new ServletException(pce);
    source = new DOMSource(doc);
    System.out.println("Returning XML source.");
    return source;
    protected void doPost(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    doGet(request, response);
    package com.soacookbook.entities;
    import java.io.Serializable;
    import java.math.BigDecimal;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.xml.bind.annotation.XmlType;
    @XmlType
    @Entity
    @NamedQueries( { @NamedQuery(name = "Product.findAll",
    query = "select o from Product o") })
    public class Product implements Serializable {
    private String id;
    private String name;
    private BigDecimal price;
    public Product() {
    public Product(String id, String name, BigDecimal price) {
    this.id = id;
    this.name = name;
    this.price = price;
    @Id
    @Column(nullable = false)
    public String getId() {
    return id;
    public void setId(String id) {
    this.id = id;
    public String getName() {
    return name;
    public void setName(String name) {
    this.name = name;
    public BigDecimal getPrice() {
    return price;
    public void setPrice(BigDecimal price) {
    this.price = price;
    Finally, the perfectly working java SE client:
    package com.soacookbook.client;
    import com.soacookbook.ProductCatalog;
    import com.soacookbook.entities.Product;
    import java.util.ArrayList;
    import java.util.Hashtable;
    import java.util.Iterator;
    import java.util.List;
    import javax.persistence.EntityManager;
    import javax.persistence.EntityManagerFactory;
    import javax.persistence.Persistence;
    import javax.persistence.Query;
    public class ProductCatalogSEClient {
    private EntityManager entityManager;
    private Hashtable emProps = new Hashtable();
    public ProductCatalogSEClient() {
    super();
    public static void main(String[] args) {
    ProductCatalogSEClient productCatalogSEClient = new ProductCatalogSEClient();
    List<Product> products = productCatalogSEClient.getAllProducts();
    Iterator i = products.iterator();
    while (i.hasNext())
    Product product = (Product) i.next();
    System.out.println("Id:"+ product.getId() +" Name:"+product.getName() + " price " + product.getPrice());
    public List<Product> getAllProducts(){
    EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("JavaSEClient");// not the same with example8-1 !
    entityManager= entityManagerFactory.createEntityManager(emProps);
    Query query= entityManager.createNamedQuery("Product.findAll");
    System.out.println(" Results number: " + query.getMaxResults());
    return query.getResultList();
    Thanks in advance for any help!
    NA
    Edited by: NA on Aug 22, 2011 10:56 AM

    Thank you for your reply!
    It ran successfully having the following modifications:
    <?xml version="1.0" encoding="UTF-8" ?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
    version="1.0">
    <persistence-unit name="example8-1">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <jta-data-source>jdbc/fusionEJB3</jta-data-source>
    <class>com.soacookbook.entities.Product</class>
    <properties>
    <property name="eclipselink.target-server" value="WebLogic_10"/>
    <property name="eclipselink.target-database" value="Oracle"/>
    <property name="eclipselink.logging.level" value="ALL"/>
    </properties>
    </persistence-unit>
    <persistence-unit name="JavaSEClient" transaction-type="RESOURCE_LOCAL">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <class>com.soacookbook.entities.Product</class>
    <properties>
    <property name="eclipselink.target-server" value="WebLogic_10"/>
    <property name="eclipselink.target-database" value="Oracle"/>
    <property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver"/>
    <property name="javax.persistence.jdbc.password" value="fusionEJB3"/>
    <property name="javax.persistence.jdbc.user" value="fusionEJB3"/>
    <property name="eclipselink.logging.level" value="ALL"/>
    <property name="eclipselink.orm.validate.schema" value="true"/>
    <property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@hera:1521:orcl"/>
    </properties>
    </persistence-unit>
    </persistence>
    Strangely, the password string fusionEJB3, however changed to:
    <property name="javax.persistence.jdbc.password"
    value="57DAF0ADC12F7C37C6EC6D357C70ABD33754E34C120EB192D80F6E3B564BA6C8"/>
    Edited by: NA on Aug 23, 2011 9:48 AM

Maybe you are looking for

  • Delete a calendar without deleting past events? (iCal 5.0.3)

    Hi, Is there a way I can delete one of my calendars on iCal without losing all the past events? Right now, if I just delte it I get a warning that all event in that sequence will be gone. Thank you

  • TS4531 Bootcamp: Hdmi display not recognized windows 7

    i have a late 2012 macbook pro retina with bootcamp windows 7 installed, when i try to connect a display on the hdmi port, nothings happen its like theres drivers missing for the hdmi port. i tried all possible things, went to screen resolution optio

  • How to get past terms of use page

    When I sign in I reach the terms of use page. How do I accept and continue? kelvyn999

  • Repairing permissions on a new MAC PRO .... why are they NOT repairing?

    Hi. Thanks for reading this. I just got a MAC PRO running OS 10.5.7 Processor is a 2 x 2.93 GHz Quad Core Intel Xeon Four 1 TB internal hard drives 6 GB RAM I am up to date on everything. (Just ran software update this morning before typing this) I K

  • Group Account Number

    Hi FiCo Masters, I'm getting the Error message text " Make an entry in field  Group Account Number" while i am trying to createa a GL account. Can you pls help me to create a GL account without giving Group account number. Regards, Yatheendra Nath