Into a Bean ?

If I might make my question any clearer...I plan to query all columns ( select * for Lot ID = <%=request.getParameter("LOT_ID") %> )for a particular 'Lot_ID' at page 1. Hence, the subsequent pages will display "certain" selected information( not the whole columns!). So, to achieve this I need to extract the recordsets resulting from the SQL Query at Page 1 in some document (or anywhere) and be able to selectively extract only certain columns of it accordingly for the following pages.
Hence, I was hoping to put those SQL Query results into a BEAN ...
Can someone help me ?...I`ve included my querylot.jsp file ....Please shed some light

<HTML>
<BODY>
<H1>Manufacturing Summary beta </H1><BR>
<%@ page import="java.sql.*" %>
<%@ page import="java.lang.*" %>
<%@ page import="java.text.*" %>
<jsp:include page="/index.html" flush="true"/>
<P><B>Returned result<B><BR>
<B>Query String :</B><%=request.getParameter("date") %>
<TABLE BORDER=1 cellpadding=0 cellspacing=0>
<%!
static double roundDouble(double toBeRounded, int fractionDigits)
NumberFormat format = NumberFormat.getInstance();
format.setMaximumFractionDigits(fractionDigits);
String tempDouble = format.format(toBeRounded);
return Double.parseDouble(tempDouble);
%>
<%
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@klmomnidb:1521:
OMNIDB","omni","omni");
Statement stmt = null;
ResultSet rset = null;
String S_date = new String();
String temp = new String();
String lot_id = new String();
String result = new String();
String SQL_String = new String();
double yield;
int bad_cnt;
S_date = request.getParameter("date");
lot_id = request.getParameter("lot_id");
temp = request.getParameter("TST_TEMP");
SQL_String = "SELECT LOT_ID, FLOW_ID, TST_TEMP, MODE_COD, RTST_COD, PART_CNT, GOOD_CNT, OPER_NAM, JOB_REV, PROC_ID, START_T, FACIL_ID, TSTR_TYP, NODE_NAM FROM LOT where START_T > TO_DATE('"+ S_date + "','MM/DD/YYYY') AND TST_TEMP <='" + temp+"' order by START_T";
out.println(SQL_String);
stmt = conn.createStatement();
rset = stmt.executeQuery (SQL_String);
out.println("<TR>");
out.println("<TD> Select Lot(s)</TD>");
out.println("<TD>Flow </TD>");
out.println("<TD>Temp </TD>");
out.println("<TD>Test Mode </TD>");
out.println("<TD>Retest</TD>");
out.println("<TD>Total </TD>");
out.println("<TD>Good</TD>");
out.println("<TD>Bad</TD>");
out.println("<TD>Yield </TD>");
out.println("<TD>UserID</TD>");
out.println("<TD>Program</TD>");
out.println("<TD>Mask</TD>");
out.println("<TD>Start Time </TD>");
out.println("<TD>Loc </TD>");
out.println("<TD>Tester</TD>");
out.println("<TD>System </TD>");
out.println("</TR>");
if (! rset.next()) {
result ="No records found matching seach criteria.";
while (rset.next()) {
bad_cnt = Integer.parseInt(rset.getString(6)) - Integer.parseInt(rset.getString(7));
yield = (Double.parseDouble(rset.getString(7)) / Double.parseDouble(rset.getString(6))) * 100;
result= "<TR>";
result = result + "<TD><a href=coolpage.jsp?LOT_ID=" + rset.getString(1)+ ">" +
rset.getString(1) + "</A></TD>";
result = result + "<TD>" + rset.getString(2) + "</TD>";
result = result + "<TD>" + rset.getString(3) + "</TD>";
result = result + "<TD>" + rset.getString(4) + "</TD>";
result = result + "<TD>" + rset.getString(5) + "</TD>";
result = result + "<TD>" + rset.getString(6) + "</TD>";
result = result + "<TD>" + rset.getString(7) + "</TD>";
result = result + "<TD>" + bad_cnt + "</TD>";
result = result + "<TD>" + roundDouble(yield,2) + "% </TD>";
result = result + "<TD>" + rset.getString(8) + "</TD>";
result = result + "<TD>" + rset.getString(9) + "</TD>";
result = result + "<TD>" + rset.getString(10) + "</TD>";
result = result + "<TD>" + rset.getString(11) + "</TD>";
result = result + "<TD>" + rset.getString(12) + "</TD>";
result = result + "<TD>" + rset.getString(13) + "</TD>";
result = result + "<TD>" + rset.getString(14) + "</TD>";
result = result + "</TR>"; %>
<%=result%>
<% }
rset.close();
stmt.close();
conn.close();
%>
<%=result%>
</TABLE>
</BODY>
</HTML>

Similar Messages

  • How to call precedure in impl into java bean

    Dear all,
    i'm tried to call procedure at impl.java into java bean.
    but, there is error which is it cannot find the root of this.getDBTranstation
    any idea.
    TQ

    Hi
    Please tell me
    How to call ethod in AppModuleImpl from other bean?
    I have created method in AppModuleImpl
    public String callFuncWithArgs(String p_company, String p_division, String p_user, String p_wrkord_type,
    String p_service_type, String p_HOLD_CODE_TYPE) {
    return (String)callStoredFunction(VARCHAR2, "WS_tran.Margin_TO_USER(?,?,?,?,?,?)",
    new Object[] { p_company, p_division, p_user, p_wrkord_type, p_service_type,
    p_HOLD_CODE_TYPE });
    This method is working after run APPModule. But I want to call this method from SparesTEOImpl class and
    public boolean validateUnitPrice(int unitprice) {
    //want to call here AppModuleImpl
    callFuncWithArgs(String p_company, String p_division, String p_user, String p_wrkord_type,
                                       String p_service_type, String p_HOLD_CODE_TYPE) here
    Please tell me how to call , I wrote in following ways but I got error...
    public boolean validateUnitPrice(int unitprice) {
    String margin=appImpl.callFuncWithArgs("00004","SDWSG", "S1","CSH", "SP","M");
    System.out.println("Output"+margin);
    return margin;
    After that I got the following error.
    Exception in thread "main" oracle.jbo.InvalidOwnerException: JBO-25301: Application module AppModuleImpl_0 is not a root app module but has no parent
        at oracle.jbo.server.ComponentObjectImpl.getRootApplicationModule(ComponentObjectImpl.java:177)
        at oracle.jbo.server.ApplicationModuleImpl.getDBTransaction(ApplicationModuleImpl.java:3656)
        at model.AppModuleImpl.callStoredFunction(AppModuleImpl.java:128)
        at model.AppModuleImpl.callFuncWithArgs(AppModuleImpl.java:160)
        at model.SparesTEOImpl.validateUnitPrice(SparesTEOImpl.java:55)
        at model.SparesTEOImpl.main(SparesTEOImpl.java:67)
    Process exited with exit code 1.
    Please tell me how to solve this problem...

  • How to convert csv files into java bean objects?

    Hi,
    I have a CSV file, I want to store the data availabale in that csv file into java bean, I am new to this csv files how can I convert CSV files into java beans.
    Please help me.
    Adavanced Thanks,
    Mahendra

    You can use the java.io API to read (and write) files. Use BufferedReader to read the CSV file line by line. Use String#split() to split each line into an array of parts which were separated by comma (or semicolon). If necessary run some escaping of quotes. Finally collect all parts in a two-dimensional List of Strings or a List of Javabeans.
    java.io API: [http://www.google.com/search?q=java.io+javase+api+site:sun.com]
    java.io tutorial: [http://www.google.com/search?q=java.io+tutorial+site:sun.com]
    Basic CSV parser/formatter example: [http://balusc.blogspot.com/2006/06/parse-csv-upload.html]

  • Changing Java class into Java Bean

    Can anybody tell me how to change a Java class into simple Java Bean.I dont need any visual interface of Java Bean.I simply want to turn my Java class into Java Bean.

    You can use almost any class as a java bean.
    To be a bean it must
    1 - Have a constructor which takes no arguments (so it can be instantiated)
    2 - For properties/attributes which you want to have readable/writable, provide get / set methods of the appropriate type.
    Thats it.

  • Stepping into Java Beans from JSP

    I am trying to figure out how to step into the Java Source code for my beans that are used in my JSP pages. I need to be able to debug them by stepping into them, using break points, etc.
    I have Nitro installed and a sample JSP page with the import to my test Java Bean class. What I did was create two projects in my work space. One as a Web project application and one as a Java project. I referenced and opened both projects. Everything compiles fine and the syntax is correct.
    The problem is I can not make the link for importing the class.
    I get this error: Class com.BrianTest.MyBean not found in import com.BrianTest.MyBean
    Anyone got a clue or a good example? I did try and add the class path and I tried to put it in a Jar file and attach the source to the Jar, but same problem.
    Thanks :?

    Stepping into jsp:useBean is not possible, but you can step-into jsp getter & setter tag.
    Since you are using java bean from a dependent project you need to configure your server with DevLoader.
    And currently only Tomcat server can be configured with Sysdeo Devloader to handle this situation
    Download Sysdeo DevLoader for Tomcat from http://www.sysdeo.com/eclipse/tomcatPlugin.html
    NOTE: If the project is self sufficient and not dependent on other projects/locations for classess/libraries then NitroX picks up all the libraries & classes present within default WEB-INF/lib & WEB-INF/classes respectively. And in this case you need not modify server configuration.
    Sysdeo DevLoader is to allow your web project to use libraries/classes from dependent projects. All you need to do is extract DevLoader.zip present within tomcatPluginV3.zip inside your Tomcat/server/classes folder.
    For more information about DevLoader please refer to http://www.sysdeo.com/eclipse/readmeDevLoader.html
    This will solve your problem and you should be able to run/debug your application. And most important make sure you have the correct NitroX build that supports Sysdeo DevLoader, refer http://www.m7.com/whatsnew.htm document against your build id (Help > About NitroX > NitroX Icon)

  • Transform a class that implements JPanel into a bean.

    I'd to create a bean, from a class that implements JPanel, that in fact is a custom component.
    How can I create a bean?
    I have absolutely no idea about beans.
    What can make beans for me?
    I know a lot about the theory of ejb, is this what I need?
    I'm quite confused, please make me see the light!!!!!
    Thanks.

    Hi Daniel!
    To answer your question short as possible:
    Java -Beans are reusable code - components,
    similar to VB Active -X components,
    which you can use when developing your own
    applications.
    Beans can have a graphic user interface, so you
    can use builder tools like JBuilder or Beanbox
    to show them graphically in a designer.
    You can modify them about their properties,
    mostly shown in a special property window of a
    builder tool.
    It's really not very hard to create your own beans,
    the only thing you have to do is to pack all the
    classes which make the bean into a jar file.
    Then you can import the bean with the builder
    and it will be shown.
    The jar manifest file needs to look like for example:
    Manifest-Version: 1.0
    Name: BeanClock.class
    Java-Bean: True
    All the properties are implemented by public property-get
    and property-set methods, in order to show them in the property window.
    Java is doing that by introspection.
    Hope, this makes it a little bit clearer for you!

  • Help making this into a bean

    I tried making a bean that connects to a db and runs a queary then returns the results in a list, the problem is i started out using a exsiting servlet which did something simarliar! Stupid to do i know!! as now i am having all sorts of problems below is the code can somebody please help me get rid of the bits i don't need? I know i don't need to extend http and i can get rid of the doGet but by doing that i get errors with the try bits can somebody please help with this? Also everything as to be in one bean not spiltting it up into a number of beans or servlets to do connection, queries etc
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class MyBean extends HttpServlet {
        private String Category;
        private String Price;
        public MyBean(String Category, String Price){
            this.Category = Category;
            this.Price = Price;
        public String getCategory(){
            return Category;
        public String getPrice(){
            return Price;
        public void setCategory(String Cat) {
            Category = Cat;
        public void setPrice(String Price) {
            Price = Price;
        public String toString() {
            return Price;
        public List getVideo(String p1, String p2) {
            ArrayList Vids = new ArrayList();
            VideoBean v1 = new VideoBean();
            v1.setArtist("some artist");
            v1.setTitle("this has worked");
            vids.add(v1);
            return vids;
        public void doGet(HttpServletRequest request,
        HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html");
            PrintWriter out = response.getWriter();
            Connection conn = null;
            String CatPassed;
            String PricePassed;
            try{
                Class.forName("com.mysql.jdbc.Driver").newInstance();
            } catch(Exception e) {
                System.out.println(e);
            try{
                conn = DriverManager.getConnection
                ("my url goes in here");
            catch(SQLException se) {
                System.out.println(se);
            try{
                CatPassed = request.getParameter("Category");
                PricePassed = request.getParameter("Price");
                String selectSQL = "Select artist_name, title" +
                "from vids" +
                "where category = '" + CatPassed + "'" + " and price = " + PricePassed;
                Statement stmt0 = conn.createStatement();
                ResultSet rs0 = stmt0.executeQuery(selectSQL);
                System.out.println(selectSQL);
                List collection = new ArrayList();
                while(rs0.next()) {
                    VideoBean videos = new VideoBean();
                    videos.setArtist(rs0.getString("artist_name"));
                    videos.setTitle(rs0.getString("title"));
                    collection.add(videos);
                stmt0.close();
                conn.close();
            catch(SQLException se) {
                System.out.println(se);
    }Any Help at all would be excellent!

    Ok the following code is just a dummy version (just to provide something to what you requested) and it's not intended for production use. Also currently it doesn't compile since you didn't provide the code for VideoBean.
    Few notes about the following code:
    1) The use of raw types is descouraged starting from Java 5 and instead parametrized types (in the form of List<VideoBean>) should be used. Raw types should only be used in interaction with legacy code.
    2) The business method gets a connection, does the business, releases the connection. In an ideal world, you would have this code in a helper class or better by using some utility functionalities to pool the connections, or better by using an application server (in a EE world) with datasources, etc
    3) A JavaBean must follow some naming conventions. Amongst which there is the convention that an instance variable name should start with lowercase and then follow a camel lower upper case, so that a dosomethinguseful variable should be named doSomethingUseful. Each instance variable should then have a get/set method (called getters/setters). In Java usually variables start with lowercase and classes start with upper case.
    This is the JavaBean code with a business method to run your stuff (untested!):
    package uk.co.jemos.experiments;
    import java.io.IOException;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.ArrayList;
    import java.util.List;
    public class MyBean {
        private String category;
        private String price;   
         public MyBean(String category, String price){
            this.category = category;
            this.price = price;
            try{
                Class.forName("com.mysql.jdbc.Driver").newInstance();
            } catch(Exception e) {
                System.out.println(e);
        public String toString() {
            return price;
        public List getVideo(String p1, String p2) {
            ArrayList vids = new ArrayList();//only ok in JDK < 1.5
            VideoBean v1 = new VideoBean();
            v1.setArtist("some artist");
            v1.setTitle("this has worked");
            vids.add(v1);
            return vids;
        public List runMyBusiness() throws IOException {      
            Connection conn = null;       
            //The return value
            List collection = new ArrayList();
            try{
                 conn = DriverManager.getConnection
                ("my url goes in here");
                 String selectSQL = "Select artist_name, title" +
                "from vids" +
                "where category = '" + category + "'" + " and price = " + price;
                Statement stmt0 = conn.createStatement();
                ResultSet rs0 = stmt0.executeQuery(selectSQL);
                System.out.println(selectSQL);
                while(rs0.next()) {
                    VideoBean videos = new VideoBean();
                    videos.setArtist(rs0.getString("artist_name"));
                    videos.setTitle(rs0.getString("title"));
                    collection.add(videos);
                stmt0.close();
            catch(SQLException se) {
                System.out.println(se);
            //Always be sure of closing connections
            } finally {
                 if (null != conn) {
                      conn.close();
            return collection;
         public String getCategory() {
              return category;
         public void setCategory(String category) {
              this.category = category;
         public String getPrice() {
              return price;
         public void setPrice(String price) {
              this.price = price;
    }And this is a client to test your application (untested!):
    package uk.co.jemos.experiments;
    import java.io.IOException;
    import java.util.List;
    public class MyBeanClient {
         public MyBeanClient() {
              // TODO Auto-generated constructor stub
          * @param args
         public static void main(String[] args) {
              MyBean myBean = new MyBean("Category", "Price");          
              try {
                   //Note that raw types like List should only
                   //be used by JDK versions prior to 1.5, otherwise
                   //parametrized types should be used
                   List videoBeans = myBean.runMyBusiness();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    }The package is about my directory structure but I didn't want to create an ad-hoc one (it can always be changed to something else).

  • Getting user principal username into manged bean?

    Hi,
    Can anyone enlighten me on the syntax for injecting in the request.getUSerPrincipal.getName() value into a managed bean using EL syntax ....
    My attempt is not working?
    <managed-bean>
            <description>A component incapsulating a dealers commissions information.</description>
            <managed-bean-name>commission</managed-bean-name>
            <managed-bean-class>com.macalla.topup.model.dataholders.impl.CommissionDataHolderImpl</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
            <managed-property>
                <property-name>createdBy</property-name>
                <value>#{requestScope.userPrincipal.name}</value>
            </managed-property>
            <managed-property>
                <property-name>gbluserid</property-name>
                <value>#{info.paymentsUser.gbluserid}</value>
            </managed-property>
        </managed-bean>Cheers

    Inside your CommissionDataHolderImpl bean you can do:
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext externalContext = facesContext.getExternalContext();
    Principal principal = getExternalContext().getUserPrincipal();You don't have to use managed-beans.xml to pass it.
    best regards,
    artur

  • How to query data from database and store it into Managed Bean ?

    Hi all,
    In our application we have requirement to store information within Managed Bean to be accessed by ADF pages.
    The information is stored in database tables.
    The question is :
    What is the efficient / recommended way to do that ?
    I do not use apps module to query the data because the information is required in View layer not the model layer
    Thank you for your help,
    xtanto

    Xtanto,
    if the information is stored in the database then the question is if there is a database connect open already. If yes, then why not using this connection to query for the data you want to access and store. Alternatively you can directly open a JDBC connection in a managed bean or access an EJB session bean. However, this comes with the price of an extra database connection.
    Make sure the managed bean is in session scope if you want to share the information without re-fetching it
    Frank

  • How to pass a internal table into Java Bean

    Hi Experts,
    I created a JSPDyn page to display Sales orders form R/3 using bapi_sales_order_getlist.
    I used JCO to establish connectivity between JSP Dynpage and R/3. I executed the bapi successfully, i want to move the sales orders retrieved from the Bapi to a Java Bean. So that i can use the bean to populate the value as a table.
    with regards,
    James.
    Valuable answers will be rewarded.....

    Hi Bala,
    If you want to pass this internal table between different methods of the same view then write the contents of this internal table to a context node of your view using BIND_TABLE. You can then read the contents of this internal table from the other method using the reference of that node & the GET_STATIC_ATTRIBUTES_TABLE method.
    However if you want to pass the internal table between methods of different views then create a context node at the COMPONENTCONTROLLER level & then do a context mapping of this node to your local views context in both your views. You can follow the same BIND_TABLE & GET_STATIC_ATTRIBUTES_TABLE methods approach.
    Regards,
    Uday

  • How to populate my input data into java bean through

    Hi,
    I have one doubt in swing how many ways we can populate the input properties(data fron gui screen) into my javabean object(Simple POJO)
    Thanks,
    Tuku

    Hi,
    I have one doubt in swing how many ways we can populate the input properties(data fron gui screen) into my javabean object(Simple POJO)
    Thanks,
    Tuku

  • Push messages from business logic into backing bean

    In my simple web application a table with the contents of a database table is shown to the client. Now I want this table in the browser to be updated each time the db table is updated. In my business logic a jms message is fired to a specified topic each time the db table is updated. The reverse ajax stuff needed for the client update is provided by the Icefaces jsf implementation. There is a backing bean for each session which is responsible for the server side rerendering of the client. Now my question is: How do I connect the bussiness logic firing a jms message if the db table is updated, with the backing bean?
    My thoughts:
    1. Create a message listener for the topic. Each time the message listener receives a message it notifies the backing beans of each session to rerender the client. But how does the message listener know about the backing beans?
    2. The backing bean responsible for rerendering the client adds itself as a listener. But where? As I understand it cannot be a backing bean and a jms MessageListener at the same time.
    Has anyone an idea/pattern for this problem?

    You could keep a list of beans that need to be notified in the application scope. (You should probably use weak references so that they may be garbage collected.) Then you JMS listener could get access to them.
    Somebody posted a thread recently where they were doing something very similar, you might want to try to find it.

  • Getting data from view object into backing bean

    Hi,
    My requirement is explained below -
         I have a ADF editable table in a jsf page which is connected to backend database table. In the table there are 6 columns and only 2 are editable. So when user inputs a value in first input column an event is triggered such that the data for all the remaining columns should be fetched from another database table.
    Typically if we are not using ADF development environment. We would have had a simple business method which creates the sql query by taking the input from textbox with simple where clause and I would have got the data. I am not getting any idea how to do this in ADF. I have the second table as view object but how to access the view object from backing bean and get data based on the input given.

    Hi,
    step 1) Expose a method on the ViewObject Impl class
    step 2) define arguments for the method as needed to identify the row to read data from
    step 3) retrieve the row from the VO that holds the data you want to add and return a HashMap with this information
    step 4) expose the method on the client interface (Java menu selection on the View Object)
    step 5) In the PageDef file, create a method binding to the method you exposed on the ViewObjectImpl
    step 6) Call the method binding from the managed bean like
    OperationBinding getDataFromVO = (OperationBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("Name of method binding);
    getDataFromVO.getParamsMap().put("name of arguments1", value1);
    getDataFromVO.getParamsMap().put("name of arguments2", value2);
    Object retData = getDataFromVO.execute();
    if(retData != null && getDataFromVO.getErrors().size()==0){
      HashMap retDataMap = (HashMap) retData;
    ... follow the rest of your logic ....
    Frank

  • Change LOV into ListBox bean

    Hi All
    I have a seeded page
    that page have three to four LOVs
    when I click on that LOV's Icon then it shows new page which contains
    no. of values which I suppose to select but it gives me only one option to be select
    but now I want to convert that LOVs in to ListBox Bean
    which give me options to select multiple selections
    How can I get this?

    HA,
    Replace your existing import with below one.
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    import oracle.apps.fnd.framework.webui.beans.form.OADefaultListBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageLayoutBean;
    PR
    OADefaultListBean list = (OADefaultListBean)createWebBean(pageContext,OAWebBeanConstants.DEFAULT_LIST_BEAN,null, "positionsList");
    list.setListViewObjectDefinitionName("oracle.apps.per.test.poplist.server.IjpTypeTestVO");
    list.setListValueAttribute("Id");
    list.setListDisplayAttribute("Meaning");
    list.setMultiple(true);
    list.setName("Test posList");
    OAMessageLayoutBean listBoxLayout = (OAMessageLayoutBean)webBean.findChildRecursive("ListBoxLayout");
    istBoxLayout.addIndexedChild(list);Note - you need to create the OAMessageLayoutBean in Jdev and provide the ID as ListBoxLayout.
    PFR
    OADefaultListBean list = (OADefaultListBean)webBean.findChildRecursive("positionsList");
        String name = list.getName();
        String[] selectedValues = pageContext.getParameterValues(name);
        System.out.print("Values : "+selectedValues.toString());You can find out the VO path by clicking on the about this page link. But what i would suggest you to create a new one for testing.
    Regards.
    Gyan

  • WebLogic 12.1.2 fails when injecting extension in jar into bean in same jar

    WebLogic 12.1.2 fails when deploying a web application that contains a jar in which an extension is injected into a bean that resides within that same jar. The following exception is thrown:
    "weblogic.management.DeploymentException: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [SampleExtension] with qualifiers [@Default] at injection point [[field] @Inject private test.ApplicationBean.extension]"
    weblogic.management.DeploymentException: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [SampleExtension] with qualifiers [@Default] at injection point [[field] @Inject private test.ApplicationBean.extension]
      at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:123)
      at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:260)
      at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48)
      at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
      Truncated. see log file for complete stacktrace
    Caused By: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [SampleExtension] with qualifiers [@Default] at injection point [[field] @Inject private test.ApplicationBean.extension]
      at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:311)
      at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:280)
      at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:143)
      at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:163)
      at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:382)
    The problem can be easily reproduced by a minimal case with the following structure:
    war-root
         WEB-INF
             beans.xml
             lib
                somejar.jar
    And with somejar.jar having the following structure:
    test
        ApplicationBean.java
        SampleExtension.java
    META-INF
        services
            javax.enterprise.inject.spi.Extension
        beans.xml
    ApplicationBean can looks as follows:
    @Named
    @ApplicationScoped
    public class ApplicationBean {
        @Inject
        private SampleExtension extension;
        @Inject
        private BeanManager manager;
        public void myMethod() {
            System.out.println("Extension:" + extension + " Manager:" + manager);
    And SampleExtension can be:
    public class SampleExtension implements Extension {
        public void onBeanDiscovery(@Observes AfterBeanDiscovery beanDiscovery, BeanManager beanManager) {
            out.println("Extension called");
    I published a minimal web application (as Maven multi-module project) that reproduces the case here: https://github.com/arjantijms/inject-extension
    This application runs fine on basically every other Java EE server (tried specifically JBoss EAP 6.1, GlassFish 4.0 and TomEE 1.5.2), but not on WebLogic 12.1.2.
    Note that I'm not really a WebLogic user. I'm an open source library writer who's trying to make our library (OmniFaces) to run on all Java EE implementations. This case is part of a functionality in our upcoming release.

    Hi,
    If it is war then try to apply following  Patch 13893259.
    Regards,
    Kal

Maybe you are looking for