Urgent!  LDAPRealm and JNDI provider

I must setup ldap realm using Site Server. According to
Service Pack 6, Sun's service provider doesn't work with
Site Server. I set-up Netscapes's as was advised. The
problem is that Weblogic can't find LdapContextFactory
class file (part of ldapsp.jar). This is how it is setup in
my StartWeblogic.cmd:
WEBLOGIC_CLASSPATH=.\license;.\classes;.\lib;.\lib\ldapsp.jar;
.\lib\weblogicaux.jar;.\lib\ldapfilt.jar;.\lib\ldapjdk.jar;
.\myserver\serverclasses
Also I tried to put it in my JAVA_CLASSPATH. JAR files are
in LIB folder with other jar files. Weblogic sees all of
them except these. I tried to use these libraries from a
stand-alone client talking to directory server and it works
fine.
Please advise.
Thank you, Boris
Here is a console message:
Unable to initialize server: weblogic.security.ldaprealm.LDAPException: could not
get context - with nested exception:
[java.lang.reflect.InvocationTargetException - with
target exception:
[javax.naming.NoInitialContextException: Cannot
instantiate class:  com.netscape.jndi.ldap.LdapContextFactory  [Root exception is java.lang.ClassNotFoundException:
com/netscape/jndi/ldap/LdapContextFactory ]]]
fatal initialization exception
weblogic.security.ldaprealm.LDAPException: could not
get context - with nested exception:
[java.lang.reflect.InvocationTargetException - with
target exception:
[javax.naming.NoInitialContextException: Cannot
instantiate class: com.netscape.jndi.ldap.LdapContextFactory 
[Root exception is java.lang.ClassNotFoundException:  com/netscape/jndi/ldap/LdapContextFactory ]]]
at weblogic.security.ldaprealm.LDAPDelegate.getContext
(LDAPDelegate.java:212)
at weblogic.security.ldaprealm.LDAPDelegate.lookup
(LDAPDelegate.java:232)
at weblogic.security.ldaprealm.LDAPDelegate.search
(LDAPDelegate.java:345)
at weblogic.security.ldaprealm.LDAPDelegate.search
(LDAPDelegate.java:354)
at weblogic.security.ldaprealm.LDAPDelegate.getGroupMembers
(LDAPDelegate.java:553)
at weblogic.security.ldaprealm.LDAPDelegate.getGroup
(LDAPDelegate.java:539)
at weblogic.security.ldaprealm.LDAPDelegate.getGroup
(LDAPDelegate.java:527)
at weblogic.security.ldaprealm.LDAPRealm.getGroup
(LDAPRealm.java:75)
at weblogic.security.acl.CachingRealm.getGroup
(CachingRealm.java:1420)
at weblogic.security.acl.CachingRealm.getPrincipal
(CachingRealm.java:1020)
at weblogic.security.acl.CachingRealm.addPermission
(CachingRealm.java:813)
at weblogic.security.acl.CachingRealm.setupAcls
(CachingRealm.java:802)
at weblogic.security.acl.CachingRealm.<init>
(CachingRealm.java:706)
at weblogic.security.acl.CachingRealm.<init>
(CachingRealm.java:564)
at weblogic.t3.srvr.T3Srvr.initializeSecurity
(T3Srvr.java:1750)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1086)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)

Exception in thread "main"
java.security.NoSuchAlgorithmException: Algorithm
PBEWithSHAANDTwofish-CBC not avai
lable
at javax.crypto.SunJCE_b.a(DashoA6275)Well, you're clearly not finding BC.
Here's the deal.
I have done the following:
I have downloaded the bouncycastle for jdk 1.4 from
bouncycastle.org.I read somewhere in there that i also
had to download and change the jurisdiction.jar policy
files shpped in the jce.Ive done that too. jurisdiction.jar? Not something I've ever had to do. Are you thinking of the unlimited-strength jars? Those are local_policy and US_export_policy.jar.
I have also
pasted the .jar file bouncycastle after i jarred it
myselfYou re-jarred BC? That won't work - the jar has to be signed, or JCE complains. If you rejar it, it won't be signed correctly, and you'll get an error when JCE goes to load it.
in the jre both in j2sdk as well as C:\program
files\java\security. Providers go in lib/ext, not JAVA_HOME/security.
However, after having done all that i still keep
getting the same errorHave you added BC to the java.security file, as the second Provider? (You need to leave SunJCE as the first one) If not, and after you put the BC jarfile (untouched by you!) into lib/ext, add this code to the start of your app:Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
What am i doing wrong?Is there a complete proper site
that tells u exactly what to do as to how to add this
provider??http://java.sun.com/j2se/1.4.2/docs/guide/security/jce/JCERefGuide.html#InstallProvider
Do i perhaps need to include the bouncycastle provider
in my code as well???You can - see above. But java.security is the file to modify if you want to add it statically.
Grant

