10.1.3.1 Worklist - Using Prototype with auto-gen JSP forms

There is an interesting conflict when using the javascript package Prototype with the auto-generated jsp for worklist forms.
Inside the main JSP is this javascript function, which iterates through the keyNames array associatively:
function isNameExist(keyNames, name)
var exist = "false";
     for (keyName in keyNames)
     if(trim(keyNames[keyName]) == trim(name))
     exist = "true";
return exist;
However because of Prototype's modifications to the Array object, this function fails. To make it work, change the function to this:
function isNameExist(keyNames, name)
var exist = "false";
if (keyNames && keyNames.length > 0) {
          for (var j = 0; j < keyNames.length; j++)
          //for (keyName in keyNames)
          if(trim(keyNames[j]) == trim(name))
          //if(trim(keyNames[keyName]) == trim(name))
          exist = "true";
return exist;
FYI: I first discovered the problem when the Save button became disabled (after adding Prototype), and Firefox kept reporting the js error "globalUpdateForm has no properties".
My thanks to Ryan Gahl for this one!
PS: If anyone else has tried using Prototype and knows of other conflicts, please post!

My code is in a java Exec, in a bpel process. I am not using any JSP pages. What do you mean by child of the orabpel process? How do I check if my bpel process is a child of the orabpel process?
Thanks!
Moe

Similar Messages

  • Anybody used OpenScript with Oracle 11. x forms yet

    Does OATS 9.2 support 11g forms at all? We are still not able to use the tool since we moved to 11g forms and web services with it.
    I was just wondering does anybody uses OATS to test such application at all?
    How come its not supporting the in house forms application.

    Hi,
    Is this for Load Testing or Functional Testing?
    When working with forms for functional testing I always enable the Java Console. Goto Control panel->Java->Advanced. Expand the Java Console entry and select Show Console.
    Then replay your script which invokes the forms application and in the console window you should see entries like :
    Loading Oracle ATS Forms Functional Testing Module[5.3] [Sun JRE_1.6.0_22]
    cracked oracle.forms.engine.Main
    cracked oracle.forms.engine.Runform
    Regards
    (My white paper discusses in detail @
    [http://www.scl.com/software-quality/software-testing-news/testing-oracle-forms-with-openscript]
    Look at the section discussing the Java Console.
    Hope this helps
    Regards
    Wayne.
    Edited by: byrne_wayne on Jan 11, 2011 2:04 PM
    Edited by: byrne_wayne on Jan 11, 2011 2:05 PM

  • Using accessories with second gen

    Hi All,
    I just got a second gen nano. I have accessories from my first gen, but the sec gen does not fit them! wth?! did they move the plug ins? will i have to buy all new speaker docs and fm transmitter or can i buy the little slide ins somewhere. this really ***!

    So, in your opinion, every time Apple updates their product line they need to provide a list of third party accessories that are not going to work with the new model?
    Do you know how many third-party accessories there are out there?
    It makes more sense to me to leave it to the user. I'm getting a new iPod soon. I know which of my current accessories will work with the new iPod and which won't. I wouldn't expect Apple to inform me of this though - they didn't make these accessories, they don't provide support for these accessories, and they don't know what the manufacturer of these accessories may have planned in the future to accommodate the new iPod (as Bose and others have done). I can only get this information from the manufacturer of the accessory.

  • Can't use iTunesU with 4th Gen iPod Touch?

    I want to use iTunesU but it requires iOS 7.  I'm on an older iPod Touch 4th generation and it won't let me update to iOS 7.  What can I do?  Is there a version out there I can use?
    Thanks,
    Jody

    Try finding/installing the last compatible version:
    App Store: Install the latest compatible version of an app

  • 11g Human Task; problem with Auto-Generate Task Form

    Version: WebLogic Server 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638
    Using book: Getting Started with Oracle SOA 11g R1, A Hands-On Tutorial
    Had success through Chapt 7. Now working through 8, Creating Human Tasks -- almost everything checks out.
    Deployed POProcessing success (with 1 warning: assignee not specified)
    Deployed ApproveTaskDetails (from Application menu) success
    -Run the test tool in Enterprise Manager 11g
    -Response looks according to book, using Launch Flow Trace button I see ManualPOApproval is in running state, as expected.
    -Run Oracl BPM Worklist, log in according to book (weblogic)
    -I can see the Approve Order line under the My Tasks tab
    When I select the Approve Order line item, according to book I should see Approve Order Contents in the lower pane.
    But the details never populate the pane and I see "Waiting for..." in Explorer status bar.
    The logs are filling up with the following statement repeated about 2/second (from D:\oracle\Middleware\home_11gR1\user_projects\domains\domain1\servers\soa_server1\logs\access.log) ...
    =====snippet begins======
    0:0:0:0:0:0:0:1 - weblogic [21/Oct/2011:17:38:05 -0500] "GET /integration/worklistapp/faces/login.jspx?_afrLoop=2609043717008&_afrWindowMode=0&_adf.ctrl-state=bcqg1x7gm_9 HTTP/1.1" 200 5486
    0:0:0:0:0:0:0:1 - - [21/Oct/2011:17:38:05 -0500] "GET /workflow/ApproveTaskDetails/faces/adf.task-flow?bpmWorklistTaskId=47d0f109-2de1-4851-a5cf-1c338050f3c2&bpmWorklistContext=b5d5e48b-9c54-4e3d-a707-19c9e99f618e%3B%3B4iKnpxQCfUvYnghbxihMXgZAOsVJ%2BqeiE79gFBzb%2BlKq9vlbpqV2%2FyQ21%2BLHnBcvJA6mBOoc238GDGR9odBPBE%2FZdeDrfVwfIUCOa%2Fsc%2BRRnmEkzS5f1mKd3oWpasvIhZDkCz5conIhVCKJvCxxz0i1NpCk9WWoVBHpUX39ayhF%2B0aI1p%2FGImOsYBEXDIBEDADen3JkeoewYEJwpVcQf6XzOA5rTEojcUHt28znFHboPdkJ8TW7jfvgQnHNRS5XB&bpmWorklistHttpURL=http%3A%2F%2Flocalhost%3A8001%2Fintegration%2Fworklistapp%2Ffaces&bpmWorklistHome=home.jspx&bpmWorklistReassign=reassignTask.jspx&bpmWorklistRoute=routeTask.jspx&bpmWorklistRequestInfo=requestInfo.jspx&bpmWorklistSecurity=signTask.jspx&tz=America%2FChicago&lg=en&cy=US&vr=&dispNameLg=en&dispNameCy=US&dispNameVr=&df=medium&dt=both&tf=short&bpmWorklistSessionTimeoutInterval=1500&bpmBrowserWindowStatus=taskFlowReturn&adf.tfDoc=%2FWEB-INF%2FManualPOApproval_TaskFlow.xml&adf.tfId=ManualPOApproval_TaskFlow&_task-flow-return=http%3A%2F%2Flocalhost%3A8001%2Fintegration%2Fworklistapp%2Ffaces%2Fadf.task-flow-return%3F_adf.ctrl-state%3Dbcqg1x7gm_49&_adf.winId=bcqg1x7gm_40&_afrLoop=4624989043858&_afrWindowMode=0&_afrWindowId=null HTTP/1.1" 200 5478
    =====snippet ends======
    Thanks for any assistance!
    MichaelM

    Resolved by disabling pop-up blocking in IE8.

  • How to use multiple submit buttons in jsp form

    hello dextors,
    Im using a jsp page which have got some 'n' no submit buttons according to the Iterator ..each iterator display a row contains few fields plus submit button ..ex., If ' n' rows means 'n' respective submit buttons..the problem here is when i click any of the submit button only the value of the first row goes
    to the other jsp page..no matter wat ever button I click only first row goes..
    remember the page displays all the rows correctly and though the values of submit button are also different it gives the same result...
    what could be the reason please help it out...
    my jsp page contains
    <%@ page language="java" import="java.util.*" %>
    <%@ page language="java" import="java.io.*" %>
    <form name="frmChangeCorrection" method="post" target="childwindow" action="popup.jsp" >
    <body>
    <%
    RFTrackerDAOFactory factory = new RFTrackerDAOFactory();
         DailyDataDAO dailyDAO = factory.getDailyDataDAO();
         String month = request.getParameter("month");
         String year = request.getParameter("year");
         String empNo = request.getParameter("empno");          
         Collection coll = dailyDAO.getMonthyEmployeeData(empNo,month,year);
    Iterator iter = coll.iterator();     
    %>
    <div align="center">
    <center>
    <table border="1" width="75%" bgcolor="#B6C7E5">
    <tr>
    <th width="11%">EMPNO</th>
    <th width="30%">EMPLOYEE NAME</th>
    <th width="11%">DATE</th>
    <th width="11%">IN TIME</th>
    <th width="11%" >OUT TIME </th>
    <th width="15%" >TOTAL HRS</th>
    <th width="11%" >MODIFY</th>
    </tr>
    </table>
    </center>
    </div>
    <%
    int count=0;
    while(iter.hasNext())
         EmployeeData data = (EmployeeData)iter.next();
         String str=data.getDuration();
         String str1= str.substring( 0, 5 );
    count++;
    %>
    <div align="center">
    <center>
    <table border="1" width="75%" bgcolor="#B6C7E5">
    <tr>
    <td width="11%"> <%= data.getEmpNo() %> </td>
    <input type="hidden" name="empno" value="<%=data.getEmpNo() %>">
    <td width="30%"> <%= data.getEmpName() %> </td>
    <input type="hidden" name="empname" value="<%= data.getEmpName() %>">
    <td width="11%"><%= data.getDate() %> </td>
    <input type="hidden" name="date" value="<%= data.getDate() %>">
    <td width="11%"><%= data.getInTime() %> </td>
    <td width="11%" > <%= data.getOutTime() %> </td>
    <td width="15%" > <%= str1 %> </td>
    <td width="11%" > <input type="submit" name="Change" value="<% =count%>" onclick="popupResult()" >
    <input type="hidden" name="Change" value="<%=count%>" >
    </td>
    </tr>
    </table>
    </center>
    </div>
    <%
    %>
    </form>          
    </p>
    </table>
    </body>
    <script>
    function popupResult(){
    window.open('about:blank','childwindow', 'height=300,width=300');
    </script>

    It is assumed that one submit button will function for a form..if you want more that one submit form try to build as many forms as u need and put the submit inside that
    that will cure your problem
    and y do you want to create so many submit buttons.. instead you can make use of select button

  • How do you use Struts with Jboss Portal

    I am trying to use strust with jboss portal but I am getting the following error:
    An error occured while rendering window 'default.MyPortlet2.myportlet2Window'
    org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71 68: List searchresult = (List) request.getAttribute("searchresult"); 69: %> 70: Stacktrace:
    I am getting this is in the log file
    Caused by: org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71
    68: List searchresult = (List) request.getAttribute("searchresult");
    69: %>
    70: <%
    71: for (Iterator itr=searchresult.iterator(); itr.hasNext(); )
    72: {
    73: testPackage.net.dao.hibernate.WorkList workList = (testPackage.net.dao.hibernate.WorkList)itr.next();
    74: %>
    Stacktrace:
    at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.ja
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:65)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.ja
    ... 238 more
    Caused by: java.lang.NullPointerException
    at org.apache.jsp.WEB_002dINF.jsp.SearchResultPage_jsp._jspService(SearchResultPage_jsp.java:152)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    ... 255 more

    I am trying to use strust with jboss portal but I am getting the following error:
    An error occured while rendering window 'default.MyPortlet2.myportlet2Window'
    org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71 68: List searchresult = (List) request.getAttribute("searchresult"); 69: %> 70: Stacktrace:
    I am getting this is in the log file
    Caused by: org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71
    68: List searchresult = (List) request.getAttribute("searchresult");
    69: %>
    70: <%
    71: for (Iterator itr=searchresult.iterator(); itr.hasNext(); )
    72: {
    73: testPackage.net.dao.hibernate.WorkList workList = (testPackage.net.dao.hibernate.WorkList)itr.next();
    74: %>
    Stacktrace:
    at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.ja
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:65)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.ja
    ... 238 more
    Caused by: java.lang.NullPointerException
    at org.apache.jsp.WEB_002dINF.jsp.SearchResultPage_jsp._jspService(SearchResultPage_jsp.java:152)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    ... 255 more

  • What is the Design to Deployment Workflow using DW with WordPress?

    I am a Designer and Developer/programmer. This is a complete workflow question: What is the Design to Deployment Workflow using DW with WordPress? For example, is it:
    PS/IL > DW > WP? (Photoshop or Illustrator, Dreamweaver, WordPress?)
    Or is Edge Reflow inserted between PS and DW?
    PS > ER > DW > WP?
    Are these workflows iterative and, whats the word, recursive - we are able to go back and forth?
    My understanding is that the Edge tools are not up to the coding standards of DW, and ER > DW (Edge Reflow to Dreamweaver) is not seamless or even practical.
    Where does the Stack come in? MAMP (or LAMP/WAMP) of course, jQuery/jQuery UI, WordPress and other items; how integrated are these things?
    I used to be a Flex developer and quite comfortable with the Design to Dynamic Deployment workflow of Illustrator or Photoshop to Flash Catalyst to Flash Builder; moreover, I thought the Eclipse IDE was excellent with its database introspection capabiliities, debugging etc. Adobe really pushed this workflow, then instead of innovating and standing behind its own product with 98% market penetration, Adobe disembowelled Flash right before everyones eyes.
    What about Prototyping, which is certainly part of the process? Fireworks is on the kibosh. Illustrator, while excelling at some aspects falls short of making a functional prototype (unless you're tying in Acrobat to link the pages), and while Photoshop is Edge Reflows darling, Edge seems redundant with DW and spits out twacky code.
    (Muse of course is unusable for professional developers, but it makes you wonder why some of those UI elements where not employed in DW whose interface seems antiquated by comparison).
    It seems Adobe is bloody all over the place, more like a rabbing drunk with a microphone rather than the dependable go-to software company for creatives the world over.
    In my opinion, workflow from beginning to end is important. Having a million different options to try to accomodate everyone is not. Some guidance in this department is greatly appreciated!
    Best,
    Dylan

    I have not used Edge Reflow myself.  Nor do I espically like WordPress.  But my typical workflow is:
    PS for Design Concept and web images.
    DW for CSS, HTML & JavaScript.
    3rd party editors like Zend Studio & Navicat for PHP & MySql development.
    Nancy O.

  • Advantages of using Oracle with Unix over Windows server

    Hi there,
    I want some article/document which depicts the advantages of using Oracle with Unix (say HP-UX or Solaris backend). Actually the plan is to use some Data Warehousing applications using Cognos Poweplay, ReportNet and either Decision Stream of Cognos or Oracle Warehouse builder may be used as ETL tool. For Data mining applications we are planning to use SPSS Clementine. The Data volume will be substantial one. At present we are developing some prototype in Windows 2003 advanced environment. We are plaiing to use Risc server and RAID-5. Pl. advice some ideal architecture for us, as you know, it's typically a Govt. level application data (mostly archival data). The reports will be published using Report Net, Adhoc query etc, OLAP analysis will be done using Powerplay.
    Regards,
    Anupam Basu

    Hi there,
    I want some article/document which depicts the advantages of using Oracle with Unix (say HP-UX or Solaris backend). Actually the plan is to use some Data Warehousing applications using Cognos Poweplay, ReportNet and either Decision Stream of Cognos or Oracle Warehouse builder may be used as ETL tool. For Data mining applications we are planning to use SPSS Clementine. The Data volume will be substantial one. At present we are developing some prototype in Windows 2003 advanced environment. We are plaiing to use Risc server and RAID-5. Pl. advice some ideal architecture for us, as you know, it's typically a Govt. level application data (mostly archival data). The reports will be published using Report Net, Adhoc query etc, OLAP analysis will be done using Powerplay.
    Regards,
    Anupam Basu

  • How to do prototyping with JDeveloper 10.1.3 ?

    Hi all,
    We need to do screen layout prototyping in our apps development phases, this is done by the business analyst to the customer for screen confirmation, no database yet, so no ADF objects also.
    I have tried the approach described on ADF Dev Guide chapter 21: Adding ADF Bindings to Existing Pages
    But the problem with this method : no data can be displayed
    Has any body a better approach to prototype with JDev ?
    Thank you very much,
    xtanto

    Xtanto,
    JDeveoper does not generate sample data. The options I see are:
    a) populate the UI components with data from a mnaged bean. This way you don't have to throw away you work and simply change the value binding to use ADF bindings
    b) Use an ADF binding that you base on e.g. a set of JavaBeans to simulate the data source. Note that this approach s easier to do if you plan to build on TopLink and EJB because in this case - assuming the method signatures remain the same, you can swap out the sample data by a search and replace in teh meta data files. The disadvantage here is that search and replace is risky to do and you need to understand the later data structure. For ADF BC I wouldn't recommend this approach at all.
    Frank

  • Using LabWindows with Visual C++, program going to LabWindows function instead of SDK func with same name

    Hi!
    I'm trying to use LabWindows with Visual C++. We mostly have it working properly, but have one problem. I want to use an SDK function that has the same name as a LabWindows function (Beep). When I call Beep with the SDK parameters, I get an error and the Visual C++ tells me I need LabWindows beep parameters. There are no LabWindows functions calls in the file. How can I get the Visual C++ compiler to use the SDK Beep and not the LabWindows Beep.
    thanks,
    Lorrie Smith
    [email protected]

    Lorrie,
    There are a number of name conflicts between CVI functions and SDK functions. CVI usually handles those conflicts by redefining the function names in the CVI headers, so that when you include the CVI headers you get the CVI functions, without any compiler errors.
    The problem you're having now is that you want to use the SDK version of the function. What you have to do in this case is to undo the redefinition that the CVI header file does.
    To do that, find out where the CVI header file "utility.h" is being included in your source code, and then, following the include statement, type "#undef Beep"
    That should allow the VC compiler to use the SDK prototype instead of CVI's.
    Luis Gomes
    NI

  • HT202667 Hi - My daughter was using her Apple TV until recently when she got a Smart TV.  Now the Apple TV is not needed so she passed it on to me.  How do I get it transferred over from her Home Sharing account to mine so that I can use it with my PC?

    Hi - My daughter was using her Apple TV until recently when she got a Smart TV.  Now the Apple TV is not needed so she passed it on to me.  How do I get her Home Sharing account transferred over to mine so that I can use it with my PC? Thanks!

    As  Winston Churchill wrote, however you might want to do a factory reset on the Apple TV.
    This way all information pertaining to your daughter will be removed from the device. Specifically if see was sign into any of the streaming service, Netflix, Hulu, etc. her credentials will still be associated with this Apple TV, doing  a factory reset will remove all that and make it as if you purchased the device and just plugged it in.
    regards

  • OPEN CURSOR using a WITH clause in the select query

    Hi,
    I am using Oracle 9i. I have a requirement where I have a REFCURSOR as an OUT parameter for my procedure. I have declared the TYPE and created the procedure.
    In the procedure, I am using OPEN <cursor_name> FOR <query>;
    Ideally this works in most of the cases that I have tried earlier. However, in the current case I am using a WITH clause in my query to get the results.
    I need help in understanding if the above mentioned syntax would not allow me to use the WITH clause in the query.

    What error do you get , seems to work ok for me on 10g
    SQL> begin
      2  open :cv for 'with x as (select * from emp)  select * from x';
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> print :cv
         EMPNO
    ENAME
    JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7521
    WARD
    SALESMAN        7698 22-FEB-81       1250        500         30
          7566
    JONES
    MANAGER         7839 02-APR-81       2975                    20
         EMPNO

  • Problems using JAAS with EJB 3.0 on JBoss 4.0.4-GA

    Hello all,
    I am trying to build a very simple JavaEE application with JAAS, but I getting mad.
    I have an EAR packed with a WAR module an EJB JAR module and a JAR with other classes. Struts is the MVC framework and EJB 3.0 is been used.
    First of all, I configured the "login-config.xml" file within /conf directory in JBoss, like this:
    <application-policy name="exemplo1">
         <authentication>
              <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
                   <module-option name="dsJndiName">java:jdbc/Infra_Seguranca</module-option>
                   <module-option name="principalsQuery">SELECT COD_USUARIO AS Password FROM USUARIO WHERE COD_USUARIO=?</module-option>
                   <module-option name="rolesQuery">SELECT NOME_ROLE AS Roles, 'Roles' AS RoleGroups FROM ROLE_USUARIO WHERE COD_USUARIO=?</module-option>
              </login-module>
         </authentication>
    </application-policy>Next I configured the "web.xml" file like this:
    <security-constraint>
         <web-resource-collection>
              <web-resource-name>Restricted</web-resource-name>
              <description>Declarative security tests</description>
              <url-pattern>*.do</url-pattern>
         </web-resource-collection>
         <auth-constraint>
              <role-name>xxx</role-name>
         </auth-constraint>
         <user-data-constraint>
              <description>no description</description>
              <transport-guarantee>NONE</transport-guarantee>
         </user-data-constraint>
    </security-constraint>
    <login-config>
         <auth-method>FORM</auth-method>
         <realm-name>exemplo1</realm-name>
         <form-login-config>
              <form-login-page>/login.jsp</form-login-page>
              <form-error-page>/loginErro.jsp</form-error-page>
         </form-login-config>
    </login-config>
    <security-role>
         <description>Role xxx</description>
         <role-name>xxx</role-name>
    </security-role>Notice that I am using the "xxx" role to protect the "*.do" URL pattern.
    The "jboss-web.xml" is like this:
    <?xml version="1.0"?>
    <jboss-web>
         <security-domain>java:/jaas/exemplo1</security-domain>
    </jboss-web>As it is, it works perfectly, which means, every time I try to access a "*.do" URL it verifies whether I am authenticated and have authroization or not. If not, the login page shows up.
    Now I wanna to be able to also protect my EJBs.
    My Stateless Session Bean is implemented as follow:
    @RolesAllowed("yyy")
    @Stateless(name="UserManagement")
    public class UserManagementBean implements UserManagement {
         public void add(User user) {
    }When I run all this, the container simply igoners the @RolesAllowed("yyy") annotation and allow the EJB execution.
    If I add the "jboss.xml" file, like this:
    <?xml version="1.0"?>
    <jboss>
         <security-domain>java:/jaas/exemplo1</security-domain>
    </jboss>I start getting this stack trace:
    ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
    java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
    at org.jboss.security.auth.spi.Util.loadProperties(Util.java:313)
    at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
    at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
    at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    ... Am I missing something? What do I have to do to get JAAS working fine with my EJBs? Do I have to also configure and/or provide "ejb-jar.xml" ???
    Thanks
    Daniel

    Using @SecurityDomain("exemplo1") in my EJB and NOT providing jboss.xml, it works.
    @SecurityDomain("exemplo1")
    @RolesAllowed("yyy")
    @Stateless(name="UserManagement")
    public class UserManagementBean implements UserManagement {
      public void add(User user) {
    }Damn! This is some serious shit... I don�t want to configure this in every single EJB.
    EJB 3.0 is nice, but some small trivial details like this and others, that was forgotten by Sun, piss me off!

  • My iPhone 4 will not sync my new voice memos from the "Voice Memos" app to my computer. This is frustrating, should not be so hard, can someone please help. I use PC with windows 7 with iPhone version 6.1.3 and iTunes most recent. Thanks.

    My iPhone 4 will not sync my new voice memos from the "Voice Memos" app to my computer. This is frustrating, should not be so hard, can someone please help. I use PC with windows 7 with iPhone version 6.1.3 and iTunes most recent. Thanks.

    In the Music tab of iTunes, do you have 'Include Voice Memos' checked?

Maybe you are looking for

  • Extension Fails to update in Extension Manager CC

    I deployed an update of my extension. The extension is hosted on my server, with an update.xml file linked to by the currently installed extension. In Extension Manager CC the extension entry appears with an update button, when pressed, and confirmed

  • Help with a while loop condition

    I'm trying to write to a File. I ask the user for input, then I enter a while loop and test the condition. The loop works, but it won't stop. I've tried everything. Here is my code please help!! thanks inputline = keyboard.readLine();//read the keybo

  • ITunes U Outage on 12/6?

    We're experiencing problems connecting to iTunes U, both through Perl and through Rich Wolf's standalone app. Thinking it might have been a local network issue, I tried Stanford and Berkeley's iTunes site, and found them similarly unresponsive. Is an

  • Should I upgrade to Intel? Or stay on Power PC?

    Hi all. I have a problem and was wondering if you all could help me out. I currently own a Dual 1.8 G5 Power PC Mac. I'm debating on weather I should just do some minor upgrades (like up my hard drive space and max out my memory) or if I should start

  • Mac mini server, Snow Leopard, Linksys E4200, 802.11n

    Hi, I have mac mini server and wifi router linksys e4200. Something goes wrong after software update on mac mini. For clarify I updated a firmware on E4200 too but I think that is not a problem. Now I can't get full speed from 802.11n mode. My downlo