Create jsp/bean webapp deploy fine...  add JSTL library wont deploy!

winxp
SJSE8
PROBLEM:
Using the new project wizard, I create a simple jsp/bean webapp using the embedded tomcat 5.5.7 as server... It deploys and runs with now issue
Then, I right-click on project name (in project tree)... click properties... add library... select "JSTL 1.1".... do clean/build.... do deploy - which fails!
message is: "Failed to deploy application at context path /bcd" (where bcd is my project name)
Why does this happen?
--------------simple app---------------
***jsp1.jsp****
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
    <h1>JSP Page</h1>
    <h1>get stuff JSP Page</h1>
    <jsp:useBean id="a" class="bcdpkg.IndexBean" scope="request"/>
    <h3>after1...</h3>
    <!--jsp:setProperty name="a" property="stuff" value="xxx" /-->
    <jsp:getProperty name="a" property="stuff" />
    </body>
</html>***IndexBean.java***
package bcdpkg;
public class IndexBean
    /** Creates a new instance of IndexBean */
    public IndexBean()
    private String stuff = "this is stuff";
    public String getStuff()
        return this.stuff;
    public void setStuff(String s)
        this.stuff = s;
}

well.... I restarted SJSE8 (and tomcat 5.5.7) and now I can right-click on the project and click deploy...successfully.
(Apologies for the "hair trigger" posting)
I'll reply once more if it happens again.
thanx

