Problem with JAAS example in WLS6.0sp1

Hi,
I tried to run the SampleClient from the JAAS example in WLS6.0sp1 and got an
exception
when a valid username/password combination is entered. Has anyone experienced
that in WLS6.0sp1?
Thanx
Ralf
SampleLoginModule.initialize(), debug enabled
SampleLoginModule.initialize(), URL t3://localhost:7001
SampleLoginModule.login(), username guest
SampleLoginModule.login(), password guest
Authentication Failed: Unexpected Exception, java.lang.NoSuchMethodError
     at weblogic.security.auth.Authenticate.authenticate(Authenticate.java:124)
     at examples.security.jaas.SampleLoginModule.login(SampleLoginModule.java:157)
     at java.lang.reflect.Method.invoke(Native Method)
     at javax.security.auth.login.LoginContext.invoke(LoginContext.java:595)
     at javax.security.auth.login.LoginContext.access$000(LoginContext.java:125)
     at javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
     at java.security.AccessController.doPrivileged(Native Method)
     at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528)
     at javax.security.auth.login.LoginContext.login(LoginContext.java:449)
     at examples.security.jaas.SampleClient.main(SampleClient.java:92)

Weblogic comes with its own implementation of JAAS, unfortunately
conflicting with Sun's. Contact customer support, they will tell you the
exact differences and incompatibilities. Or reverse engineer the two
versions, you'll find quite a few differences (apart from the BEA version
not implementing JAAS authorization, which is documented).
"Narinder Gaheer" <[email protected]> wrote in message
news:[email protected]..
I am happy someone came up with this problem. I also bent backwardssolving
this problem
in my application.
I figured out that as soon as I remove the standard jaas.jar from my
classpath , I can run the example successfully. Weblogic.jar does contain
necessary jaas library , so don't need to include jaas.jar.
I am not sure, but I get the feeling that there is a jaas library conflict
here. May be weblogic
guys are the best to put some light on this issue.
"Ralf Fritsche" <[email protected]> wrote in message
news:3b15188e$[email protected]..
I found out, that the example runs with the JDK delivered by BEA,
but not with a JDK I downloaded from SUN.
Wheras with the first the provided way to set the user defined
configuration class with the system property'weblogic.security.jaas.Configuration'
works, this is not possible with another JDK. According to the
JAAS standard, this class could only be defined in the properties
file 'java.security' of the Java runtime.
How is BEA doing this?
Thanx
Ralf