Similar Messages

  • Crystal Reports 2008 - Eclipse and JNDI connection.

    I am evaluting Crystal Reports 2008 .
    I want to use JNDI connection that is defined within my app server by Crystal reports so that I'll have better control of the properties defined.
    How do I set up JNDI data source connection in Crystal Reports 2008 ?
    I defined the following parameters u2026
                    JNDI Provider URL : jnp://localhost:1099
                    Initla Context as :  org.jnp.interfaces.NamingContextFactory
    And user name / password  as defined in JBoss setup
    I also have  u201Cjboss\client\jbossall-client.jaru201D in the classpath .     
    But I am getting Cannot instantiate class exception .
    Thanks in Advance for the help.

    Mr. Ted, We can expose JNDI connections from the appserver. Infact the database connection pool resoures are exposed as JNDI resources, JMS factory and connections are exposed as JNDI etc.
    In fact, JNDI is a means of securely exposing the resources managed by the app server to be used by trusted clients.
    We have achieved this on weblogic (8.1 - JDK 1.4.2) but we would like to replicate the same in glassfish app server ver 3.1.2 and would require the proper factory placed inside the rpt as well as the CRConfig.xml.
    Otherwise, (if we are using conventional URL string) when we ship the rpt files, we need to place this only as localhost. This mandates the presence of rpt files to be in the same server as database server and database. We want to avaoid this by creating a JNDI and use that database access resource inside the rpt files.

  • Using JNDI Provider for Oracle JMS Queue

    Hello,
    I created a JMS Queue in Oracle 9.2.0.1 and would like
    a Java client to receive events from the Queue. I am
    not running Oracle9iAS. I have access to WebLogic server
    7.0 which is also a JNDI provider. Is there a sample code
    that shows the steps on how to go about this.
    thanks very much for any pointers.

    To define an Enterprise Message Source for AS JMS and OJMS in BAM, see Chapter 3 in the BAM Architect's User Guide.
    Specifying Settings for Oracle (AS JMS and OJMS)
    Settings for Oracle (AS JMS and OJMS) include:
    ■ Initial Context Factory.
    For 10.1.3: oracle.j2ee.rmi.RMIInitialContextFactory
    For 10.1.2: com.evermind.server.rmi.RMIInitialContextFactory
    ■ JNDI Service Provider URL. For standalone use oc4j: ormi://machine_name/
    where machine_name is the OC4J installed host, and for production use Application Server: opmn:ormi://<machine_name>:<opmn request port>:home where machine_name is the application server installed host, opmn request port could be found from looking at opmn.xml in <App server install location>/opmn/conf
    ■ TopicConnectionFactory Name.
    java:comp/resource/BAMTTT/TopicConnectionFactories/bam_ttq_tab
    ■ Topic Name. java:comp/resource/BAMTTT/Topics/bam_ttq
    ■ JMS Message Type. TextMessage.
    ■ Durable Subscriber Name. BAMFilteredSubscription
    ■ Message Selector. Message selector, for example, BAMFilter='true'
    ■ Client ID. ClientID
    You can also refer to:
    http://www.oracle.com/technology/products/integration/bam/10.1.3/TechNotes/TechNote_BAM_AQ_Configuration.pdf
    Regards, Stephen

  • Implementing JMS-based EDN and JNDI-based EDN

    I´m implementing a composite with two kinds of events JMS and JNDI and I saw in the configuration for JMS-base I must remove the EDN-DB JNDI sources to use EDN-JMS data sources. My doubt is, does my composite will work with that two kinds of events?
    All the best,
    Pierre

    This is a functional desire that has come up on some of our projects too but is not directly supported by EDN. We have discussed the idea of EDN proxies (either as SOA Composites or as PL/SQL EDN subscribers). These proxies (presumably always active/deployed) would subscribe to EDN and provide a persistent buffer for the application. This is essentially implementing a persistence queue for each subscriber, but we wish to avoid statically configuring an AQ or JMS queue destination for each and every app subscription case and perhaps use some shared-but-keyed persistence design (e.g. database table).
    Architecturally, this starts to hit on the ever evasive and controversial question of what is an "Event" versus what is a "Message". i.e. can you afford to sometimes miss the former but not the latter?
    -Todd

  • OC4J Server startup classes and JNDI

    Hi,
    I have been using server startup classes in standalone OC4J provided with BPEL developer install to populate data from the server.xml into the JNDI server.
    Now I am deploying the BP to 10gAS and am unable to identify the configuration files that affect the contents of the JNDI server which is accessible from BPEL.
    Can anyone advise?
    Thanks,
    Toby

    Clemens,
    What we would like to do is to lookup configuration details in OC4J's JNDI server.
    As an example, we have an ftp web service that is used for functionality not available in the FTP adapters, deleting files, executing remote commands etc.
    We need to store the details of ftp connections somewhere centrally, and jndi looks like a good option. Something slightly different we would like to do here is to be able to access the configuration details that the FTP Adapters use, but if that's not possible, seperate entries in the jndi server would be good.
    To populate the JNDI server, we have written a server startup class which loads our custom configuration details at OC4J startup.
    This works fine under the OC4J supplied with a developer install, but when we deploy our code to a full blown 10g AS we cannot access the config information.

  • LDAPRealm and Microsoft Site Server (LDAP)

    I have problem setting up the LDAPRealm in Weblogic Commerce 2.0.1 and
    Personalisation Server connecting to a Microsoft Site Server.
    The ldaprealm.properties file is as below:
    weblogic.security.ldaprealm.url=ldap://localhost:389
    weblogic.security.ldaprealm.principal=cn=Administrator
    weblogic.security.ldaprealm.credential=password
    weblogic.security.ldaprealm.ssl=false
    weblogic.security.ldaprealm.authentication=none
    weblogic.security.ldaprealm.userAuthentication=local
    weblogic.security.ldaprealm.version=2
    weblogic.security.ldaprealm.userDN=o=test, ou=Members
    weblogic.security.ldaprealm.userNameAttribute=cn
    weblogic.security.ldaprealm.userPasswordAttribute=userpassword
    weblogic.security.ldaprealm.userCommonNameAttribute=cn
    weblogic.security.ldaprealm.groupDN=o=test, ou=Groups
    weblogic.security.ldaprealm.groupNameAttribute=cn
    weblogic.security.ldaprealm.groupIsContext=true
    weblogic.security.ldaprealm.groupUsernameAttribute=cn
    The server runs and halts at the last line of log:
    Fri Jul 28 11:58:21 GMT 2000:<I> <WebLogicServer> Server loading from
    weblogic.class.path. EJB redeployment enabled.
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> acl size = 211, pos ttl =60,
    neg ttl = 10
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> auth size = 211, pos ttl =
    60, neg ttl = 10
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> group size = 17, pos ttl =
    600, neg ttl = 600
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> perm size = 10000, pos ttl =
    600, neg ttl = 600
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> user size = 10000, pos ttl =
    600, neg ttl = 600
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> getAclOwner("weblogic")
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> rewriting ACL
    "weblogic.jdbc.connectionPool.commercePool"
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> getPermission("reserve")
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> perm: backup HAS reserve
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> getPrincipal("everyone")
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> getGroup("everyone")
    Fri Jul 28 11:58:21 GMT 2000:<D> <LDAPRealm> getGroup("everyone")
    Fri Jul 28 11:58:21 GMT 2000:<D> <LDAPRealm> search("o=telewest, ou=Groups,
    cn=everyone", "cn", "*")
    Fri Jul 28 11:58:21 GMT 2000:<D> <LDAPRealm> lookup("o=telewest, ou=Groups,
    cn=everyone")
    Fri Jul 28 11:58:21 GMT 2000:<D> <LDAPRealm> new JNDI context
    The server halted at that line. Can anyone explain that situation?
    We are sure that we could connect to the LDAP server since we have a JSP
    page connecting to the LDAP using the SUN's jndi-ldap driver. Would that be
    a LDAP version problem, if that is so, how could we set the
    "java.naming.ldap.version=2" environment variable as I have said in my JSP
    page.
    Thanks for answering.

    Yes, sorry by the mistake.
    "ramesh" <[email protected]> wrote:
    I think Johnny is trying to say : "If you change to SP9" or above...
    Try to get a copy of the ldaprealm.properties file from the unzipped
    SP8 and
    above. It is self explanatory from there. The current ldaprealm.properties
    which comes with WLS 5.1 and upto sp7 has been changed in SP8 and above.
    Yes my configuration is also same as his.
    Hope this helps.
    Ramesh
    "Johnny Valdez" <[email protected]> wrote in message
    news:3b44ebb3$[email protected]..
    I recommend you change your service pack to 9, because the 6 has someproblems
    with LDAP...
    if you change to sp6 you could use this
    ### Server type
    server.alias=microsoft
    ### Microsoft Site Server
    # This follows the default Microsoft Site Server (MSS) schema.
    microsoft.server.host=ldapserver.example.com
    microsoft.server.principal=cn=Administrator, ou=Members,o=ExampleMembershipDir
    # microsoft.server.credential=*secret*
    microsoft.user.dn=ou=Members, o=ExampleMembershipDir
    microsoft.user.filter=(&(cn=%u)(objectclass=member))
    microsoft.group.dn=ou=Groups, o=ExampleMembershipDir
    microsoft.group.filter=(&(cn=%g)(objectclass=mgroup))
    create a file ldaprealm.properties with this configuration and saveit
    into the
    Weblogic root directory.
    greetings..
    "Satya Ghattu" <[email protected]> wrote:
    Hello,
    I am trying to use an Microsoft site server as my LDAPRealm with weblogic
    5.1 sp6, but in vain. Is there anybody out there who configured microsoft
    site server with WLS sp6 and lesser? If yes, could you please post
    your
    configuaration properties?
    Thank you,
    -satya

  • LDAPRealm and Microsoft Site Server, server halting at start-up

    I have problem setting up the LDAPRealm in Weblogic Commerce 2.0.1 and
    Personalisation Server connecting to a Microsoft Site Server.
    The ldaprealm.properties file is as below:
    weblogic.security.ldaprealm.url=ldap://localhost:389
    weblogic.security.ldaprealm.principal=cn=Administrator
    weblogic.security.ldaprealm.credential=password
    weblogic.security.ldaprealm.ssl=false
    weblogic.security.ldaprealm.authentication=none
    weblogic.security.ldaprealm.userAuthentication=local
    weblogic.security.ldaprealm.version=2
    weblogic.security.ldaprealm.userDN=o=test, ou=Members
    weblogic.security.ldaprealm.userNameAttribute=cn
    weblogic.security.ldaprealm.userPasswordAttribute=userpassword
    weblogic.security.ldaprealm.userCommonNameAttribute=cn
    weblogic.security.ldaprealm.groupDN=o=test, ou=Groups
    weblogic.security.ldaprealm.groupNameAttribute=cn
    weblogic.security.ldaprealm.groupIsContext=true
    weblogic.security.ldaprealm.groupUsernameAttribute=cn
    The server runs and halts at the last line of log:
    Fri Jul 28 11:58:21 GMT 2000:<I> <WebLogicServer> Server loading from
    weblogic.class.path. EJB redeployment enabled.
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> acl size = 211, pos ttl =60,
    neg ttl = 10
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> auth size = 211, pos ttl =
    60, neg ttl = 10
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> group size = 17, pos ttl =
    600, neg ttl = 600
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> perm size = 10000, pos ttl =
    600, neg ttl = 600
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> user size = 10000, pos ttl =
    600, neg ttl = 600
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> getAclOwner("weblogic")
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> rewriting ACL
    "weblogic.jdbc.connectionPool.commercePool"
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> getPermission("reserve")
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> perm: backup HAS reserve
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> getPrincipal("everyone")
    Fri Jul 28 11:58:21 GMT 2000:<D> <CachingRealm> getGroup("everyone")
    Fri Jul 28 11:58:21 GMT 2000:<D> <LDAPRealm> getGroup("everyone")
    Fri Jul 28 11:58:21 GMT 2000:<D> <LDAPRealm> search("o=telewest, ou=Groups,
    cn=everyone", "cn", "*")
    Fri Jul 28 11:58:21 GMT 2000:<D> <LDAPRealm> lookup("o=telewest, ou=Groups,
    cn=everyone")
    Fri Jul 28 11:58:21 GMT 2000:<D> <LDAPRealm> new JNDI context
    The server halted at that line. Can anyone explain that situation?
    We are sure that we could connect to the LDAP server since we have a JSP
    page connecting to the LDAP using the SUN's jndi-ldap driver. Would that be
    a LDAP version problem, if that is so, how could we set the
    "java.naming.ldap.version=2" environment variable as I have said in my JSP
    page.
    Thanks for answering.

    Yes, sorry by the mistake.
    "ramesh" <[email protected]> wrote:
    I think Johnny is trying to say : "If you change to SP9" or above...
    Try to get a copy of the ldaprealm.properties file from the unzipped
    SP8 and
    above. It is self explanatory from there. The current ldaprealm.properties
    which comes with WLS 5.1 and upto sp7 has been changed in SP8 and above.
    Yes my configuration is also same as his.
    Hope this helps.
    Ramesh
    "Johnny Valdez" <[email protected]> wrote in message
    news:3b44ebb3$[email protected]..
    I recommend you change your service pack to 9, because the 6 has someproblems
    with LDAP...
    if you change to sp6 you could use this
    ### Server type
    server.alias=microsoft
    ### Microsoft Site Server
    # This follows the default Microsoft Site Server (MSS) schema.
    microsoft.server.host=ldapserver.example.com
    microsoft.server.principal=cn=Administrator, ou=Members,o=ExampleMembershipDir
    # microsoft.server.credential=*secret*
    microsoft.user.dn=ou=Members, o=ExampleMembershipDir
    microsoft.user.filter=(&(cn=%u)(objectclass=member))
    microsoft.group.dn=ou=Groups, o=ExampleMembershipDir
    microsoft.group.filter=(&(cn=%g)(objectclass=mgroup))
    create a file ldaprealm.properties with this configuration and saveit
    into the
    Weblogic root directory.
    greetings..
    "Satya Ghattu" <[email protected]> wrote:
    Hello,
    I am trying to use an Microsoft site server as my LDAPRealm with weblogic
    5.1 sp6, but in vain. Is there anybody out there who configured microsoft
    site server with WLS sp6 and lesser? If yes, could you please post
    your
    configuaration properties?
    Thank you,
    -satya

  • Failed to lookup JNDI provider

    Hi All,
    I'm facing a problem sending Messages to a Queue within an OpenJMS server.
    When I send the messages to a OpenJMS server runnin on my LocalHost, It is SUCCESSFUL.
    then, I simply change the IP adress of the server (another machine on my local network) ... and here, I obtain the follwing exception :
    Failed to lookup JNDI provider for URL: tcp://192.168.4.71:3035/
    here is the code I'm using ( and where the exception is raised ):
    Hashtable properties = new Hashtable();
    properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.exolab.jms.jndi.InitialContextFactory");
    properties.put(Context.PROVIDER_URL, "tcp://192.168.4.71:3035/" );
    context = new InitialContext(properties);Any help and suggestion please ?!
    It's urgent

    for more details :
    this is the nested Exception I'm getting :
    nested exception is:
    java.io.InvalidClassException: org.exolab.jms.net.proxy.Proxy;
    local class incompatible: stream classdesc serialVersionUID = -3335702252244367740, local class serialVersionUID = 1
    ?

  • BAM Connection in 12C -  Failed to establish a connection to localhost at port 7004.Please verify the Bam server host and JNDI port.

    Hi,
    BAM server is running on 7004 in our local system.
    We need o connect to BAM server from OSB service.
    We tried to use the BAM adapter in the pipeline in 12c, We received Failed to establish a connection to localhost at port 7004.Please verify the Bam server host and JNDI port.
    Please let us know the resolution to this issue.
    Also please provide some links/steps to connect from OSB service to BAM server in 12c.
    Thanks,

    In BAM 12c, you can send data via JMS by configuring an EMS in BAM using the "self-described" payload. Make sure the date formats match correctly. You can configure an error queue which will show you any data parsing problems.
    For example,
    <msgRoot dataObjectName="Student" operationType="insert" keys="RequestId">
       <RequestId>R1000</RequestId>
       <StudentId>S12345</StudentId>
       <RequestType>Admission</RequestType>
       <RequestStatus>Open</RequestStatus>
       <RequestMessage>Please Admin</RequestMessage>
       <RequestCode>3</RequestCode>
       <SubmitTime>2015-03-17 18:23:07</SubmitTime>
       <ApprovalTime>2015-02-18 18:23:07</ApprovalTime>
    </msgRoot>

  • JNDI Provider Connection With Weblogic 8.1

    Hi all,
    I am using SUN ONE Studio V 5.0 update 1 with weblogic 8.1 integrated with it.
    Today I have added weblogic.jar in the classpath of the project.
    Now I went to "runtime tab" and installed a jndi provider with factoryname and url successfully.
    I tested the provider successfully :)
    But when I tried to connect it to the service it failed.
    IDE thrown a NPE and error message in dialog appears, says "TimeOut value is too short to connect".
    There is no option for setting this timeout value.
    Could any one pls help me regarding this. How can I get connected to JNDI service given by WL 8.1 ?
    Has anyone also faced such problem ?
    My server is up and smiling on me.
    I am adding that error message fully....
    java.lang.NullPointerException
         at weblogic.rmi.internal.StubGenerator.getStubOnClient(StubGenerator.java:785)
         at weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerator.java:758)
         at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:803)
         at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
         at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
         at weblogic.common.internal.RMIBootServiceStub.getStub(RMIBootServiceStub.java:50)
         at weblogic.security.acl.internal.Security.authenticate(Security.java:152)
         at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateRemotely(WLInitialContextFactoryDelegate.java:597)
         at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:534)
         at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:336)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:308)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:234)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
         at javax.naming.InitialContext.init(InitialContext.java:219)
         at javax.naming.InitialContext.<init>(InitialContext.java:195)
         at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:80)
         at org.netbeans.modules.jndi.JndiDirContext.<init>(JndiDirContext.java:47)
         at org.netbeans.modules.jndi.JndiDataType$1$Connector.checkContextValidity(JndiDataType.java:211)
         at org.netbeans.modules.jndi.JndiDataType$1$Connector.run(JndiDataType.java:169)
         at java.lang.Thread.run(Thread.java:534)
    --------------- nested within: ------------------
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate class for weblogic.common.internal.RMIBootServiceImpl_811_WLStub ] - with nested exception:
    [java.lang.NullPointerException]
         at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:807)
         at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
         at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
         at weblogic.common.internal.RMIBootServiceStub.getStub(RMIBootServiceStub.java:50)
         at weblogic.security.acl.internal.Security.authenticate(Security.java:152)
         at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateRemotely(WLInitialContextFactoryDelegate.java:597)
         at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:534)
         at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:336)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:308)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:234)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
         at javax.naming.InitialContext.init(InitialContext.java:219)
         at javax.naming.InitialContext.<init>(InitialContext.java:195)
         at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:80)
         at org.netbeans.modules.jndi.JndiDirContext.<init>(JndiDirContext.java:47)
         at org.netbeans.modules.jndi.JndiDataType$1$Connector.checkContextValidity(JndiDataType.java:211)
         at org.netbeans.modules.jndi.JndiDataType$1$Connector.run(JndiDataType.java:169)
    [catch] at java.lang.Thread.run(Thread.java:534)
    one this more, if u see help then it is written that WL plugin will work only with jdk 1.3.1 and not with 1.4 but my plugin works successfully. What does it mean ?
    My userdir is : C:\Utility\Dir4j, when I installed the provider for connecting to JNDI service of WL, then IDE created a dir C:\Utility\Dir4j\system\JNDI folder and created weblogic_jndi_WLInitialContextFactory.impl file under it.
    Because I added that weblogic.jar file on my FSystem thats' why It created it under my userdir.
    Pls Help
    Sanjeev

    Hi Sanjeev :
    I am running into the same problem . Could you please be kind enough to tell me how you fixed the problem. I followed your solution but I am still running into the same problem.
    Basically my WebStart application should be getting a connection from the Connection pool making a t3 call to a Weblogic server.
    Thanks in advance .

  • Problem with OpenLDAP and JNDI

    I'm having problem working with OpenLDAP and JNDI.
    First I have changed LDAP's slapd.conf file:
    suffix          "dc=antipodes,dc=com"
    rootdn          cn=Manager,dc=antipodes,dc=com
    directory     "C:/Program Files/OpenLDAP/data"
    rootpw          secret
    schemacheck offthan i used code below, to create root context:
    package test;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.naming.NameAlreadyBoundException;
    import javax.naming.directory.*;
    import java.util.*;
    public class MakeRoot {
         final static String ldapServerName = "localhost";
         final static String rootdn = "cn=Manager,dc=antipodes,dc=com";
         final static String rootpass = "secret";
         final static String rootContext = "dc=antipodes,dc=com";
         public static void main( String[] args ) {
                   // set up environment to access the server
                   Properties env = new Properties();
                   env.put( Context.INITIAL_CONTEXT_FACTORY,
                              "com.sun.jndi.ldap.LdapCtxFactory" );
                   env.put( Context.PROVIDER_URL, "ldap://" + ldapServerName + "/" );
                   env.put( Context.SECURITY_PRINCIPAL, rootdn );
                   env.put( Context.SECURITY_CREDENTIALS, rootpass );
                   try {
                             // obtain initial directory context using the environment
                             DirContext ctx = new InitialDirContext( env );
                             // now, create the root context, which is just a subcontext
                             // of this initial directory context.
                             ctx.createSubcontext( rootContext );
                   } catch ( NameAlreadyBoundException nabe ) {
                             System.err.println( rootContext + " has already been bound!" );
                   } catch ( Exception e ) {
                             System.err.println( e );
    }this worked fine, I could see that by using "LDAP Browser/Editor".
    and then I tried to create group with code:
    package test;
    import java.util.Hashtable;
    import javax.naming.*;
    import javax.naming.ldap.*;
    import javax.naming.directory.*;
    public class MakeGroup
         public static void main (String[] args)
              Hashtable env = new Hashtable();
              String adminName = "cn=Manager,dc=antipodes,dc=com";
              String adminPassword = "secret";
              String ldapURL = "ldap://127.0.0.1:389";
              String groupName = "CN=Evolution,OU=Research,DC=antipodes,DC=com";
              env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
              //set security credentials, note using simple cleartext authentication
              env.put(Context.SECURITY_AUTHENTICATION,"simple");
              env.put(Context.SECURITY_PRINCIPAL,adminName);
              env.put(Context.SECURITY_CREDENTIALS,adminPassword);
              //connect to my domain controller
              env.put(Context.PROVIDER_URL,ldapURL);
              try {
                   // Create the initial directory context
                   LdapContext ctx = new InitialLdapContext(env,null);
                   // Create attributes to be associated with the new group
                        Attributes attrs = new BasicAttributes(true);
                   attrs.put("objectClass","group");
                   attrs.put("samAccountName","Evolution");
                   attrs.put("cn","Evolution");
                   attrs.put("description","Evolutionary Theorists");
                   //group types from IAds.h
                   int ADS_GROUP_TYPE_GLOBAL_GROUP = 0x0002;
                   int ADS_GROUP_TYPE_DOMAIN_LOCAL_GROUP = 0x0004;
                   int ADS_GROUP_TYPE_LOCAL_GROUP = 0x0004;
                   int ADS_GROUP_TYPE_UNIVERSAL_GROUP = 0x0008;
                   int ADS_GROUP_TYPE_SECURITY_ENABLED = 0x80000000;
                   attrs.put("groupType",Integer.toString(ADS_GROUP_TYPE_UNIVERSAL_GROUP + ADS_GROUP_TYPE_SECURITY_ENABLED));
                   // Create the context
                   Context result = ctx.createSubcontext(groupName, attrs);
                   System.out.println("Created group: " + groupName);
                   ctx.close();
              catch (NamingException e) {
                   System.err.println("Problem creating group: " + e);
    }got the error code: Problem creating group: javax.naming.directory.InvalidAttributeIdentifierException: [LDAP: error code 17 - groupType: attribute type undefined]; remaining name 'CN=Evolution,OU=Research,DC=antipodes,DC=com'
    I tried by creating organizational unit "ou=Research" from "LDAP Browser/Editor", and then running the same code -> same error.
    also I have tried code for adding users:
    package test;
    import java.util.Hashtable;
    import javax.naming.ldap.*;
    import javax.naming.directory.*;
    import javax.naming.*;
    import javax.net.ssl.*;
    import java.io.*;
    public class MakeUser
         public static void main (String[] args)
              Hashtable env = new Hashtable();
              String adminName = "cn=Manager,dc=antipodes,dc=com";
              String adminPassword = "secret";
              String userName = "cn=Albert Einstein,ou=Research,dc=antipodes,dc=com";
              String groupName = "cn=All Research,ou=Research,dc=antipodes,dc=com";
              env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
              //set security credentials, note using simple cleartext authentication
              env.put(Context.SECURITY_AUTHENTICATION,"simple");
              env.put(Context.SECURITY_PRINCIPAL,adminName);
              env.put(Context.SECURITY_CREDENTIALS,adminPassword);
              //connect to my domain controller
              env.put(Context.PROVIDER_URL, "ldap://127.0.0.1:389");
              try {
                   // Create the initial directory context
                   LdapContext ctx = new InitialLdapContext(env,null);
                   // Create attributes to be associated with the new user
                        Attributes attrs = new BasicAttributes(true);
                   //These are the mandatory attributes for a user object
                   //Note that Win2K3 will automagically create a random
                   //samAccountName if it is not present. (Win2K does not)
                   attrs.put("objectClass","user");
                        attrs.put("samAccountName","AlbertE");
                   attrs.put("cn","Albert Einstein");
                   //These are some optional (but useful) attributes
                   attrs.put("giveName","Albert");
                   attrs.put("sn","Einstein");
                   attrs.put("displayName","Albert Einstein");
                   attrs.put("description","Research Scientist");
                        attrs.put("userPrincipalName","[email protected]");
                        attrs.put("mail","[email protected]");
                   attrs.put("telephoneNumber","999 123 4567");
                   //some useful constants from lmaccess.h
                   int UF_ACCOUNTDISABLE = 0x0002;
                   int UF_PASSWD_NOTREQD = 0x0020;
                   int UF_PASSWD_CANT_CHANGE = 0x0040;
                   int UF_NORMAL_ACCOUNT = 0x0200;
                   int UF_DONT_EXPIRE_PASSWD = 0x10000;
                   int UF_PASSWORD_EXPIRED = 0x800000;
                   //Note that you need to create the user object before you can
                   //set the password. Therefore as the user is created with no
                   //password, user AccountControl must be set to the following
                   //otherwise the Win2K3 password filter will return error 53
                   //unwilling to perform.
                        attrs.put("userAccountControl",Integer.toString(UF_NORMAL_ACCOUNT + UF_PASSWD_NOTREQD + UF_PASSWORD_EXPIRED+ UF_ACCOUNTDISABLE));
                   // Create the context
                   Context result = ctx.createSubcontext(userName, attrs);
                   System.out.println("Created disabled account for: " + userName);
                   //now that we've created the user object, we can set the
                   //password and change the userAccountControl
                   //and because password can only be set using SSL/TLS
                   //lets use StartTLS
                   StartTlsResponse tls = (StartTlsResponse)ctx.extendedOperation(new StartTlsRequest());
                   tls.negotiate();
                   //set password is a ldap modfy operation
                   //and we'll update the userAccountControl
                   //enabling the acount and force the user to update ther password
                   //the first time they login
                   ModificationItem[] mods = new ModificationItem[2];
                   //Replace the "unicdodePwd" attribute with a new value
                   //Password must be both Unicode and a quoted string
                   String newQuotedPassword = "\"Password2000\"";
                   byte[] newUnicodePassword = newQuotedPassword.getBytes("UTF-16LE");
                   mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, new BasicAttribute("unicodePwd", newUnicodePassword));
                   mods[1] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, new BasicAttribute("userAccountControl",Integer.toString(UF_NORMAL_ACCOUNT + UF_PASSWORD_EXPIRED)));
                   // Perform the update
                   ctx.modifyAttributes(userName, mods);
                   System.out.println("Set password & updated userccountControl");
                   //now add the user to a group.
                        try     {
                             ModificationItem member[] = new ModificationItem[1];
                             member[0]= new ModificationItem(DirContext.ADD_ATTRIBUTE, new BasicAttribute("member", userName));
                             ctx.modifyAttributes(groupName,member);
                             System.out.println("Added user to group: " + groupName);
                        catch (NamingException e) {
                              System.err.println("Problem adding user to group: " + e);
                   //Could have put tls.close()  prior to the group modification
                   //but it seems to screw up the connection  or context ?
                   tls.close();
                   ctx.close();
                   System.out.println("Successfully created User: " + userName);
              catch (NamingException e) {
                   System.err.println("Problem creating object: " + e);
              catch (IOException e) {
                   System.err.println("Problem creating object: " + e);               }
    }same error.
    I haven't done any chages to any schema manually.
    I know I'm missing something crucial but have no idea what. I have tried many other code from tutorials from net, but they are all very similar and throwing the same error I showed above.
    thanks in advance for help.

    I've solved this.
    The problem was that all codes were using classes from Microsoft Active Directory, and they are not supported in OpenLDAP (microsoft.schema in OpenLDAP is just for info). Due to this some fields are not the same in equivalent classes ("user" and "person").
    so partial code for creating user in root would be:
    import java.util.Hashtable;
    import javax.naming.ldap.*;
    import javax.naming.directory.*;
    import javax.naming.*;
    import javax.net.ssl.*;
    import java.io.*;
    public class MakeUser
         public static void main (String[] args)
              Hashtable env = new Hashtable();
              String adminName = "cn=Manager,dc=antipodes,dc=com";
              String adminPassword = "secret";
              String userName = "cn=Albert Einstein,ou=newgroup,dc=antipodes,dc=com";
              env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
              //set security credentials, note using simple cleartext authentication
              env.put(Context.SECURITY_AUTHENTICATION,"simple");
              env.put(Context.SECURITY_PRINCIPAL,adminName);
              env.put(Context.SECURITY_CREDENTIALS,adminPassword);
              //connect to my domain controller
              env.put(Context.PROVIDER_URL, "ldap://127.0.0.1:389");
              try {
                   // Create the initial directory context
                   LdapContext ctx = new InitialLdapContext(env,null);
                   // Create attributes to be associated with the new user
                        Attributes attrs = new BasicAttributes(true);
                                  attrs.put("objectClass","user");
                   attrs.put("cn","Albert Einstein");
                   attrs.put("userPassword","Nale");
                   attrs.put("sn","Einstein");
                   attrs.put("description","Research Scientist");
                   attrs.put("telephoneNumber","999 123 4567");
                   // Create the context
                   Context result = ctx.createSubcontext(userName, attrs);
                   System.out.println("Successfully created User: " + userName);
              catch (NamingException e) {
                   System.err.println("Problem creating object: " + e);
    }hope this will help anyone.

  • My app store is not working after installing mavericks. When I open app store it repeatedly asking me to login with apple ID and to provide User name and Password for proxy authentication in a loop.I am a newbie to mac,Please help me.

    My app store is not working after installing mavericks. When I open app store it repeatedly asking me to login with apple ID and to provide User name and Password for proxy authentication in a loop.I am a newbie to mac,Please help me.

    Hmmmm... would appear that you need to be actually logged in to enable the additional menu features.
    Have you tried deletting the plists for MAS?
    This page might help you out...
    http://www.macobserver.com/tmo/answers/how_to_identify_and_fix_problems_with_the _mac_app_store
    Failing that, I will have to throw this back to the forum to see if anyone else can advise further.
    Let me know how you get on?
    Thanks.

  • Since my last firefox update, I have been unable to type an email - the text box does not appear when I press 'reply' , or press 'compose'. The email provider is '123-reg.co.uk. I have been using both firefox and the provider ['webfusion Ltd/webmail123] s

    Hello. Since my last firefox update, I have been unable to type an email - the box within which one would usually type does not appear when I press 'reply' to a received email, or press 'compose'. The email provider is '123-reg.co.uk. I have been using both firefox and the provider ['webfusion Ltd/webmail123] successfully for well over a year. The provider says it is a browser problem. I can still add an attachment to the email header, which successfully can be sent, but the recipient gets my standard email 'signature' with font messages and the attachment. Can anyone help? My email addresses are [email protected] [this is the one with the issue] and [email protected] in English
    == today

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • Problem with creating Connection pool and JNDI, driver is not detected

    Hi,
    I have an issue with creating Connection Pool and JNDI.
    I'm using:
    - JDK 1.6
    - OS: Linux(ubuntu 8.10)
    - Netbeans IDE 6.5.1
    - Java EE 5.0
    - Apache Tomcat 6.0.18 Its lib directory contains all necessary jar files for Oracle database driver
    - Oracle 11g Enterprise
    My problem is that the Oracle database driver is not detected when I want to create a pool (it works pretty well and is detected without any problem when I create ordinary connection by DriverManager)
    Therefore after running:
    InitialContext ic = new InitialContext();
    Context context = (Context)ic.lookup("java:comp/env");
    DataSource dataSource = (DataSource)context.lookup("jdbc/oracle11g");
    Connection connection = dataSource.getConnection();and right after dataSource.getConnection() I have the following exception:
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.OracleDriver'
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
    at servlets.Servlet1.doPost(Servlet1.java:47)
    at servlets.Servlet1.doGet(Servlet1.java:29)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1130)
    ... 17 more
    My application context file (context.xml) is:
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/WebApplication3">
      <Resource auth="Container"
                      driverClassName="oracle.jdbc.OracleDriver"
                      maxActive="8"
                      maxIdle="4"
                      name="jdbc/oracle11g"
                      username="scott"
                      password="tiger"
                      type="javax.sql.DataSource"
                      url="jdbc:oracle:thin:@localhost:1521:database01" />
    </Context>and my web.xml is:
        <resource-ref>
            <description>Oracle Datasource example</description>
            <res-ref-name>jdbc/oracle11g</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
        </resource-ref>
    ...I found similar threads in different forums including sun, such as
    http://forums.sun.com/thread.jspa?threadID=567630&start=0&tstart=0
    http://forums.sun.com/thread.jspa?threadID=639243&tstart=0
    http://forums.sun.com/thread.jspa?threadID=5312178&tstart=0
    , but no solution.
    As many suggest, I also tried to put context directly in the server.xml (instead of my application context) and referencing it by <ResourceLink /> inside my application context but it didn't work and instead it gave me the following message:
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '   ' for connect URL 'null'
    Has anyone succeeded in creating a connection pool with JNDI by using Tomcat 6 or higher ? If yes, could kindly explain about the applied method.
    Regards,

    Hello again,
    Finally I managed to run my application also with Tomcat 6.0.18. There was only two lines that had to be modified
    in the context.xml file (the context of my application project and not server's)
    Instead of writing
    <Context antiJARLocking="true" path="/WebApplication2">
        type="javax.sql.DataSource"
        factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
    </Context>we had to write:
    <Context antiJARLocking="true" path="/WebApplication2">
        type="oracle.jdbc.pool.OracleDataSource"
        factory="oracle.jdbc.pool.OracleDataSourceFactory"
    </Context>- No modification was needed to be done at server level (niether server.xml nor server context.xml)
    - I just added the ojdbc6.jar in $CATALINA_HOME/lib (I didn't even need to add it in WEB-INF/lib of my project)
    - The servlet used to do the test was the same that I presented in my precedent post.
    For those who have encountered my problem and are interested in the format of the web.xml and context.xml
    with Tomcat 6.0, you can find them below:
    Oracle server: Oracle 11g Enterprise
    Tomcat server version: 6.0.18
    Oracle driver: ojdbc.jar
    IDE: Netbeans 6.5.1
    The context.xml file of the web application
    <?xml version="1.0" encoding="UTF-8"?>
    <Context antiJARLocking="true" path="/WebApplication2">
        <Resource name="jdbc/oracle11g"
                  type="oracle.jdbc.pool.OracleDataSource"
                  factory="oracle.jdbc.pool.OracleDataSourceFactory"
                  url="jdbc:oracle:thin:@localhost:1521:database01"
                  driverClassName="oracle.jdbc.OracleDriver"
                  userName="scott"
                  password="tiger"
                  auth="Container"
                  maxActive="100"
                  maxIdle="30"
                  maxWait="10000"
                  logAbandoned="true"
                  removeAbandoned="true"
                  removeAbandonedTimeout="60" />
    </Context>The web.xml of my web application
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <resource-ref>
            <description>Oracle Database 11g DataSource</description>
            <res-type>oracle.jdbc.pool.OracleDataSource</res-type>
            <res-auth>Container</res-auth>
            <res-ref-name>jdbc/oracle11g</res-ref-name>
        </resource-ref>
        <servlet>
            <servlet-name>Servlet1</servlet-name>
            <servlet-class>servlets.Servlet1</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>Servlet1</servlet-name>
            <url-pattern>/Servlet1</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
            <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>
    </web-app>Ok, now I'm happy as the original problem is completely solved
    Regards

  • "Amount, currency, and date fields and service provider reset"

    Hi all,
    I am trying to save a trip request via TCode: TRIP but receive the following message:
    "Amount, currency, and date fields and service provider reset"   Messsage no. PTRA_WEB_INTERFACE150
    The system is on ECC6.0 with IS-PS (i.e. Funds management activated).
    Anyone encountered this previously - hope you can share your solution.
    Thanks in advance.

    Hi
    I am also facing the same and checked the table mention below and dates are same but still facing the error "Amount, currency, and date fields and service provider reset" along with other error message i.e "Expense type not allowed (T70S_RECEIPT)" .
    Please guide .
    V_T706B1
    V_T706B1_A
    V_T706B1_B
    V_T706B4
    V_T706B4_A

Maybe you are looking for

  • Can anyone tell me how to port forward and setup an XBOX 360 using my Time Capsule??

    Xbox 360 When playing the game online, the minimum speed of your network should be 128kbps. The ideal network speed for playing the game online is 768kbps. If you are having a problems with lag check the following: Network Troubleshooting: Disable an

  • In search of a sample application

    Folks, I 've been searching for hours for a simple sample jsp application that uses beans to interact with a database and has add, edit, delete functionality. I'm sure their are oodles of them out there somewhere but it's proving a nightmare trying t

  • Trigger Mail on Assigned JOB in Workflow

    Hi, I have to send mail to specified JOB (option in drop down of Recipient Type) in Workflow, but its not working though WF is not showing any error (showing success)  but user is not getting mail. I have changed it to Hard-Code user Name then user i

  • Setting up Unity Connection to email/call cell for new vmail msg

    Hello, I have been trying to setup Unity connection so that it will send an email to Exchange or a message toa cellphone alerting a user that they have a new vmail. I went in under my user account to test (under Edit\Notifcation Devices) and added my

  • No AFP connection from Intel iMacs 10.4.6

    Hi All, My clients have two new Intel iMacs running 10.4.6. They called me in because they were unable to log on to their network drive. When I got there, I noticed that when I went to the Go>Connect To Server window trying to connect via AFP did not


HashFlare