Similar Messages

  • Create Form Beans from JSP/HTML forms

    In the Builder certification objectives, there is one called "Create Form Beans from JSP/HTML forms". How can I do that? How can I create a form beam starting from the JSP form or HTML form?

    Guys, no one from forum can answer this question?

  • Updating / Creating new Beans

    Whenever I update or create a new bean, I can't seem to read anything from the bean, although it seems to have no problem recognizing that the bean is there.
    All my old beans work just fine, but whenever I make a change to one or add one, I can't use it. All my fields retrieve as "" (strings).
    I'm running tomcat, and my beans have all been properly compiled and put in WEB-INF\classes\packagename
    Thanks,
    --k                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    They are identical to any other variable in the bean, just renamed obviously.
    In JSP page:
    <jsp:useBean id="sLibBean" class="releaseFormBeans.subLibBeanRDATE" scope="session"/>
    Bean:
    For:
    package releaseFormBeans;
    import java.util.*;
    import java.text.*;
    public class starTeamBuildBeanRDATE
    These were added:
         String paramRdate = "";
         String paramRtime = "";
         String paramRzone = "";
    added to bean with get/set methods added as well.
    thanks,
    --k                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Creating Session Bean Facade Methods Off EJB QL

    Hello,
    I'm trying to follow the documentation for creating a Session Bean that has facade methods for various Entity Beans. When I add a named query:
    @NamedQuery(name = "Debtor.findDebtorById", query = "select o from Debtor o where o.debtorId = ?1")
    I end up with the following facade method:
    /** <code>select object(o) from Debtor o where o.DEBTOR_ID = ?1</code> */
    public List<Debtor> queryDebtorFindDebtorById(Object p1) {
    return em.createNamedQuery("Debtor.findDebtorById").setParameter(0, p1).getResultList();
    I see two issues here:
    1) The type of the input parameter is supposed to be a long, as the Entity Bean field looks like:
    @Id
    @Column(name="DEBTOR_ID", nullable = false)
    private Long debtorId;
    2) The parameter being set is '0' instead of '1'.
    Is there a known issue with generating this code in JDev? Or am I doing something wrong?

    another strange problem.
    i have an APplication server added ( JBOSS ).
    when i create deployment profile (EAR ) application server is showed in the ComboBox .
    But when i create Java Test Client for some EJB and when i check " Connect Remote Application server" there is 2 comboboxes
    J2EE Application
    App Server Connection.
    first combo is ok there is EJB applicaiton
    Secound is empty .. but i Have App Server.
    Another think is that when i create EJB 3.0 its BAD to see J2EE app it must be J EE 5 app or just Java EE app

  • Apache not loading images of Webapp deployed on WLX 10

    Hi,
    I have deployed a Webapp on Weblogic Express 10 on Linux.
    When I call the webapp application by giving Weblogic hostname URL its works perfect.
    I have configured Apache Webserver to forward the requests to webapp deployed on WLX 10. When I try to access the application through Webserver communication is happening to Weblogic and it loads the page, but images & gifs are not getting.
    Is there anything else I have to set on Apache or Weblogic for this problem.
    Please Advice
    - - Weblogic Consultant.

    Even I am facing the same problem,
    I have a Web application deployed on Weblogic Express 10. When I access the application through App server URL it works fine.
    I have configured Apache Webserver to proxy requests to Weblogic, WHen I access the application through Webserver it opens the application but it doesnt load images gif, jpg files. Below is my Apache Webserver Plugin configuration for Weblogic.
    <Location />
    SetHandler weblogic-handler
    WeblogicCluster AppServerHostname:7003
    PathPrepend /MyApplication/en/US/enterprise/Mycompany
    MaxPostSize -1
    WLIOTimeoutSecs 1800
    MatchExpression *.jsp
    MatchExpression *.html
    MatchExpression *.jpeg
    MatchExpression *.gif
    Debug ON
    WLLogFile /tmp/wl.log
    DebugConfigInfo ON
    KeepAliveEnabled ON
    KeepAliveSecs 15
    </Location>
    Please advice.
    Weblogic Consultant

  • PROBLEM RUNNING BEAN AFTER DEPLOYMENT

    Dear Friends:
    I have developed a Stateless Session Bean using Visual Cafe 3.0 Enterprise
    Suite
    on Windows 98. We have installed Weblogic 5.1 on Windows 98 (same machine
    as the Visual Cafe).
    We have compiled, created JAR Files and deployed the Bean successfully.
    However, when we try to run the Bean using
    Project|Execute, we are unable to get the output. The animated Icon that
    shows the progress of activity on Weblogic server
    plays forever and no error messages are displayed.
    We wanted to know if we need to create a client program after deploying the
    Bean. What other steps are we supposed to follow
    after deploying the bean. The Bean we are trying to run is the so called
    "Hello World" Bean.
    We also want to know how to run the sample Beans that came along Visual
    Cafe.
    Can someone please let us know as to what we are supposed to do after the
    deployment.
    Can we use Weblogic on Windows 98?
    Regards
    Rao Amanchi
    V-Soft

    Thanks for the response...but hope you don't mind cause I need to ask a few more questions here..
    first of all...my program is sort of made up of a lot of classes...so if I'm to add the -depreciation command...which class am I suppose to add it to for the compilation?? (sorry..i'm still pretty new in this Java thing..)
    secondly...I've been checking the program again and I realised that the internal things seem to be running find (e.g, the treenodes are created and added)..but it's just that it is not being displayed at all... when I run other functions to the program which eventually works to refresh this tree, it finally appears...
    third...I've some smaller modules working on the same concept of displaying the tree views as well and they too are not displaying anything on the JPanel when I run them...
    Is there some alteration to the codes in JTree or something in this newer version that is causing this weird behaviour???
    THanks again!

  • Creating entity beans with auto numbered primary key

    I have two entity bean with a CMR between them. I am successfully creating the first one but when I try and create the child entity bean I get a NullPointerException.
    Now I think this is because the gernerated code tries to get the primary key of the created entity bean and this is not set as it is set using a auto number in the database (An oracle sequence and trigger).
    Is there anyway i can get round this problem?
    Thanks in advance,
    Adrian

    This is the auto generated code:
         public dmd.sync.ejbs.entity.AppliancePackInfoLocal create_Local(dmd.sync.dataobjects.dto.AppliancePackInfoDTO appliancePackInfoDTO, dmd.sync.ejbs.entity.AmppLocal amppLocal) throws javax.ejb.CreateException, java.rmi.RemoteException {
              BeanO beanO = null;
              dmd.sync.ejbs.entity.AppliancePackInfoLocal result = null;
              boolean createFailed = false;
              boolean preCreateFlag = false;
              try {
                   beanO = super.createBeanO();
                   dmd.sync.ejbs.entity.AppliancePackInfoBean bean = (dmd.sync.ejbs.entity.AppliancePackInfoBean) beanO.getEnterpriseBean();
                   preCreateFlag = super.preEjbCreate(beanO);
                   bean.ejbCreate(appliancePackInfoDTO, amppLocal);
                   Object ejsKey = keyFromBean(bean);
                   result = (dmd.sync.ejbs.entity.AppliancePackInfoLocal) super.postCreate_Local(beanO, ejsKey, true);
                   bean.ejbPostCreate(appliancePackInfoDTO, amppLocal);
                   super.afterPostCreate(beanO, ejsKey);
    It must be falling over on the last line as it calls the ejbPostCreate fine.

  • Unable to create Table Bean advanced search criteria

    Hi,
    I want to create new search criteria for advanced search region. The reason being new search criteria i tried to add by personalization it didnt worked may be guessing construction mode is autocustomization mode. Somewhere i have seen if resultsbased it will work. Can someone confirm on this??
    I'm trying to create new bean for search criteria at the specified location under <oa:table akRegionCode="EAM_AD_ASSET_RESULTS_TABLE" but unable to do so:
    Here is the part of the page
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!-- dbdrv: exec java oracle/jrad/tools/xml/importer XMLImporter.class java &phase=dat+24 checkfile(120.15.12000000.2=120.18)(115.26=120.1):~PROD:~PATH:~FILE &fullpath_~PROD_~PATH_~FILE -username &un_apps -password &pw_apps -dbconnection &jdbc_db_addr -userId "1" -rootPackage /oracle/apps/~PROD -rootdir &fullpath_~PROD_mds_directory -->
    <page xmlns="http://xmlns.oracle.com/jrad" xmlns:ui="http://xmlns.oracle.com/uix/ui" xmlns:oa="http://xmlns.oracle.com/oa" xmlns:user="http://xmlns.oracle.com/jrad/user" file-version="$Header: EAM_AD_ADVSEARCH_PAGE.xml 120.18.12010000.3 2009/02/11 09:21:55 smrsharm ship $" version="10.1.3_1147" xml:lang="en-US" xmlns:jrad="http://xmlns.oracle.com/jrad">
    <content>
    <oa:pageLayout id="EAM_AD_ADVSEARCH_PAGE" akRegionCode="EAM_AD_ADVSEARCH_PAGE" regionName="Asset Search" amDefName="oracle.apps.eam.asset.server.AdvSearchAM" controllerClass="oracle.apps.eam.asset.webui.AdvSearchPageCO" appMenu="EAM_MAIN_SS" amStateRequired="false" helpTarget="EAM_AD_ADVSEARCH_PAGE">
    <ui:corporateBranding>
    <oa:image id="corporateBranding" source="/OA_MEDIA/FNDSSCORP.gif" shortDesc="Oracle"/>
    </ui:corporateBranding>
    <ui:productBranding>
    <oa:image id="productBranding" source="/OA_MEDIA/EAMBRAND.gif" shortDesc="Asset Management"/>
    </ui:productBranding>
    <ui:contents>
    <oa:query id="EamAssetQueryRegion" mode="autoCustomizationCriteria" dispSimple="true" dispCustomized="true" dispAdvanced="true" defaultPanel="customized" controllerClass="oracle.apps.eam.asset.webui.AdvSearchSearchCO" simpleSearchPanelButtonLabel="Simple Search" viewConfPanelButtonLabel="Views" advSearchPanelButtonLabel="Advanced Search" customizePanelTitle="Views" saveSearchButtonText="Save Search">
    <oa:simpleSearchPanel>
    <oa:defaultSingleColumn id="AssetSimpleSearchRegion" headerDisabled="false" text="Simple Search">
    <ui:contents>
    <oa:messageTextInput readOnly="false" columns="25" prompt="Asset Number" rows="1" secret="false" maximumLength="30" shortDesc="Asset Serial Number" id="EamAssetNumber" promptTranslationExpansion="100%" user:akAttributeCode="EAM_ASSET_NUMBER" user:akAttributeApplicationId="426" required="no" selectiveSearchCriteria="true"/>
    <oa:messageLovInput externalListOfValues="/oracle/apps/eam/lov/webui/EAM_ASSET_CATEGORY_LOV" readOnly="false" columns="25" prompt="Category" rows="1" secret="false" id="EamAssetCategory" promptTranslationExpansion="100%" user:akAttributeCode="EAM_ASSET_CATEGORY" user:akAttributeApplicationId="426" selectiveSearchCriteria="true" shortDesc="Category">
    <lovMappings>
    <lovMap criteriaFrom="EamAssetCategory" lovItem="EamAssetCategory" id="lovMap1"/>
    <lovMap resultTo="EamAssetCategory" lovItem="EamAssetCategory" id="lovMap2"/>
    <lovMap id="lovMap39" lovItem="EamAssetCategoryId" resultTo="EamAssetCategoryId"/>
    </lovMappings>
    </oa:messageLovInput>
    <oa:messageChoice readOnly="false" prompt="Asset Route" pickListViewDef="oracle.apps.eam.asset.server.PicklistYesNoVO" pickListDispAttr="Meaning" pickListValAttr="LookupCode" id="EamNetworkAsset" promptTranslationExpansion="100%" user:akAttributeCode="EAM_NETWORK_ASSET" user:akAttributeApplicationId="426" shortDesc="Asset Route" allowBlankValue="false" defaultValue="N"/>
    <oa:formValue id="EamAssetCategoryId" dataType="NUMBER"/>
    </ui:contents>
    </oa:defaultSingleColumn>
    </oa:simpleSearchPanel>
    <oa:simpleSearchMappings>
    <oa:queryCriteriaMap id="AssetNumberMapSS" criteriaItem="EamAssetNumber" resultsItem="AssetNumber1"/>
    <oa:queryCriteriaMap id="AssetCategoryMapSS" criteriaItem="EamAssetCategory" resultsItem="AssetCategory1"/>
    <oa:queryCriteriaMap id="AssetRouteMapSS" criteriaItem="EamNetworkAsset" resultsItem="AssetRoute"/>
    <oa:queryCriteriaMap id="AssetCategoryIdMapSS" criteriaItem="EamAssetCategoryId" resultsItem="AssetCategoryId"/>
    </oa:simpleSearchMappings>
    <ui:contents>
    <oa:tableLayout akRegionCode="EAM_AD_ADVSEARCH_RESULTS" regionName="Results" controllerClass="oracle.apps.eam.asset.webui.AssetResultsCO" addChildren="true" id="EamResultsNr" user:akAttributeCode="EAM_RESULTS_NR" user:akAttributeApplicationId="426">
    <ui:contents>
    <oa:tableLayout id="ResultsTableLayout2" width="100%" rendered="true">
    <ui:contents>
    <oa:rowLayout id="RowLayoutRegion2">
    <ui:contents>
    <oa:cellFormat id="CellFormatRegion2">
    <ui:contents>
    <oa:switcher id="MappedTableRegion">
    <ui:case name="ShowTable" id="ShowTable">
    <oa:table akRegionCode="EAM_AD_ASSET_RESULTS_TABLE" regionName="Asset Search" blockSize="25" standalone="true" height="1" id="MappedTable" user:akAttributeCode="EAM_RESULTS_NR" user:akAttributeApplicationId="426" width="100%" rendered="true" userCustomizable="true" shortDesc="Mapped Table">
    <ui:contents>
    <oa:messageStyledText id="AssetNumber1" viewName="AdvSearchVO" viewAttr="InstanceNumber" shortDesc="Serial Number" prompt="Asset Number"/>
    <oa:messageStyledText id="AssetDescription1" viewName="AdvSearchVO" viewAttr="DescriptiveText" shortDesc="Asset Description" prompt="Asset Description"/>
    <oa:messageStyledText id="AssetCategory1" viewName="AdvSearchVO" viewAttr="AssetCategory" shortDesc="Asset Category" prompt="Asset Category"/>
    I tried several ways :
    OAPageLayoutBean pageLayout = oapagecontext.getPageLayoutBean();
    OAQueryBean query=(OAQueryBean)pageLayout.findChildRecursive("EamAssetQueryRegion");
    OATableBean oawebbeantb = (OATableBean)query.findChildRecursive("EAM_AD_ASSET_RESULTS_TABLE");
    OAMessageLovInputBean ccidbean = (OAMessageLovInputBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext, OAWebBeanConstants.LOV_TEXT, null, "xxValidation");
    if (oawebbeantb==null){                    
    throw new OAException("Error this is a test!", OAException.ERROR);
    oawebbeantb.addIndexedChild(ccidbean); --here it getting null
    OR
    OATableBean oawebbeantb = (OATableBean)oawebbean.findIndexedChildRecursive("EAM_AD_ASSET_RESULTS_TABLE");
    OAMessageLovInputBean ccidbean = (OAMessageLovInputBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext, OAWebBeanConstants.LOV_TEXT, null, "xxValidation");
    oawebbeantb.addIndexedChild(ccidbean); --here it getting null
    Please someone help me on this..
    thanks,
    mallik

    1) Search panel textinput item should be search allowed true and prompt is need. no other property need to set.
    HERE YOU DONT WANT TO SET VIEW INSTANCE AND ATTRIBUTE SINCE WE ARE DOING FOR EXTENDED VO ITEM AS SEARCH ITEM.THAT'S OK. I TRIED WITH YOUR COMMENTS FOR TEXTINPUT ITEM TOO.
    Comment--
    textinput item created is a simple item without any VO instance , etc.
    There is no question of extended VO item, its a simple textinput item.
    value in this field is going to compare with the values in result table.
    2) Search mapping, only search item id and result item id need to set.
    I'M DOING HERE MAPPING FOR ABOVE SEARCH ITEM ID AND RESULT ITEM ID
    Comment-- Perfect !!
    3) Item created in table , after you extended Vo, view instance and attribute needs to set.
    WHERE DO YOU WANT THIS TO BE SET?? CAN YOU ELABORATE THIS MORE PLEASE.MAY BE I'M MISSING HERE SOMETHING.
    Comment-- you must have created message styled text item in adv table bean, assign VO instance and attribute to it, right?
    4) One more thing Parag, do i need to include where clause for extended VO item in view object??
    for ex:
    where attribute(this is extended vo item)=:4
    Comment-- No need. this will be handled by point#2 above, i.e. criteria and result items.
    --Parag Narkhede                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Prob with running jsp Bean

    Hi,
    I am trying to run a bean through a jsp but its giving error at useBean tag of jsp:
    The error is :
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /Quadratic.jsp(7,0) The value for the useBean class attribute com.brainysoftware.Quadratic is invalid.
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
         org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1227)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Generator.generate(Generator.java:3272)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    My jsp is:
    <HTML>
    <HEAD>
    <TITLE> JSP BEAN Quadratic Example </TITLE>
    </HEAD>
    <BODY>
    <%@ page language="java" %>
    <jsp:useBean id="quadratic" scope="session" class="com.brainysoftware.Quadratic" />
    <jsp:setProperty name="quadratic" property="ia" param="a" />
    <jsp:setProperty name="quadratic" property="ib" param="b" />
    <jsp:setProperty name="quadratic" property="ic" param="c" />
    X1= <%= quad.getDx1( ) %>
    X2= <%= quad.getDx2( ) %>
    End of program
    </BODY>
    </HTML>my bean is:
    package com.brainysoftware;
    import java.io.*;
    class Quadratic{
    int ia;
    int ib;
    int ic;
    String dx1;
    String dx2;
    public int getIa( ) {
    return ia;
    public void setIa( int ii) {
    ia=ii;
    public int getIb( ) {
    return ib;
    public void setIb(int ii) {
    ib=ii;
    public int getIc( ) {
    return ic;
    public void setIc(int ii) {
    ic=ii;
    public String getDx1( ) {
    double detA;
    double result;
    detA= ib*ib -4*ia*ic;
    if(detA<0.0)
    return "Real Roots not possible";
    else {
    result= -ib - Math.sqrt(detA/(2 * ia));
    Double Dresult=new Double (result);
    return Dresult.toString( );
    public String getDx2( ) {
    double detA;
    double result;
    detA= ib*ib -4*ia*ic;
    if(detA<0.0)
    return "Real Roots not possible";
    else {
    result= -ib + Math.sqrt(detA/(2 * ia));
    Double Dresult=new Double (result);
    return Dresult.toString( );
    my directory structure is given below:
    C:\tomcat-5.0.28\jakarta-tomcat-5.0.28\webapps\jsp-examples\WEB-INF\classes\com\
    brainysoftware>dir
    Volume in drive C has no label.
    Volume Serial Number is 4C50-9542
    Directory of C:\tomcat-5.0.28\jakarta-tomcat-5.0.28\webapps\jsp-examples\WEB-IN
    F\classes\com\brainysoftware
    05/22/2005 11:15 PM <DIR> .
    05/22/2005 11:15 PM <DIR> ..
    05/22/2005 11:18 PM 134 CalculatorBean.java
    05/23/2005 12:12 AM 216 Counter.java
    05/24/2005 10:48 PM 358 SimpleJavaBean.java
    06/14/2005 11:16 PM 1,205 Calculator.java
    06/14/2005 11:16 PM 1,323 Calculator.class
    06/16/2005 06:44 PM 534 CalculatorBean2.java
    06/17/2005 08:53 AM 703 CalculatorBean2.class
    06/16/2005 07:00 PM 352 CalculatorBean2.html
    06/17/2005 08:51 AM 588 CalculatorBean2.jsp
    06/17/2005 04:29 PM 97 UploadBean.java
    06/17/2005 04:43 PM 527 FileUploadBean.java
    06/17/2005 04:43 PM 834 FileUploadBean.class
    06/18/2005 12:21 PM 863 Quadratic.java
    06/18/2005 12:21 PM 1,093 Quadratic.class
    14 File(s) 8,827 bytes
    2 Dir(s) 8,615,821,312 bytes free
    C:\tomcat-5.0.28\jakarta-tomcat-5.0.28\webapps\jsp-examples\WEB-INF\classes\com\
    brainysoftware>
    The above clearly shows the presence of Bean in the reqd directory but still I am getting an error. Can somebody help me:
    Zulfi.

    class QuadraticThe class is not public. It is only visible to other classes in the same package as itself, so the servlet (JSP) trying to instantiate and reference it can't see it.
    Make it public.

  • Jsp Bean

    Hi all,
    I want to create a bean Array such that one set and get propertues can be used for repeated operations.
    That is i am creating Online Exam in that i am selecting Exam Question and options in that one question has 4 options and another question has 5 options i want to display that options in jsp page by using getProperty options in the Bean.How to i do it (at present i created option1 option2,option3,option4 in set and get Properties please helpme to solve this
    Regards
    Beval

    Return all the options from your bean as a Collection. This way you can retrieve the options with one get call, and then use an Iterator in your page to loop through the number of options you havea, without needing to know exactly how many were returned.
    If you are not familar with Collections then check our the Java Tutorial for more info.
    Kevin Hooke
    Kev's Development Toolbox
    http://www.kevinhooke.com

  • No release template matching the current build definition was found to create a release and deployment for.

    When I try to start a build that's linked to a standard release template (vNext template) I get "No release template matching the current build definition was found to create a release and deployment for." and the build fails. 
    I am able to successfully start a release from the Release management client so I don't think there is a problem with the release template. If I start a build with agent based template it works fine so I don't think there is any TFS-RM integration issue. 
    My environment is a 2013 Update 4 (VS, TFS & RM). I even tried to uninstall and re-install all the components still no luck. 
    I can't find anything useful (or obvious error) in the release management log files & event log (all the RM components log are set to Verbose)
    I even tried to trigger a release (vNext) via a REST API suggested in a website but no joy.
    Thanks in advance.
    Bharath

    Hi Bharath, 
    Thanks for your reply.
    Do you mean that you can start this standard release template from your RM Client? 
    There’s the below error message in your RM Server log, it seems RM Server try to find the Deployment Agent, but standard release needn’t the deployment agent.
    ErrorMessage="No communication from the deployer. Possible reasons include: 'Deployer is not installed', 'The service is stopped', 'Deployer is not well configured', 'Deployer is not responsive'"
    Additionally, try don’t specific the stage value in your build definition>>Process>> Release Target Stage, then queue build definition again.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Create "Dynamic" beans to handle dynamic form

    Hi All,
    Hope it is not too stupid question.
    JSP is all about dynamic content, a part of which can be a form that displays different fields and attributes. If I use Javabeans to handle the form, I will need different beans to go with each "configuration" of the form.
    Now let's say I have a form that can get one of three "configurations" , depanding on the parameter passed to the JSP page.
    I can create three Beans to match any type of form. (e.g., AFormBean, BFormaBean, CFromBean)
    How can I conditionally instansiate the Bean to handle the not yet known type of the Form?
    I tried to use an abstract Bean to be defined on the top of the JSP :
    <%
    Beans.AddComponentBean addComponentBean;
    %>
        <c:choose>
            <c:when test='${param.type=="DBMS"}'>
                    <jsp:useBean id="addComponentBean"            
                       class="Beans.AddDBMSBean" scope="page"/>
                    <jsp:setProperty name="addDBMSBean" property="*"/>    
            </c:when> 
            <c:when test='${param.type=="APP"}'>
                    <jsp:useBean id="addComponentBean"
                          class="Beans.AddAppBean" scope="page"/>       
                    <jsp:setProperty name="addDBMSBean" property="*"/>    
            </c:when>                 
            </c:choose>
    But that cannot be done since I get Use Bean duplicate.
    What is the right way of doing this?
    Thanks.

    How I would do this depends on my application design.
    I think I would go with a Factory type of design. I would have an 'AddBeanFactory' that decides on the specific type of the bean to create, and returns the abstract AddComponentBean. If you want to do it all in JSP, then making the factory a bean itself is usefull:
    package beans;
    import java.util.Map;
    import java.util.HashMap;
    public class AddBeanFactory {
         private String type;
         private Map parameters;
         private AddComponentBean addComponentBean;
         private static final Map<String, Class<? extends AddComponentBean>>TYPEMAP = new HashMap<String, Class<? extends AddComponentBean>>();
         static {
              TYPEMAP.put("DBMS", beans.AddDBMSBean.class);
              TYPEMAP.put("APP", beans.AddAppBean.class);
         public AddBeanFactory() {}
         public void setType(String type) { this.type = type; }
         public void setParameters(Map params) { this.parameters = params; }
         public AddComponentBean getAddComponentBean() throws InstantiationException, IllegalAccessException {
              if (addComponentBean == null) {
                   if (type==null || parameters == null){
                        throw new IllegalStateException("The Component Type and Parameters must be set prior to retrieving the ComponentBean");
                   addComponentBean = TYPEMAP.get(type).newInstance();
                   //fill bean with parameters
              return addComponentBean;
    }Then your JSP would be something like:
    <jsp:useBean id="beanFactory" class="beans.AddBeanFactory" scope="page">
        <jsp.setProperty name="beanFactory" property="type"/>
        <jsp.setProperty name="beanFactory" property="parameters" value="${request.parameterMap}"/>
    </jsp:useBean>
    <c:set var="addComponentBean" value="${beanFactory.addComponentBean}"/>

  • Could not create web bean  exception

    Hi,
    I am getting following exception at of top of the customer creation page when extending HzPuiAcctOrgSearchCO class.
    Could not create web bean, could not find item metadata Item Name: (HzPuiOrgSearchNonDQM); Region: (accntExtRN)
    Could not create web bean, could not find item metadata Item Name: (HzPuiOrgSearchNonDQM); Region: (TableActionsRN)
    package xx.oracle.apps.ar.hz.components.account.search.webui;
    import oracle.apps.ar.hz.components.account.search.webui.HzPuiAcctOrgSearchCO;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean;
    public class XXHzPuiAcctOrgSearchCO extends HzPuiAcctOrgSearchCO {
    public void processRequest(OAPageContext pageContext, OAWebBean webBean) {
    super.processRequest(pageContext, webBean);
    String message = "Test PR - Not even calling PR request. ";
    throw new OAException(message, OAException.INFORMATION);
    public void processFormRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean) {
    super.processFormRequest(paramOAPageContext, paramOAWebBean);
    String message = "Test FR - works fine when click button - no exception";
    throw new OAException(message, OAException.INFORMATION);
    -- Full listings of parent Class for your reference.
    package oracle.apps.ar.hz.components.account.search.webui;
    import oracle.apps.ar.hz.components.base.webui.HzPuiPartySearchBaseCO;
    import oracle.apps.ar.hz.components.util.webui.HzPuiSearchWebUtil;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    public class HzPuiAcctOrgSearchCO extends HzPuiPartySearchBaseCO
    public static final String RCS_ID = "$Header: HzPuiAcctOrgSearchCO.java 120.4 2006/01/17 14:48:59 jhuang noship $";
    public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header: HzPuiAcctOrgSearchCO.java 120.4 2006/01/17 14:48:59 jhuang noship $", "%packagename%");
    protected void setAttributes(OAPageContext paramOAPageContext)
    super.setAttributes(paramOAPageContext);
    if (paramOAPageContext.isLoggingEnabled(2)) {
    paramOAPageContext.writeDiagnostics(this, "HZPUI: " + getClass().getName() + ".setAttributes(OAPageContext) starts.", 2);
    setAttribute("NonDQMRegionName", "HzPuiOrgSearchNonDQM");
    setAttribute("DQMRegionName", "HzPuiOrgSearchDQM");
    if (getPartyParameterMapping() == null) {
    setPartyParameterMapping(HzPuiSearchWebUtil.getAcctOrgSearchParameters(paramOAPageContext));
    if (paramOAPageContext.isLoggingEnabled(2))
    paramOAPageContext.writeDiagnostics(this, "HZPUI: " + getClass().getName() + ".setAttributes(OAPageContext) done.", 2);
    Getting exception even commented out processRequest process at the same time formsRequest works fine (when clicks button).
    I tried by adding OAWebBeanConstants class and parent parent class HzPuiPartySearchBaseCO in import stmts. but getting the same error.
    Kindly suggest what could be the issue.
    Thank you.
    Murali

    Hi,
    I am getting following exception at of top of the customer creation page when extending HzPuiAcctOrgSearchCO class.
    Could not create web bean, could not find item metadata Item Name: (HzPuiOrgSearchNonDQM); Region: (accntExtRN)
    Could not create web bean, could not find item metadata Item Name: (HzPuiOrgSearchNonDQM); Region: (TableActionsRN)
    package xx.oracle.apps.ar.hz.components.account.search.webui;
    import oracle.apps.ar.hz.components.account.search.webui.HzPuiAcctOrgSearchCO;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean;
    public class XXHzPuiAcctOrgSearchCO extends HzPuiAcctOrgSearchCO {
    public void processRequest(OAPageContext pageContext, OAWebBean webBean) {
    super.processRequest(pageContext, webBean);
    String message = "Test PR - Not even calling PR request. ";
    throw new OAException(message, OAException.INFORMATION);
    public void processFormRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean) {
    super.processFormRequest(paramOAPageContext, paramOAWebBean);
    String message = "Test FR - works fine when click button - no exception";
    throw new OAException(message, OAException.INFORMATION);
    -- Full listings of parent Class for your reference.
    package oracle.apps.ar.hz.components.account.search.webui;
    import oracle.apps.ar.hz.components.base.webui.HzPuiPartySearchBaseCO;
    import oracle.apps.ar.hz.components.util.webui.HzPuiSearchWebUtil;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    public class HzPuiAcctOrgSearchCO extends HzPuiPartySearchBaseCO
    public static final String RCS_ID = "$Header: HzPuiAcctOrgSearchCO.java 120.4 2006/01/17 14:48:59 jhuang noship $";
    public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header: HzPuiAcctOrgSearchCO.java 120.4 2006/01/17 14:48:59 jhuang noship $", "%packagename%");
    protected void setAttributes(OAPageContext paramOAPageContext)
    super.setAttributes(paramOAPageContext);
    if (paramOAPageContext.isLoggingEnabled(2)) {
    paramOAPageContext.writeDiagnostics(this, "HZPUI: " + getClass().getName() + ".setAttributes(OAPageContext) starts.", 2);
    setAttribute("NonDQMRegionName", "HzPuiOrgSearchNonDQM");
    setAttribute("DQMRegionName", "HzPuiOrgSearchDQM");
    if (getPartyParameterMapping() == null) {
    setPartyParameterMapping(HzPuiSearchWebUtil.getAcctOrgSearchParameters(paramOAPageContext));
    if (paramOAPageContext.isLoggingEnabled(2))
    paramOAPageContext.writeDiagnostics(this, "HZPUI: " + getClass().getName() + ".setAttributes(OAPageContext) done.", 2);
    Getting exception even commented out processRequest process at the same time formsRequest works fine (when clicks button).
    I tried by adding OAWebBeanConstants class and parent parent class HzPuiPartySearchBaseCO in import stmts. but getting the same error.
    Kindly suggest what could be the issue.
    Thank you.
    Murali

  • Creating a bean within another bean and JNDI

    Hello,
    I am trying to have one bean (a session bean) create another bean (entity
    bean). I keep getting a naming exception. Both beans are deployed in the
    same JAR file. Also, I can directly create the entity bean (from a client
    test app).
    Here is the code I have in the session bean:
    try
    Context initial = new InitialContext();
    Object objref = initial.lookup("java:comp/env/ejb/User");
    UserHome userHome =
    UserHome)PortableRemoteObject.narrow( objref, UserHome.class );
    user = userHome.create( username, password );
    catch( NamingException e )
    e.printStackTrace();
    The result is a naming exception, which is shown below. Why does the naming
    exception say "comp.env.ejb.User"?
    ***** Naming Exception *****
    javax.naming.NameNotFoundException: 'comp.env.ejb/User'; remaining name
    'ejb/Use
    r'
    at
    weblogic.jndi.toolkit.BasicWLContext.resolveName(BasicWLContext.java,
    Compiled Code)
    at
    weblogic.jndi.toolkit.BasicWLContext.lookup(BasicWLContext.java:133)
    at
    weblogic.jndi.toolkit.BasicWLContext.lookup(BasicWLContext.java:143)
    at
    weblogic.jndi.toolkit.BasicWLContext.lookup(BasicWLContext.java:143)
    at
    weblogic.jndi.toolkit.BasicWLContext.lookup(BasicWLContext.java:143)
    at
    weblogic.jndi.toolkit.BasicWLContext.lookup(BasicWLContext.java:574)
    at
    weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyCo
    ntextWrapper.java:29)
    at
    weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.j
    ava:117)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at
    com.ecocap.EcoCapSystemBean.authenticate(EcoCapSystemBean.java:51)
    at
    com.ecocap.EcoCapSystemBeanEOImpl.authenticate(EcoCapSystemBeanEOImpl
    .java:146)
    at
    com.ecocap.EcoCapSystemBeanEOImpl_WLSkel.invoke(EcoCapSystemBeanEOImp
    l_WLSkel.java:120)
    at
    weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerOb
    jectAdapter.java, Compiled Code)
    at
    weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicReques
    tHandler.java:77)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:15)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
    Code)
    Mon Mar 19 17:02:58 EST 2001:<I> <EJB JAR deployment ecocap> Exception in
    non-tr
    ansactional EJB invoke:
    java.lang.Exception: NamingException
    at
    com.ecocap.EcoCapSystemBean.authenticate(EcoCapSystemBean.java:60)
    at
    com.ecocap.EcoCapSystemBeanEOImpl.authenticate(EcoCapSystemBeanEOImpl
    .java:146)
    at
    com.ecocap.EcoCapSystemBeanEOImpl_WLSkel.invoke(EcoCapSystemBeanEOImp
    l_WLSkel.java:120)
    at
    weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerOb
    jectAdapter.java, Compiled Code)
    at
    weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicReques
    tHandler.java:77)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:15)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
    Code)
    Mike

    thanks, but look at the new code i modified still given error on not resolving the class LoginBean in the class LoginDataBean. here is the new code.
    package webclass;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    public class LoginDataBean
         private Connection cn;
         private PreparedStatement addRecord;
         public LoginDataBean()throws Exception
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              cn = DriverManager.getConnection("jdbc:odbc:portal");
         public void addClient(LoginBean log)throws SQLException
              addRecord.executeUpdate("insert into clientprofile(firstname,middlename,lastname,address,occupation,organisation,gender,email,username,password)values('"+log.getFNfield()+"','"+log.getMDfield()+"','"+log.getLNfield()+"','"+log.getAdresfield()+"','"+log.getOrgfield()+"','"+log.getEmail()+"','"+log.getUsername()+"','"+(String)log.getPasword()+"'");
              addRecord.close();
              cn.close();

  • NEWBIE SUPER EASY JSP / BEAN

    With about half a dozen books sitting around my desk, I can't get a REAL basic jsp to work. I FINALLY got tomcat to NOT give run time errors, however the web page simply outputs "This is output:" I know I am an idiot, but this JSP / bean stuff is upsetting. Any help on the following code would be great.
    basic.jsp is as follows:
    <jsp:useBean id="myBean" class="basic.basicbean" scope="session"/>
    <html>
    <head>
    <title>
    A Simple JSP
    </title>
    </head>
    <body>
    <%
    myBean.setBasicName("Michelle");
    %>
    This is output: <% myBean.getBasicName();%>
    </body>
    </html>
    basicbean.java is as follows:
    package basic;
    import java.beans.*;
    public class basicbean {
    private String BasicName=null;
    /** Creates new basicbean */
    public basicbean() {}
    public String getBasicName() {
    return this.BasicName;
    public void setBasicName(String value) {
    this.BasicName = value;
    Made the .java into the class put it in the basic directory under the classes/basic directory of the WEB-INF. The JSP page loads, but only output is: "This is output:" I am using Tomcat as the JSP server. "Core JSP" "Core Servlets and JavaServer Pages" "Advanced JavaServer Pages" "JSP, Servlets, and MySQL", and "Java Server Pages for Dummies" and I still can't get it. Thanks for helping out an idiot.
    -Jim

    You are very close; just a small error in the line:
    This is output: <% myBean.getBasicName();%>
    The problem is your just simply calling the method and tossing the return value. You have three ways of outputing the bean property:
    This is output: <% out.print(myBean.getBasicName();%>
    or
    This is output: <%=myBean.getBasicName()%>
    or
    This is output: <jsp:getProperty name="myBean" property="BasicName" />
    If you use the <jsp:getProperty> approach, then you must have a <jsp:useBean> somewhere above the getProperty tag.
    - Chris

Maybe you are looking for

  • Mail program no longer opens

    I have two problems that simulatenously appeared on one of my co-worker's eMac. She complained that she could no longer open her mail program or safari. I was able to set up firefox on her computer and it works fine. Both mail and safari will appear

  • BPEL process OutOfMemory error

    Hi, I have following processes: Requester (BPEL) > EBS (OSB) > Provider (BPEL) A large payload request is received by Requester and in Provider I have db adapter calls in a loop and as per business logic it has to perform more than 512 db adapter req

  • Editing documents ( URL / web linked documents )

    Hi, I'm trying to edit documents (uploaded files and urls) through the portal using the EDK. For uploaded files I have created a Portlet that uploads the replacement file and replaces the exisitng one in the filesystem on the server where portal is r

  • Reinstalled Arch- GRUB didn't change?

    I reinstalled Arch a couple of hours ago. I deleted the partition that Arch had been on using the installation CD and then I went all the way again. But when installing the bootloader, I discovered upon reboot that the dual boot entry for Windows had

  • Is putting content from two accounts on an iphone possible?

    If my sister and I each have our own apple accounts on our own computers and also have each others account activated on each of our computers, if she sends me an app or a song will I be able to put it on my iphone with all of my own content or will i