Similar Messages

  • Problems with the examples in NWDS

    Hi All,
    Running the Welcome example project in NWDS i  have the included error.
    I have problems with other examples too.
    I did all the step by step tutorials.
    I have NWDS 2.0.3
             J2EE 6.40 SP15
             EP 2004
    I am new in NWDS and i have not still successed to run any application.
    What is wrong with my systems?
    I did all the configurations start J2EE /sdm etc.
    Do i have to install other versions? I read that maybe i have to install the same SP 15.
    Please if anybody can help me .
    Thanks,
    Ari 
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
    com.sap.tc.webdynpro.services.sal.deployment.api.WDClassLoaderException: Classloader of 'local/Welcome' is null, even though application is started.
    at com.sap.tc.webdynpro.serverimpl.wdc.deployment.DeployableObject.getClassLoader(DeployableObject.java:81)
    at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:588)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
    at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
    ... 18 more
    Ari

    Thank you for your help,
    I have NWDS 2.0.3 and Web AS 6.40 SP15 and EP 04.
    How can i be sure if  are compatible? Maybe i have to install NWDS SP15?
    I did "Rebuild" and then  "Deploy new archive and run" Deploying i was asking for the sdm password  , then the application opened in a new browser and we can see this message below.
    The Deploy Output View is empty. There is no eny successful deploy message.
    I appreciate your help.
    Thanks,
    Ari
    500   Internal Server Error
      Web Dynpro Container/SAP J2EE Engine/6.40 
    Failed to process request. Please contact your system administrator.
    [Details...]
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       java.lang.InstantiationError: com.sap.tc.webdynpro.progmodel.context.NodeInfo
        at com.sap.examples.welcome.wdp.InternalWelcomeComponent.<init>(InternalWelcomeComponent.java:41)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        ... 27 more
    See full exception chain for details.
    Correction Hints
    The currently executed application, or one of the components it depends on, has been compiled against class file versions that are different from the ones that are available at runtime.
    If the exception message indicates, that the modified class is part of the Web Dynpro Runtime (package com.sap.tc.webdynpro.*) then the running Web Dynpro Runtime is of a version that is not compatible with the Web Dynpro Designtime (Developer Studio or Component Build Server) which has been used to build + compile the application.
    Note: the above hints are only a guess. They are automatically derived from the exception that occurred and therefore can't be guaranteed to address the original problem in all cases.
    System Environment
    Client
    Web Dynpro Client Type HTML Client
    User agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
    Version 
    DOM version 
    Client Type msie6
    Client Type Profile ie6
    ActiveX enabled
    Cookies enabled
    Frames enabled
    Java Applets enabled
    JavaScript enabled
    Tables enabled
    VB Script enabled
    Server
    Web Dynpro Runtime Vendor: SAP, Build ID: 6.4015.00.0000.20051123162612.0000 (release=630_VAL_REL, buildtime=2005-12-14:21:51:22[UTC], changelist=377533, host=PWDFM026)
    J2EE Engine No information available
    Java VM Java HotSpot(TM) Server VM, version:1.4.2_07-b05, vendor: Sun Microsystems Inc.
    Operating system Windows 2003, version: 5.2, architecture: x86
    Other
    Session Locale en_US
    Time of Failure Fri Jan 26 14:29:31 EET 2007 (Java Time: 1169814571353)
    Web Dynpro Code Generation Infos
    local/Welcome
    No information available
    sap.com/tcwddispwda
    No information available
    sap.com/tcwdcorecomp
    No information available
    Detailed Error Information
    Detailed Exception Chain
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for component com.sap.examples.welcome.WelcomeComponent. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
         at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:38)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doInit(ClientComponent.java:776)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:330)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:370)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:608)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:74)
         ... 26 more
    Caused by: java.lang.InstantiationError: com.sap.tc.webdynpro.progmodel.context.NodeInfo
         at com.sap.examples.welcome.wdp.InternalWelcomeComponent.<init>(InternalWelcomeComponent.java:41)
         ... 31 more

  • Problem with aurioTouch example program

    Is anyone else having problems getting the aurioTouch example program to work in the emulator? I seem to have problems with any and all audio -related functions? What could be the problems?

    Cedric,
    This problem was fixed in the LabVIEW 6.0.2 update. You can download this update (along with the updated runtime engine) from our website.
    Good luck with your application, and have a pleasant day.
    Sincerely,
    Darren N.
    NI Applications Engineer
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Reading TDMS files in Matlab - problems with the example code

    I want to use the TDMS files to store data and do offline analysis in Matlab, version 2009b (either on Mac OS10.6 or Windows XP).
    To test the data import in Matlab I tried the example from http://digital.ni.com/public.nsf/allkb/0EEADA99DC7D00A4862572E30037C3A2 , but without success.
    I tried either with and without the path definition (as explained on the page I referred to before) at the start, and got back the following errors:
    with:
    ??? Error using ==> loadlibrary>deltempfiles at 559
    nilibddc_m.i.
    Error in ==> loadlibrary at 452
        deltempfiles(delfiles);
    Error in ==> Read_TDMData at 7loadlibrary([examplePath '\nilibddc'], hfile);
    without: 
    ??? Error using ==> loadlibrary>deltempfiles at 559
    nilibddc_m.i.
    Error in ==> loadlibrary at 452
        deltempfiles(delfiles);
    Error in ==> Read_TDMData at 36loadlibrary(NI_TDM_DLL_Path,NI_TDM_H_Path); 
    I found a few messages on the issue, dating from 2006 and 2007, that didn't lead to a satisfying solution and was hoping that, by now, there would be a solution to my problem.
    Thanks a lot
    Remco   
    Solved!
    Go to Solution.

    Hi Musk,
    Thanks for your answer. 
    Unfortunately it didn't help as my problem is not discussed there. I have a problem with this line:
    loadlibrary(NI_TDM_DLL_Path,NI_TDM_H_Path);
    I said before that I was using 2009b, but I was mistaken, I have R2008a, but the 'loadlibrary' is opened in a 2008b editor (no idea why). On the Mac I have 2009b installed.
    Thanks
    Remco 

  • Problems with axis example

    Hi
    I'm trying to run the example TestClient.java that comes with axis, but I get:
    java.net.ConnectException: Connection refused
    Does anyone know if this server is still running and on the same port (5049) or if there's just something wrong with me.
    Thanks
    hardkxre

    Originally posted by: vladimir.bogus.com
    Hey Vladimir,
    Import org.eclipse.tomcat as a project into your workspace and see how it's
    done in org.eclipse.tomcat.internal.TomcatAppServer - same idea as in onJava
    example and obviously working.
    Vladimir
    "Vladimir Kvassov" <[email protected]> wrote in message
    news:ci5r6d$k3o$[email protected]..
    > Thank you,
    >
    > but this is example, which I'v mentioned in my first message.
    > (it doesn't work under eclipse)
    >
    > "Peter van de Hoef" <[email protected]> wrote in message
    > news:ci4o25$3t9$[email protected]..
    > > Hello Vladimir,
    > >
    > > Here's an article that describes how you can embed Tomcat in another
    > > application:
    > > http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html
    > > I expect that you can apply this in one of your own Eclipse plugins.
    > > (I haven't tried this myself but hope it will work)
    > >
    > > Regards,
    > > Peter van de Hoef
    > >
    > > "Vladimir Kvassov" <[email protected]> wrote in message
    > > news:ci487b$1su$[email protected]..
    > > > Hi
    > > >
    > > > Application, which we develop is based on Eclipse platform,
    > > > and now we need to provide access throug web-services.
    > > >
    > > > Is it possible to start Tomcat in the same VM, as Eclipse?
    > > > So, web services will be able to access classes from
    > > > our application?
    > > >
    > > > Or maybe there is some better ideas?
    > > >
    > > > I found example of starting tomcat from java application,
    > > > but from one side, I'v got problems with Axis, from another
    > > > side, it seems, this this example doesn't work in Eclipse environment.
    > > >
    > > > I'v tryed to use eclipse tomcat wrapper, but I can't understand, how
    > > > it works, and id I can use it at all.
    > > >
    > > > Thank you beforehand.
    > > >
    > > > --
    > > > Best Regards
    > > > Vladimir Kvassov
    > > >
    > > >
    > >
    > >
    >
    >

  • Problems withe transport example

    Hi,
    I'm trying out Oracle lite 10g on Windows XP. I've installed the mobile server with examples and now I want to install the Mobile Client on the Win32 Device. After synchronising I tried to install the transport application. This works without error messages. Then I opend the update-window (I think ist the one in the start-menue) but there is nothing to install. I find no transport.exe on the whole device.
    Then I looked on the Mobile-Server. There are two transport.exe files in the folder <oracle home>\Mobile\Server\samples\Transport\Win32\bin and <oracle home>\mobile_oc4j_\j2ee\home\applications\mobileserver\samles\Transport_win32.
    What's going wrong with my installation?
    Best Regards
    Mark

    Hello Jorge,
    I have the same problem with PPC2002. I posted this problem at September 17th. But nobody replied.
    Problem registering PPC 2000 Client
    The Device can't register with the Device Manager on the Server. I updated the firmware of my client and everything else what I thought could cause the problem.
    What language has the PPC2003 system of your device?
    Perhaps the problem is that only the english PPC2003/2 system is supported. Because I have the german version of PPC2002. Hopefully someone from Oracle or someone else responds to this thread.

  • Problem with BIB examples

    Hello,
    I have some problems with BIFrame.java (bootstrap project)
    when i try to connect :
    oracle.dss.bicontext.BINamingException: BIB-14736 BIUser does not exist in the BI Beans Catalog.
    However, I used BIBCAT login.
    A solution ?
    Thanks,
    Yann

    hi,
    ensure that in the BIFram.java code the line
    private static final String m_configFile="***.xml";
    contains your .xml configuration file,and that the userName and password in the DAD files are correct

  • Problem with Jaas

    Hi,
    I am sailaja, I am developing an application, to that application for authentication/authorization I am using JAAS.
    But my problem is, in my application I am using 3rd party tool for document processing, for that tool I need to access a servlet from that application, but the jaas settings are not allowing to access that class file.
    So, I need to remove the JAAS settings to that servlet, Can any body guide for this.
    Thanks and Regards
    N.Sailaja
    Edited by: SailajaN on Jun 12, 2009 6:52 AM

    thanks shashi_rajak
    i have resolved now this problem but i have a small question:
    i don't understand yet the use of the callback
    for example ,i notice in sun documentation that NameCallback Construct a NameCallback with a prompt but i don't like to get the username from prompt but from
    a inputTect for example in my web application.
    could you please explain me this

  • Problem with JAAS authentication using jboss client

    I'm trying to make a little compiled application works. It has two parts: a little client(one class) and a server part which runs on a jboss server, and comunicates between them using JAAS + SSL. It works perfectly alone if I run it in a java project, without the messing sap JAAS implementation.
    I followed all the steps in:
    https://websmp101.sap-ag.de/~sapidb/011000358700003517632004E.PDF
    and managed to apply the configuration into the security service of WAS, using <b>jboss-client.jar</b> as the library with the login module, and <b>org.jboss.security.ClientLoginModule</b> as the login module.
    I included the client class into a web service developed for my WAS, packing the class and its library plus jboss-client.jar into my EAR.
    But when it tries to do the authentication, sometimes it uses:
    <b>org.jboss.security.ClientLoginModule</b> (that's the correct class) but throws a "<b>User is locked</b>" exception.
    Have I need to create the user who I use to connect to jboss in my WAS UME ? This has no much sense. Anyway doesn't work either, and the user is not locked.
    Other times (withouth changing anything) it uses:
    <b>com.sap.engine.system.SystemLoginModule</b> and throws this exception:
    <b>com.sap.engine.services.security.exceptions.BaseLoginException</b>: Call logout before login
    I have nightmares trying to integrate things which works in every application server but WAS. Why couldn't they simply follow the standard!?
    I'm thinking in installing a tomcat with the client, and use axis to wrap it with a web service I can consume from my WAS. Not very elegant solution.
    I think it maybe has something to do with specific callback classes from sap implementation.
    Any idea? I can't go forward.

    Did you resolve this problem? Please let me know. I have the same issue now and don;t know what I should be doing next

  • Problems with JAAS setup in WL 8.1 SP3

    Hi all,
    I have WL 8.1 SP3 installed on a XP Prof box with JDK 1.4.2
    I have an application that makes use of the JAAS. I keep getting the following error
    javax.security.auth.login.LoginException: No LoginModules configured for <XXXXXX>
    at javax.security.auth.login.LoginContext.init(LoginContext.java:189)
    at javax.security.auth.login.LoginContext.<init>(LoginContext.java:350)
    at javax.security.auth.login.LoginContext.<init>(LoginContext.java:465)
    I know that this means that it couldnt find the login modules defined in the configuration file. But I have it defined there. The following is what I am doing
    1. I have the startWebLogic.cmd as below.
    %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy=%JAVA_HOME%\jre\lib\security\java.policy weblogic.Server
    2. In the Java policy file located in security folder of the JDK home, I changed the security file to point to config file as below
    login.config.url.1=file:${JAVA_HOME}/jre/lib/security/jaas.conf
    Can someone suggest me a solution ?
    Thanks
    meka toka

    Did you ever find a solution to this?
    I am having the same problem.

  • Problems with JCOM examples

    Sorry for my poor English:-)
    I am a beginner in learning Weblogic Platform(Weblogic Platform7.0 with sp2),and
    now I'm studying the JCOM examples.
    Everything goes on well in the examples of "zeroclient" and "latebound",but there's
    a problem in "earlybound".
    I have succeeded in registering the type library and setting JVM (cmdline:"regtlb
    containerManagedTLB.tlb examplesServer"),and I can find "containerManagedTLB"
    in References of Visual Basic.
    In a word,I think all preparation work is completed.
    But there is a fault when it runs at the line "Set mobjHome = objNarrow.narrow(objTemp,
    "examples.ejb20.basic.containerManaged.AccountHome")".
    =============Let's look at the source code:===================
    Dim mobjHome As containerManagedTLB.ExamplesEjb20BasicContainerManagedAccountHome
    Dim objTemp As Object
    Dim objNarrow As New containerManagedTLB.JCOMHelper
    Set objTemp =
    CreateObject("examplesServer:jndi:ejb20-containerManaged-AccountHome") -->code
    run correctly here
    Set mobjHome =
    objNarrow.narrow(objTemp, "examples.ejb20.basic.containerManaged.AccountHome")-->this
    line is wrong
    ===============================================================
    I don't know where is the problem,and it makes me very painful!
    I need your help,thanks a lot!

    Sorry for my poor English:-)
    I am a beginner in learning Weblogic Platform(Weblogic Platform7.0 with sp2),and
    now I'm studying the JCOM examples.
    Everything goes on well in the examples of "zeroclient" and "latebound",but there's
    a problem in "earlybound".
    I have succeeded in registering the type library and setting JVM (cmdline:"regtlb
    containerManagedTLB.tlb examplesServer"),and I can find "containerManagedTLB"
    in References of Visual Basic.
    In a word,I think all preparation work is completed.
    But there is a fault when it runs at the line "Set mobjHome = objNarrow.narrow(objTemp,
    "examples.ejb20.basic.containerManaged.AccountHome")".
    =============Let's look at the source code:===================
    Dim mobjHome As containerManagedTLB.ExamplesEjb20BasicContainerManagedAccountHome
    Dim objTemp As Object
    Dim objNarrow As New containerManagedTLB.JCOMHelper
    Set objTemp =
    CreateObject("examplesServer:jndi:ejb20-containerManaged-AccountHome") -->code
    run correctly here
    Set mobjHome =
    objNarrow.narrow(objTemp, "examples.ejb20.basic.containerManaged.AccountHome")-->this
    line is wrong
    ===============================================================
    I don't know where is the problem,and it makes me very painful!
    I need your help,thanks a lot!

  • Build problem with Hello1 example.

    Hi,
    I have installed j2ee1.4 and trying to run the j2eetutorial1.4
    I am facing a problem in building the hello1 example.
    1) When I build the hello1 example, the build fails with the following error message
    C:\java-works\j2eetutorial14\examples\web\hello1>asant build
    Buildfile: build.xml
    init:
    prepare:
    copy:
    build:
    [javac] Compiling 2 source files to
    C:\java-works\j2eetutorial14\examples\we
    b\hello1\build
    BUILD FAILED
    file:C:/java-works/j2eetutorial14/examples/web/hello1/build.xml:52:
    C:\java-work
    s\j2eetutorial14\examples\web\hello1\${j2ee.home}\lib not found.
    Total time: 1 second
    2)) Editing the build.proerties file to include the j2ee.home property.When I save the file it gets a .txt extension.Could this cause a problem , while I try to build the examples? if so How can I avoid this?
    Could anyone please help me in this?
    Thanks,
    Ann

    To save the file without .txt extension
    just enclose the file with double quotes
    "build.properties" in the File save dialog box

  • Problem with JAAS logout

    Hi!
    I've got the problem, that I want to test my security implementation by the help of JUnit tests.
    Therefore a user gets authenticated (JAAS based authentication)to the system and tries do commit some actions. To get the identification of the calling user I call the SessionContext.getCallerPrincipal() method within a stateless session bean. This is working in the way it has to until I try to log out the user and relogin with another one (this is done within one TestCase several times..)
    Unfortunately (even after a call to the LoginContext.logout() method) the SessionContext.getCallerPrincipal() method returns for the whole JUnit-test only the first authenticated user.
    Does anybody has an idea what I need to do to get the SessionContext from the bean changed every time I call the LoginContext.logout() method?
    Thx for your answers
    Andreas

    Hi Andreas,
    We are having exactly the same problem that you have mentioned here, i.e we are not able to switch between users in the JUnit test. Our Security JUnit tests are working properly on JBoss and Websphere but are not working on Weblogic because of this problem.
    Can you please let me know if you have found a solution or workaround for this problem.
    thanks,
    Raj

  • Problem with JAAS Form Based Auth

    Hello
    I have JAAS form based auth almost working. I have an app and when I try to access it the login page comes up as planned. So far so good. Then problem is when I feed it a bad login password, it comes up with a 403 forbidden error (you are not authorized). What I want (and expected) to have happen was my custom jsp AuthFailed.jsp to come up.
    If i go directly to /AuthFailed.jsp it comes up just fine (without logging in). Is there something else i need to do to get this to come up? Any help greatly appreciated. I configured these two forms by right clicking web.xml and choosing properties then under the proper menu I picked form based.
    Thanks
    troy

    Hi,
    You'll want to add something similar to the following in your web.xml file:
      <login-config>
        <auth-method>FORM</auth-method>
        <form-login-config>
          <form-login-page>Login.jsp</form-login-page>
          <form-error-page>LoginError.jsp</form-error-page>
        </form-login-config>
      </login-config>

  • Java EE Tutorial - problem with the example Bookstore

    Hi,
    I've been working few days on a problem running the Bookstore example from the Java EE Tutorial. When I run the application, I'm redirected from the servlet BookStoreServlet to errorpage.html with the following message: The application is unavailable. Please try later. The tutorial troubleshooting reads: ... a servlet can’t retrieve the web context attribute representing the bookstore. This will occur if the database server hasn’t been started. But the database server is running (I'm running Derby bundled into NetBeans 6.5). The Glassfish admin console reads:
    StandardWrapperValve[BookStoreServlet]: PWC1406: Servlet.service() for servlet BookStoreServlet threw exception
    com.sun.bookstore.exception.BookNotFoundException: Couldn't find book: 203
            at com.sun.bookstore1.database.BookDBAO.getBook(BookDBAO.java:58)
            at com.sun.bookstore1.servlets.BookStoreServlet.doGet(BookStoreServlet.java:76)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
            at com.sun.bookstore1.filters.HitCounterFilter.doFilter(HitCounterFilter.java:71)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
            at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
            at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
            at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)This would indicate that the tables are empty, but they were created according to the tutorial, with the command ant create-tables, and I can see their content in NetBeans. Please help, I really need to run the examples.
    Best regards,
    Rene Puchinger

    I solved the problem running the command that is correctly explained in the page 97 of the tutorial:
    Ant create-tables
    My mistake was that until that day, I was believing that I could do everything inside Netbeans.
    For this you explicitly need to use ant.
    Then I got some error which I solved fixing the file
    C:\Java\JavaEETutorial5\examples\bp-project\ build.properties
    ( like set correctly the path to the server and so on)

