Simple 2D engine

Is there a simple scene management/rendering 2D engine for Actionscript 3 there? All I need is simple engine, wich I don't have time to write on my own for. I googled and found pushbutton, but it seems to be too big for my needs. I need simple scene and rendering.
Thanks!

Simple scene management and rendering... why do you need an engine for this? Why not just use plain old AS3? What would an engine give you, or what are you looking for not present in the base language?

Similar Messages

  • Is a simple ABAP Engine Licence available ?

    Hello all !
    After many tests, showrooms and procedures, I am convinced that WAS is the solution I need to pilot some of my SAP R/3 processes.
    Now, I am wonderign which installation I could choose. My customer actually works on a 4.5C R/3 version and did not planned to upgrade to 4.7.
    My only economic solution is to implement a second SAP server based upon WAS 6.20 in order to generate BSP applications that will control SAP Objects via RFC and Master Data via ALE/IDOCS.
    I am trying an demo version called "ABAP Engine 6.20" that is able to do exactly what I want. So my question is:
    Is there a SAP product that only licences an ABAP 6.20 Engine (a kind of R/3 BC without any modules)?
    Thank you in advance for your answers.
    Kind regards.
    Sebastien

    Hi Graig,
    I am afraid my question was not sharp enough.
    I do not want to create showrooms ore basic things based upon the Miniwas 6.20 that I already have.
    What I would like to do is to install and manage a real server for real situations.
    Do you think I can have a prodution licence upon a WAS Kernell without installing a complete SAP product ?
    Tell me if I am still not precise (I am French and sometimes I hardly find the right terms)
    Kind regards.
    Sebastien

  • XML Publisher and Application Engine in Peoplesoft

    How do i write a simple application engine program for an XML Publisher report in Peoplesoft?
    Thanks in advance.
    Message was edited by:
    user611481

    Create sample output data in xml format and create a data source type rowset.
    create the report defination with above data source.
    Create a AE and create the rowset by using peoplecode, run the xmlp report by using PeopleCode and publish it in PeopleCode.

  • Search engine

    Hi there!
    I am writing a simple search engine in java. i want it to read from given urls, search for specific keywords and then return strings from the particular pages, which are to be displayed on a standard output.
    please help.

    http://www.google.com/search?hl=en&safe=off&q=search+engine+java&btnG=Search

  • Servlet engine invoked FROM CGI script?

    Yes this is a backwards request, but I need a simple servlet engine that can be invoked through a CGI script. I perfectly realize the problems associated with this like session management, benefits in threading, etc not to mention the overhead of JVM startup on each request...
    Anything with which anyone's familiar? Searching returns (of course) how to invoke CGI from Servlet containers which is obviously not what I need.
    Thanks!

    Hi Michael,
    I am running 7.0 on Win NT while its the same case its displaying the whole content
    as it is setted the weblogic.servlet.CGIServlet in the web.xml file and providing
    the compiler for perl also .
    Looking for a quick reply
    Thanks
    Shivani
    Michael Young <[email protected]> wrote:
    Hi.
    What platform/OS version are you running WLS on?
    Thanks,
    Michael
    Suren Jain wrote:
    Hi,
    We are having problems invoking cgi scripts from the browser.
    When we try to access it, it is not executed, instead the script is displayed
    in the browser.
    We are using weblogic 5.1 and sp9.
    In the properties file we have specified
    weblogic.httpd.register.cgi-bin=weblogic.servlet.CGIServlet
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=/opt/equitydev/geo/cgi-bin,\
    *.pl=/usr/local/bin/perl5,\
    *.sh=/bin/ksh
    Appreciate your help.
    Thanks
    Suren.--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Search Engine for Dreamweaver and OSX 10.6 users.

    I have seen lots of post about search engines but I can't seem to find my answer.
    Can anyone please educate me on how I can add a simple Search Engine only to
    search my site that has 100's of Literature created in word Doc's and PDF files.
    My site is for a Non-forprofite site to help out mothers with children that have no homes or lost
    their homes. We want them to come in search out site for Literature that relates the them.
    I work on a Mac OSx 10.6 and use Cs4 Dreamweaver. I don't mind paying for an extension that works
    well and easy to use with Dreamweaver. I have seen allot of extensions for only PC users but very
    few for Mac users.
    Any advice or direction anyone can give me would help me and allot of unfortunate mothers.

    Freefind.com is a search engine service.  Free version has text ads on the results page.  Pro version has no ads.  Highly customizable and flexible, Freefind will index unlimited pages including PDFs and Word Docs.
    http://www.freefind.com/
    Zoom from Wrensoft is a commercial search engine product.  Free up to 50 pages with tiered pricing for larger sites. Can also be used on Intranets and CD/DVDs.
    http://www.wrensoft.com/zoom/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Fuzzy Engine Using Java

    Hi all. I'm trying to make a fuzzy engine for Java, and I hope you can try it. should there be any trouble/bug,please don't hesitate to ask me.thx^^
    Features:
    -Human-Like modelling language for rules
    -Setting Fuzzy Model via XML File
    -XML schema for XML file
    -Ruleblock
    -etc
    Link:
    [Download Here|http://geekandphilosophy.blogspot.com/2010/06/fuzzy-engine-for-gaming-using-java.html]

    Could any body in the hood aid me with links or
    references to java source code to develop a simple
    search engine?my email address is [email protected]
    Thanx in advance....I am not sure but I remeber seeing one at sourceforge.net you could try that.

  • App Engine behaving weird

    Hi
    I am using virtual box configuration for this that Jim M put together.
    I have everything installed and am trying to practice somethings. The first first thing is App Engine. So I created some new fields and the a table to update so I would not affect any of the PS tables. Then I created a simple App Engine program that just updates a field on the table using the SQL action with continue if no rows. I ran the program it finished ok but no update. I changed it to abort if no rows and it aborted. So I took the same code and ran through sql developer and there was an update.
    So what I did then was changed the table to one that PS delivered and that was updated.
    I am signed on in 2-tier to the data base I don't think I need to sign on the app server do I?
    I am signing on as PS.
    What could be happening?
    If anyone could help I'll appreciate it.
    Thanks,
    Mike

    Just wanted to you an update after doing some more tests I created a page to insert data. Well something strange happens now when I run the app engine. The rows that were inserted using sql developer the rows were not changed but the rows I entered online were changed. So there is nothing wrong with the app engine.
    Do you know if some parameter on sql developer has to be changed. using version 1.5.5.

  • Using 3rd party library on linux (ABI Compatibility ?)

    Hi all !
    I am facing a problem while developing an application that uses a 3rd party library. This 3rd party library is an OCR Engine.
    Actually I am able to use this OCR from Java via JNI under windows. Now I try to do the same thing under Linux.
    I created a C++ wrapper shared library linking the OCR Engine shared library.
    I wrote 3 JNI functions for :
    - loading the engine
    - closing the engine
    - setting the engine language support
    Using my wrapper from any C/C++ program works fine. But when I use a JNI interface to these method, it ends randomly with a segmentation fault.
    Consider this simple program :
    engine.nativeLoadEngine();
    for(int i = 0; i < 500; i++)
    bq. engine.nativeSetTextLanguage( "French" );
    engine.nativeCloseEngine();
    Sometimes the segmentation fault appears before the nativeLoadEngine(), sometimes after nativeCloseEngine(), sometimes at iteration N etc.
    It cannot be a matter of my JNI code because... take a look at my functions bodies :
    * Class: com_XXX_ocr_OCREngine
    * Method: initEngine
    * Signature: ()V
    JNIEXPORT void JNICALL Java_com_XXX_ocr_OCREngine_initEngine( JNIEnv* env, jobject thisObj )
    * Class: com_XXX_ocr_OCREngine
    * Method: closeEngine
    * Signature: ()V
    JNIEXPORT void JNICALL Java_com_XXX_ocr_OCREngine_closeEngine( JNIEnv* env, jobject thisObj )
    * Class: com_XXX_ocr_OCREngine
    * Method: setTextLanguage
    * Signature: (Ljava/lang/String;)V
    JNIEXPORT void JNICALL
    Java_com_XXX_ocr_OCREngine_setTextLanguage( JNIEnv* env, jobject thisObj, jstring textLang )
    Even if I do "nothing" in the bodies, I face segmentation faults. If I don't link the OCR library, it is self-evident that there is no problem.
    I even used JNA (https://jna.dev.java.net/) to access a shared library exposing my three functions and linking to my 3rd party .so. I reproduced the same issue.
    Config :
    Ubuntu 2.6.20-16
    gcc 4.1.2
    libstc++6
    jdk1.5.0_11
    My wrapper and OCR Engine are both linking to :
    libc.so.6
    libstdc++.so.6
    My libjvm.so is linking to :
    libc.so.6
    I tried both g++ and gcc to compile my wrapper.
    Am I facing a kind of ABI compatibility issue between libjvm.so and my OCR engine 3rd party library ?
    I tried some compile command tweaking but it was pointless. It really seems hopeless to me...
    Thanks for any help.

    I believe I built Boost using the complete option. I have several files for each library, for example, I have the following in the boost_1_47_0\stage\lib\  folder:
    libboost_regex-vc100-mt-1_47.lib
    libboost_regex-vc100-mt-gd-1_47.lib
    libboost_regex-vc100-mt-s-1_47.lib
    libboost_regex-vc100-mt-sgd-1_47.lib
    libboost_regex-vc100-s-1_47.lib
    libboost_regex-vc100-sgd-1_47,lib
    boost_regex-vc100-mt-1_47.dll
    boost_regex-vc100-mt-1_47.lib
    boost_regex-vc100-mt-gd-1_47.dll
    boost_regex-vc100-mt-gd-1_47.dll
    I think the ones that have the -s- in the filename are the static versions of the library.
    I've tried changing the Project Properties->C/C++->Code Generation->Runtime Library settings without luck. And I'm not sure if there are other settings that I need to change.

  • Using DOM

    Hi everyone,
    I was wondering if someone could give me a hand with the following.
    I am planning to create a simple search engine to search for products for a computer parts retailer. The list of products is stored in an XML repository , and all queries to this repository are sent as XML documents.
    The search engine web page will display a single text input field, into which a user can enter a keyword to search for
    I am using DOM to convert the Html search query to an XML document.
    Here is my DOM code so far.
    <%@page import="java.io.*"%>
    <%@page import="javax.xml.parsers.*"%>
    <%@page import="org.w3c.dom.*"%>
    <%@page import="org.apache.xml.serialize.*"%>
    <%!
    String 
    search,textfield;
    %>
    <%
    // Retrieve the Search query
    search = request.getParameter("search");
    textfield = request.getParameter("textField");
    // Create a new DOM factory, and from that a new DOM builder object
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();// Note that we are creating a new (empty) document
    Document document = builder.newDocument();
    // The root element of our document wil be <query>
    // It gets stored as the child node of the whole document (it is the root)
    rootElement = document.createElement("query");
    document.appendChild(rootElement);
    // Create an <searchterm> element , place underneath <query>
    Element searchtermElement = document.createElement("searchterm");
    searchtermElement.appendChild(document.createTextNode(searchterm));
    rootElement.appendChild(searchtermElem
    I am just wondering if my DOM code looks correct so far?

    A further cast didn't help either. For a change I have abandonded the JAXP approach and instead have built an example found at
    http://otn.oracle.com/pub/listings/vohra_xmlschema_l4.html
    that shows how to validate against a schema.
    I have changed the method to return the validated document and have then tried to apply some of the D0M validation methods supposed to return a NameList but I still always get null.
    I have posted the example Java program at
    http://home.arcor.de/martin.honnen/java/xml/Test20040308.java.txt
    and run it against the example schema and XML files at http://home.arcor.de/martin.honnen/java/xml/test20040307Xsd.xml http://home.arcor.de/martin.honnen/java/xml/test20040307.xml
    While the parsing works and the XML is judged valid according to the schema attempts to use the DOM validation methods to return a NameList fail to return one.
    Does anyone have an example using any DOM Level 3 validation interfaces/methods successfully?

  • Problem with action script 3 make input text box and button....

    Hi every one I am trying to make a family book using "Air for Android" with a simple search engin in the book
    air for android only work with AS3,
    the search function is to type a person's name and hit submit then go to a specific frame.
    have a problem making below code to work in AS3 and hopefully one of you guys can lead me in the right direction to fix the issue.
    Currently, I have an input text box and a button. When you type specific words into the input box and then hit the button it sends you to a specific frame.
    (it work find in AS2 but not in AS3,)
    Here is my current code that is placed on the main timeline, first frame:
    stop();
    onEnterFrame = function () {
        submit.onRelease = function() {
            switch (yourname.text) {
            case "name1" :
                gotoAndStop(2);
                break;
            case "name2" :
                gotoAndStop(3);
                break;
    My button that checks if the phrase is correct is called "submit" and my input box has an instance of "yourname".
    My phrases that will be accepted in the input box are "name1" and "name2" which bring me to two different frames.
    Basically, I'm having a problem with making this to work with AS3.

    you should use the default option in the switch statement
    that way yourname contains something not in one of the case statements it will go to the default bit and execute teh code there
    function onSubmit(e:MouseEvent):void
                                  switch (yourname.text)
                                            case "name1":
                                                      gotoAndStop(2);
                                                      break;
                                            case "name2":
                                                      gotoAndStop(3);
                                                      break;
                                            default:
                                                      goToAndStop(you frame you want);
                                            break;

  • Finished taking Sprinkler CLD Practice Exam

    I am planning on taking my CLD this coming week, and just finished taking this practice exam. Since I studied the car wash and ATM solutions I decided to go for the Sprinkler practie exam. The "Sprinkler CLD.zip" file is the results of 4 dedicated hours of my Saturday.
    I ran the VI analyzer on all VIs and CTLs and I'm not impressed with myself. Could somebody tell me how they think I would score?
    I looked at the solution for the Sprinkler.vi and it's clear that my approach is nothing like the solution from NI. This could be a good or a very bad thing. 
    It appears quick comments could mean alot if the graders depend heavily on the VI Analyzer.  It appears that I should have at least two comments in each VI, and not only have the documentation section filled in the VI but the same for controls.
    It's clear that I missed some wires when I resized my case select boxes.
    After finishing the exam and then looking back i see there is a possible lock out condition on initialization that would prevent the VI from reading the CSV file. I shouldn't have created a  "READ CSV" State. If i would have placed the "READ CSV FILE" inside the "Power Up Configuration" state there would be no issues. I should have restarted labview in my last hour.  If the VI starts up with the Water Pressure above 50% and No Rain then the CSV file is read and there is no problem. This would have been an obvious mistake had I restarted labview.
    I realize that I missed some of the specifications. For example if it starts raining during a sequence it is suppose to restart the sequence, not pause it.
    There are few comments in the code. I usually add many comments to my code, but this is my first time using a simple state engine.
    At work I have a large infrastructure already in place complete with error handling and task management.  I am also use to working on multiple monitors. During the test I only used one. Even if I didn’t pass this practice exam at least having a dry run outside my normal work condition was very good practice.
    I spent time practicing earlier and can build the Timer.VI in about 8 minutes. A functional global timer seems to be a common theme in the practice exams.
    Does anybody have any ideas or suggestions?
    Do you think I would have passed the CLD exam with this test?
    Comments?
    Regards,
    Attachments:
    VI Analyzer Results.zip ‏4 KB
    Sprinkler CLD.zip ‏377 KB

    There are a lot of good things in your code, you are nearly there. I haven't run your code, so this is more style and documentation comments.
    If I were you, I would concentrate on the following:
    Wire Error through all your subVI's put your subvi code in an error/no error case structure. If you had done that, you didn't need the flat sequence structure in your code.
    You haven't even wired error to the subvi's with error terminals, this will cost you points.
    Label any constants on the block diagram.
    Brief description of Algorithm on each VI block diagram.
    You could have avoided using local variables, for example Run Selector as this control is available in the cluster. So just a unbundle by name would have given you the value of that control. If you do use them, then make sure you state why (for example efficiency etc.) in a block diagram comment.
    Some subVis are missing VI documentation, this wont be taken lightly.
    Using default value when unwired (for your while loop stop) is not recommended. This was specifically discussed during a CLD preparation class I attended not so long ago.
    While icons are pretty, I wouldn't waste time trying to find glyphs for your subvi's just consistent text based icon scheme is perfectly acceptable. You can do this if you do have extra time, it wont fetch your extra points though.
    LabVIEW 2012 has sub diagram labels, you can enable this by default in Tools>>Options, adding comments in each of the cases is recommended.
    The main thing is time management and make sure you read other posts/blogs on CLD. I would also recommend quick drop, if you haven't started using this it may not be a good idea to do so now for your exam next week. But in general it is very useful and saves time.
    Hope this helps.
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • Tokenize xml maybe using RegEx?

    I'm working on a simple search engine for dynamically loaded XML data. I have data of this form (more or less):
    <sessions>
    <session id=##>
              <title><![CDATA[The Title]]></title>
              <presenter>A person or two goes here with title</presenter>
              <date>2011-2-15-10-00-a</date>
              <webex><![CDATA[https://alink.com]]></webex>
              <audience> <![CDATA[Various types that might be interested]]> </audience>
              <desc><![CDATA[A longish description that might include some simple html tags like bold or some lists]]></desc>
              <resources>
              <resource>
              <name><![CDATA[A slide deck, website, white patper, etc.]]></name>
              <link active="true"><![CDATA[thelink to the resourcepdf]]></link>
              <tip><![CDATA[A description of what is at the site or why the resource is interesting]]></tip>
              </resource>
         <resource>
         </resource>
              </resources>
    </session>
    <session>
    </sessions>
    </sessions>
    I need to break apart all the "useful" words and run them through my indexer. Currently I'm using e4x to pull out certain nodes and get the content as a string. Then I'm using something like this to break it all up:
    var tokens:Array=[" - ","?",",","."....etc];
    for(var i:int=tokens.length-1;i>=0;i--){
       str=str.split(tokens[i]).join(" ");
    Is there a quicker, more efficient, better way to do this? I'm just learning about RegEx and think it could maybe have some use here, but I'm not all that good with it. Part of the problem here is that the tokens array needs to take into account all of the possible characters that could signal divisions between words. But there are some many of them. It might be simpler to go the route of here are the things we want to keep. That list is much shorter.
    remove any xml tags and remove any html tags
    keep A-Za-z (including accented letters such as grave, acute, umlaut, etc.)
    keep ' or - when they are in the middle of a word, i.e. surrounded by letters
    everything else goes
    So there are really two parts to this:
    1. What is the best, fastest, easiest way to extract all the data from the xml.
    2. What is the most reliable easiest way to break all that data into just the words.

    What I'm seeing in these RegExps:
    re1 in English:
    Globally in the current string, any <![cdata[ or ]]> or <*> or http(s)://*\s or /.,(3 chars)"“”!(not)?(up to)@#$%^(and)*(nothing)[](n/a amount)(invalid range)–—(one or more):;<>©®™= or -(invalid range)(one or more than)
    The substitutions are in (parens).
    Think of RegExp like a language who's sole purpose is to give you a ton of wildcards with programattic-like features to "describe" content you want. Using characters like ! (exclaimation point) actually mean "not" just like they do in AS3.
    So to match a string that has NO lowercase 'a':
    /!a/
    That's why I mentioned (not) in the description, for a simple example. If you explicitly want a character the safest thing you can do is escape it just like you did with the brackets. To match an exclaimation point:
    It's just like "reserved words" in coding. You'd never make a variable name like 'for' or 'if' because you know the compiler will balk. Same deal with RegExp. Knowing what are operators (|,&,[,!,^,$,{,},(,),.,etc) will help solidify your meaning. There's tons of reference guides out there but being Perl was the big proponent of regular expressions I often just follow the simple PHP preg_* function syntax referece (click the links at the top for categories: http://php.net/manual/en/reference.pcre.pattern.syntax.php )
    Any time you add in an "or" with | you're better off making a new RegExp for that. It's much easier to debug smaller complicated RegExps than a string of a bunch all together. trace() your string between every step to see which RegExps are misbehaving and medicate as needed.
    For your example, from what I assume you want to do is just remove things. I'd do it like so:
    removal of CDATA wrapper:
    var str:String = '<![cdata[this is some text]]> moo';
    var cdataRe:RegExp = /\<\!\[cdata\[(.*)?\]\]\>/i;
    str = str.replace(cdataRe,"$1");
    trace(str);
    // trace: this is some text moo
    This is a replace that shows you parenthesis's ability to capture text. Captured text will be put (in order of parenthesis) inside variables $1, $2, $3, etc. I captured the text between CDATA tags and my replacement was only the text inside it.
    removal of any HTTP(S), RTMP, FTP links:
    // important to note no space after, but will match
    // taking out ftp,http,rtmp
    var str:String = 'this is some text http://www.moo.com/a/b/c/?ref=123&q=2 and https://www.foo.com/cpanel/?a=login.do links HTTPS:// RTMP://media.someserver.com/moo.flv ftp://woo:[email protected]';[email protected]';
    var httpsRe:RegExp = /[fhr]t{1,2}m*ps*\:\/\/.*?\s+|[fhr]t{1,2}m*ps*\:\/\/.*$/igm;
    str = str.replace(httpsRe,'');
    trace(str);
    // trace: this is some text and links
    You get the idea. I'm describing every bit of the text as I go. I wanted to show a decent usage of the | (or) branch in the case of removing 2 different types of links. A link in the beginning or middle of a sentence will have a space after it, or if the link is at the end of the string with no space. However it's not perfect. You run tests on it and you'd see if it ended up at the end of a sentence and there was a period, that period would get eaten too. It's exceptions like "no space after it" or "end of a sentence" that greedy RegExps need a lot of extra conditional logic on. That's why I woudln't bundle more than a single purpose RegExp because when you REALLY field test against data those seemingly simple one-purpose RegExps end up being huge.
    The re2 I see above seems to have some very specific data sent to it. It's saying: A string containing a return or newline or space followed by quotes or apostrophe or dash followed by quotes or apostrophe or dash followed by a return or newline or space or just one or more spaces.
    That's a pretty weird RegExp. That would match something like this:
    var a:String = "
    // or
    var b:String = ' "" ';
    The final 'or' is the only thing I'd condense because you have it in your bracket already. You're saying at the end [\r\n\s] or \s+. So:
    var re2:RegExp = /[\r\n\s]["'\-]{2}[\r\n]*\s*/gm;
    Writing it like that just states either return or newline or one or more spaces will match. You can see the usage of braces marking the range of matches I desire, so {2} means I need 2 of the previous characters specified in a row. 1-5 characters specified in a row is just as easy, /[a-z]{1,5}/ means from 1 to 5 lowercase letters from a to z.

  • J2EE 6.40 Custom Login Module - how to config

    hello all,
    i am using WAS J2EE 6.40 Sneak Preview edition. Read all i can find about custom login module, in the forum and the online help. still confused. pls help.
    here is the background info:
    - i am writing a web app. the EAR file contains 5 ejbs, 1 war and bunch of java classes in jars.
    - access to my web app is protected through url pattern (in web.xml), i've defined the same named security role in web.xml and on j2ee engine.
    - my login module does the user name and password checking. both are stored in database through some other means.
    - login is FORM based
    following the discussion in another thread on the topic, i did the following:
    #1 develop my login module code. packaged it in a jar, then sda file. deploy the sda as a llibrary to the engine.
    #2 add my login module to the security store through the security provider service.
    #3 configure my web app to use the custom login module in web-j2ee-engine.xml
    #4 deploy my web app through the ear file
    at this point, in the visual administrator, i can see the library, the custom login module (added to the UME User Store), and also my web app has authentication set to use the custom login module (under policy configurations tab).
    now i try to login to my web app. it correctly complains when i enter non-existent user or wrong password and brings me to the login failed jsp page. but when i enter both correctly (as stored in my database), i get http 403 error code. i know it is 403 because i set that error code to a special jsp page in web.xml.
    question is why? now i create a user on the j2ee engine with the same name as in my user database. then i can login ok. i am confident that my login module is called since i see the println lines in j2ee engine server logs.
    ??? so i must be missing something obvious. is it because my web app is protected through security-role? i even tried removing all such roles, but still same problem.
    ??? or do i completely mis-understand how custom login modules are supposed to work. i thought it means i can authenticate users any way i want without having to use the j2ee engine's user mgmt. pls tell me if i am totally wrong.
    ??? or maybe my login module code is missing some key stmts. how should it tell the j2ee engine that a user is authenticated? in the login() method, it returns true if user name/passwd match. in the commit() method, it adds the principal to the subject. i don't what else is required.
    does anyone have a working scenario using custom login modules?
    thanks very much for your inputs and thoughts.
    wentao

    Hi Astrid,
    I guess I have the same understanding of JAAS as you. I want to deploy an application that internally makes use of JAAS to authenticate users. There is a LoginModule that authenticates users against some database tables containing all the user data and profile. The application was not designed to be deployed to NetWeaver. So it does not make use of UME or some other NetWeaver specific feature. Actually it handles user management and authoroization issues completely on its own. The only reason for having JAAS is to allow customers to plug in their own LoginModule to use some other kind of user store.
    When deploying the web application to a simple servlet engine like Tomcat, all I have to do is to register my LoginModule in the "jaas.conf" file that is parsed by JAAS default implementation. I also tell the JVM where my jaas.conf file is located by appending a "-Djava..." runtime parameter to the JVM startup script.
    When using other application servers like IBM WebSphere things become a bit different. Normally you use the administration GUI of that server to configure your LoginModules. WebSphere for example keeps the login configuration in an internal database rather than writing everything into a "jaas.conf" text file. But the way the application can use the LoginModule is the same as in Tomcat.
    But when it comes to Netweaver, it seems to me that it's not possible to define a LoginModule that your application can use WITHOUT having to couple it tightly to UME. Or did I get something wrong? Initially I've tried to modify the JVM's parameters (using SAP J2EE Config Tool) to include the location of my "jaas.conf" file containing the my login configuration. But that did not work. The parameter was really passed to the JVM but anyway my LoginModule was not found, I guess that NetWeaver has some own implementation of the JAAS interfaces that just ignore the plain text JAAS configuration files (like WebSphere also does).
    The documentation that I have downloaded from SDN doesn't seem to match the 6.4 sneak preview version that I just downloaded some days ago. They say you should deploy your LoginModule as a library and add a refernce to the application. I tried that out but it did not help. The login configuration that the application wants to access is still not found. Actually there seems to be no way to specify the name for a JAAS Login Configuration in NetWeaver. At least I cound not find that in the documentation.
    So basically my question is: is it possible to deploy an application that wants to use some own LoginModule (either deployed separately or together with the application, that does not matter) without making use of Netweaver specific features like UME? The application has its own user management infrastructure and just needs a way to setup a JAAS Login Configuration to access its own LoginModule.
    Thanks in advance
    Henning

  • Data type mismattch in criteria expression??

    Hi,
    I am trying to do a simple search engine.With the user entered filename and docType(what documents the user can see), i search my Document table for the record(s) that match.When i try to execute the sql, i got the following error.Anyone knows what i did wrong?
    SELECT * from Document WHERE Path = 'sorc1.jpg' AND DocumentType IN (1,2,3,4,5,6
    ,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,3
    4,35,36,37,38,39,40,41,42,43,44,45,46,47,48)
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Data type misma
    tch in criteria expression.
    [Document Database Record]
    DocNo,Name,Title,Date,Filename,DocumentType
    1,John,test,020903,sorc1.jpg 12
    2,Tom,test,020903,test.jpg 19
    [SearchServlet.java]
    ResultSet rs=null;
    SearchMgr mgr = new SearchMgr();
    rs=mgr.getDoc(filename,docType);
    [SearchMgr.java]
    public ResultSet getDoc(String filename,String docType){
    try
    ResultSet rs=db.ExecuteSQL(doc.getDoc(filename,docType));
    if ( rs.next() ){
         return rs;
    catch(SQLException e)
    System.out.println(e);
    return rs;
    [Document.java]
    public String getDoc(String filename,String docType)
    String queryString = "SELECT * from Document WHERE Path = '" + filename + "' AND DocumentType IN ("+docType+")";
    System.out.println(queryString);
    return queryString;
    }

    String queryString = "SELECT * from Document WHERE Path = '" + filename + "' AND DocumentType IN ('"+docType+"')";
    docType is a string, so u mean that i have to process this string to make it look this?
    "1","2","3","4","5","6","7"

Maybe you are looking for