Maybe you are looking for

  • How do I get music and books that are on my iPhone4 to show up on iTunes and vice versa?

    I have an iPhone4 which has the Nook app on it.  I have about 70 books that I have purchased from BN.com and two of them show up in iTunes on my laptop.  Why don't the others?  Conversely, I have copied some of my music cds onto iTunes but they don't

  • Drives, syncing etc etc

    Nothing seems to work. Running Windows 7HP. Have down loaded itunes 10. Computer will not recognise i pod classic. Also informed that under 'devices' the ipod drivers are not installed and a 'code 28' message. On searching the computer I get a warnin

  • External DVD burner - LiteOn?

    I'm going to burn many copies of a home-movie DVD to send to various people. In the past I have hard problems with the DVD's burned using my internal drive not playing properly on my home DVD player or others. I'm considering getting a LiteOn externa

  • Video out works fine on my 3GS phone but not on my iphone 4. What could be the issue?

    I have a 3GS phone and Apple component video cable that I have connected to HDMI capable TV. Everything works fine on 3GS. I try to do the same with my iphone 4 (hoping for better HD picture), and nothing happens. I am using iOS 4.2. on the 3GS and 4

  • User changing price in ME29n

    Dear Experts, user changing price,while releasing the Purchase order,how to avoid this problem, please suggest me. Regards, Varun