Datasource Setup In Netbeans VWP

Please help me anybody that is how to set datasource in Visual web pack that is using netbeans. I am using mysql server 5.0 and Mysql JDBC Driver 5.04. I can easily create data source in Java Studio
creator but i am unable to do the same with netbeans VWP. If anybody know about how to set up datasource in VWP pls help me out here.

I set up driver for MYSQL and created the Database connection using that driver its ok there is no problem.But when i drag n drop a table from MYSQL connection n drop it on table and when i run the project, page will display errors. As i observed the datasource property for the cached row set is not binding proerly. I think that is the reason why page is not able to display that database table data and giving errors.

Similar Messages

  • PDF Viewer component that works in NetBeans VWP

    Hi All,
    I am looking for a PDF Viewer Component that will work with NetBeans VWP. Ideally, this would be something that I could load into the Pallette and drop on a web form for use, then dynamically call up a document for display within the control. (Actually, IDEALLY, this would be a multi-document viewer, i.e. PDF's Word files, text files, etc.). It does not have to be a free tool - though free would be nice. I have checked out the Acrobat Viewer Java Bean but from everything I can find on that, it appears to be something that can be used in Java Apps, but not web apps. If I am wrong about this, can someone please correct me and link to web app usage (as applied to VWP - JSP & JSF).
    Any help here would be greatly appreciated. I noticed a lot of references to IText on this forum and I'm in the process of checking it out now. But I have not seen anything on IText regarding an actual viewer component.
    Thanks,
    Dennis

    I don't believe iText has a viewer as I know of. If Adobe has a java bean then you can create an applet for the client side to display the viewer.

  • How to get Glassfish setup in NetBeans 4.1?

    I do "Add server". when I enter the glassfish installation path, the next and finish buttons remain disabled.
    I know my Glassfish installation is setup correctly as I can view http://locahost:8080. What do I do?

    I have been using NetBeans for so many diff project but till now i didn't get chance to import WAR. But there i tried one wat as follows:
    New Project -----> Enterprise ----> package Archive ...... it shows me creating project bar at right bottom bur i cannot see any such project at project window as weel as specified location pecified at the time of creation.

  • JNDI DataSource setup under JDev 10.1.3.2

    I have a simple app of a dozen JSP pages, initially delevoped under JDev then deployed (copied, really) to Tomcat. It works fine. I am not using ADF or anything fancy (just JDBC from beans called from the pages). Then I wanted to start using the DBCP pooling that comes standard with Tomcat. This actually worked fine from my adapted pages (now using the jakarta DataSource factory managed by TC). But I have been unable to reproduce the setup in my local development environment, namely JDeveloper 10.1.3.2.
    What works so far: I've created a workspace DataSource in the OC4J preferences, added a reference to it in my app's web.xml. Then I can refer to it and use the DS from a simple JSP using JSTL and SQL tags. But my own code cannot seem to be able to retrieve the DS via JNDI using the following snippet:
    bq. {color:#000080}Context envContext = (Context) new InitialContext().lookup("java:/comp/env");{color} \\ {color:#000080}return (DataSource) envContext.lookup( dsName );{color}
    The exception reported to the client is the following:
    bq. {color:#ff0000}java:/comp/env not found \\ {color} \\ (error class: class javax.naming.NameNotFoundException)
    All suggestions welcome!
    {color:#808080}To the mods: I'd gladly have read the instructions in the sticky
    "Please read this before you post" but it won't display correctly. And
    I've tried IE6 and SeaMonkey - come on Oracle, you can do better!
    {color}

    Hi!
    You probably need to alter your lookup code a bit.
    You can do a lookup like this:
        Context envContext = (Context) new InitialContext();
        return (DataSource) envContext.lookup( "jdbc/dsName" );In OC4J, the datasources usually have JNDI names starting with jdbc/ so the lookup to java:/com/env would not return the datasource.
    Also, have a look at http://www.oracle.com/technology/sample_code/tech/java/codesnippet/j2ee/jndi/TestConnection.java.txt
    Regards,
    Jeroen van Veldhuizen

  • Beginner Q: Which context.xml to place the DataSource setup?

    I am following this tutorial to use DataSource to access the database. http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html
    I originally place the Resource specificaiton in TOMCAT_HOME/conf/context.xml. My demo app works fine. I then experiment to move that section to My_App/Meta-inf/context.xml. Later, I need to uninstall and re-install Java and Tomcat. Then I run into to the problem in my demo http://forum.java.sun.com/thread.jspa?threadID=5299262
    I finally restore the resource section in TOMCAT_HOME/conf/context.xml to make my demo working again. From this explaination of Context (http://tomcat.apache.org/tomcat-6.0-doc/config/context.html), my understanding is that placing the resource in My_App/Meta-inf/context.xml should be better for deployment purpose. I am not understanding the need to placing resource in conf/context.xml.
    Is there any tutorial that will explain this context concept? I would like to see different setup in the path and docbase.

    eventhough it's working fine. I may have deployment problem. Anyway thanks for the reply.
    Regards,
    Ram

  • Netbeans vwp+deploying to external Tomcat

    Hi all,
    I need to deploy my vwp-webapp to external Tomcat. It uses Mysql database.
    What are the main steps in this? I could'nt find any instructions for it.
    Thanks in advance.

    In JSC I have deployed webapp successfull copying common-beanutils.jar, common-digester.jar, standard.jar and jstl.jar from [creator]/modules/autoload/ext to [tomcat]/common/lib.
    Exporting WAR-file from JSC to [tomcat]/webapps/ and defining a db-connection in tomcat-admin-webapp.
    If I copy war-file from [netbeans-project-folder]/application-name/dist to [tomcat]/webapps and start server to deploy it. This is the same as above.
    I can see only first page, if I try to use link to another page, it crashes.
    This webapp works in Netbeans IDE.
    Anybody have a idea or experiences from this?
    Thanks.

  • Deployment error with netbeans vwp

    when i try to run my vwp project i get this error.
    Starting server Bundled Tomcat (5.5.17)
    Starting of Tomcat failed.
    D:\Documents and Settings\Erdal\erdalWEB\nbproject\build-impl.xml:475: Deployment error:
    Starting of Tomcat failed.
    See the server log for details.
    all i do is to open a new Visual Web Application project, drag and drop a label and deploy it. nothing complicated but couldn't found where the problem is. please give me a hand, a hint, a way to get over this...

    Read this, as it says:
    See the server log for details.

  • JBoss Application server setup with netbeans IDE.

    Hi All,
    I need to configure the JBoss Application server with netbeans IDE. I have tried this scenario,
    1) Unzip the jboss-4.2.2.GA.zip into jboss dir.
    2) Selected the JBoss Application server 4.
    3) And i have set the Installation location like this j:/jboss/jboss-4.2.2.GA. In this i got some problem.
    The problem is: Next button did not selected.
    Error: provide valid installation dir path.
    How to resolve this problem? Can anyone give suggestions for resolving this error?
    Its very urgent!!

    A couple of things:
    1. if you are using SJSAS 9.0 it's Glassfish v1 (not v2 - that's probably for the 9.1 version? I don't know, I'm running 9.0 and installs fine with Gf v1 - thanks for the tip, btw!)
    2. as for the domain, just pick the default offered (unless you have some specific requirement) - in any event, it's under the domains/domain1 folder
    you can always create a new one and register (it will have its very own folder under /domains) but given that's probably a dev box, I can hardly see the point (and when I did it a long time ago, it was more pain that any human being should be subjected to :-)
    Finally, one cannot but wonder why on earth someone (at Sun) developed NB and put Sun Java Application Server (developed at Sun) as one of the options that won't work with SJAS 9.0+ (developed at Sun) but one has to instead choose Glassfish (developed at Sun) and that won't work if one chooses v2 instead of v1 if it's SJAS 9.0 instead of 9.1 (or vice versa)...
    Don't these guys test the thingy with THEIR own stuff?
    Don't get me wrong, I totally love Sun, and all the good stuff they come up with (NB, SJAS, etc. etc.) but done it properly it would help them to gain market share, now, wouldn't it?

  • Netbeans VWP: problem with getSelectedRowKeys() + immediate

    I'm developing a form following this tutorial:
    http://www.netbeans.org/kb/60/web/web-jpa-part2.html
    The difference is that I marked the fields as required.
    When I click the Add, Delete or Update button I want that the action is executed without processing validations, so I checked the immediate property of the buttons. The problem is when using immediate any table row gets selected, so the method getSelectedRowKeys() from the TableRowGroup returns empty.
    Any ideas?
    Thanks,
    Felipe

    The immediate attribute is pointless here.
    You can make the required attribute action dependent. E.g.<h:inputText required="#{!empty param['formId:buttonId']}" />where 'formId:buttonId' is the client ID of the desired button for which you want to validate the requireness. Also see this article for detailed explanation and code sample: http://balusc.blogspot.com/2007/12/action-dependent-requireness.html

  • JavaMail API setup in NetBeans

    Hi ,
    I'm currently developing a mail application on NetBeans IDE. In that i need Java Mail API. I've downloaded latest version of JavaMailAPi with activation Framework. Please tell me how to install both files through NetBeans IDE?
    Thanks

    Dear JChef,
    Kindly visit the following link:
    http://blogs.sun.com/geertjan/entry/javamail_client_on_the_netbeans
    Regards,
    - Alpesh

  • NetBeans VWP: help w/ AJAX, is it possible to refresh more than one field?

    I have a form with lots of fields. Some of them the value is retrieved from the database, for example the service field, where the user types the service id and at the onChange event the form is submitted, executing the processValueChange handler. In this handler the service data is retrieved from the database and a static text with the service name and a static text with the service price are updated.
    I'm trying to do this with AJAX, so at the onChange event of the service id text field I have the following:
    document.getElementById('form1:stServiceName').refresh('form1:tfServiceId');
    document.getElementById('form1:stServicePrice').refresh('form1:tfServiceId');It works, but the processValueChange handler is executed 2 times, and that's a problem...
    Isn't there any way to refresh more than one field? With something like this for example:
    document.getElementById('form1:tfServiceId').submit();
    document.getElementById('form1:stServiceName').refresh();
    document.getElementById('form1:stServicePrice').refresh();Thanks for any help,
    Felipe

    You may want to try creating your own custom popup lov
    http://www.oracle.com/technology/products/database/application_express/howtos/how_to_create_custom_popups.html
    you can then create your own lov report listing all people and then when you click the name required you can passback as many values as required to the calling form.

  • JSF and NetBeans VWP

    Hi All,
    I am trying to locate the appropriate forum to post questions about visual web pack / JSF web app dfevelopment. There is an excellent Studio Creator forum is there an active forum here to exchange issues and ideas ?
    Jim

    Hi Raymond,
    Thanks for the reply. The issue we are having currently is rendering nested jsf components and in particular the centering of them on a browser page. I have a grid panel containing 3 columns containing two spacer text labels separated by another grid panel which contains the page content.
    When previewed the page looks good when the app is run the spacer text labels are not rendered....
    Any ideas welcome
    Thanks
    Jim

  • NetBeans BluePrints Ajax autocomplete component data binding

    Hello,
    I'd like to test the autocomplete feature of an input field from the BluePrints Ajax. But I have difficulties to bind the autocomplete list to a datasource. Is this possbile within the gui (netbeans, vwp) or do I have to code it manually?
    loony

    Hello,
    I'd like to test the autocomplete feature of an input field from the BluePrints Ajax. But I have difficulties to bind the autocomplete list to a datasource. Is this possbile within the gui (netbeans, vwp) or do I have to code it manually?
    loony

  • JNDI DataSource on Tomcat 4.1.27

    I am running Tomcat 4.1.27 with JVM 1.3.1_07-b02 on WinXP and I am trying to connect to an Oracle 9i database. I have a datasource setup and when I supply a username and password in the datasource everything connects fine. However, I need to be able to pass the username and password from my application to the datasource for authentication. Whenever I try DataSource.getConnection(username,password) I get an "java.lang.UnsupportedOperationException" exception. I also tried using the BasicDataSource.getConnection(username,password) method with the same results. Here is a bit of the stack trace:
    java.lang.UnsupportedOperationException
         at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:125)
         at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:329)
         at foo.Login.loginSuccess(Login.java:45)
    Can I get explicit instructions on what I need to do to be able to pass the username and password to the datasource? Is there another/better way to do this? Thanks.

    The problem is that the JNDI data source pool is set up when your app is loaded into Tomcat. You're giving it a username/password in the context.xml to set that up, then the pool is loaded with connections based on that startup password.
    I think it's failing because on subsequent calls you're giving it the individual's username/password, which are different from the one used to set up the connection pool.
    If you want to authenticate the users against the database without a separate table, I think you have to give up the advantage of having a connection pool and create a new connection for each user. It's a design choice: is it better for your app to have a separate username/password table and a connection pool or to use the Oracle authentication and have to create a connection each time? Your call. - MOD

  • Best way to combine Java Persistence API (JPA)  with Visual Web Pack (VWP)?

    I like the JPA/Hibernate development approach to create the database elements from JAVA classes.
    This way one gets rid of the need to keep JAVA code and the database in sync.
    However I have not yet found a good way on how to use JPA from the netbeans VWP.
    Note that I have found the tutorial on how to use the IDE with hibernate and it works without problems.
    However I think this tutorial does not really implement a good Model/View/Controller approach as it is done in the enterprise pack.
    Here you have a controller session bean that deals with all the persistence logic and that exposes properties through a DataModel to the application.
    There is no need to encapsulate logic in inherited classes of the ObjectListDataProvider.
    Maybe an example makes it more clear:
    If we stay with the hibernate tutorial that we have "Animals" and "Pavillion" entities.
    How would one efficiently design a "Table" component that shows a list of all Animals and their Pavillions.
    With the VWP approach it is quite clear: you create a RowSet with the inner/left join between Animals and Pavillions.
    But how would you do it with JPA?

    You said:
    "If we stay with the hibernate tutorial that we have "Animals" and "Pavillion" entities.
    How would one efficiently design a "Table" component that shows a list of all Animals and their Pavillions.
    With the VWP approach it is quite clear: you create a RowSet with the inner/left join between Animals and Pavillions.
    But how would you do it with JPA?"
    I have the exact same question. Have you found the answer on how to "join" entities and display them on visual web table component?

Maybe you are looking for

  • How do I map custom property from portal api ptsearchresponse?

    I want to map the search results to my datatable. I can execute the search fine. But how do I map the property value? My property id is 101. In other words which ptSearchResponse method do I use?                 IPTSession ptSession;                

  • How do you use a custom login application?

    I have setup a custom Login Application as instructed from the admin guide, but cannot find any instructions on how you then go about using it. Some other posts on here mention customising/linking a page to it based on the user Login.jsp, but they ar

  • Tax calculation at the time of creating service entry sheet.

    Dear Experts, I have got a Company Code : P320 having the Plants : P324, P325, P326. I am making a Services Purchase Order by using the Item Category as u201CDu201D and Accounts Assignment as u201CKu201D for Cost Center and Order and u201CPu201D for

  • My HP Pavailion 15-n020tu Stuck at Booting in Windows 8.1 Pro when I enable Hyper-V?

    Hi, I'm using HP Pavailion 15-n020tu Stuck at Booting in Windows 8.1 Pro when I enable Hyper-V. And I have to enable Hyper-V to test my Windows Phone Apps in MS Visual Studio? Mty friend Dell Laptop does not facing this problem with same configuratio

  • Programmatically inserting row in ViewObject

    I have created Entity Object based on table and updatable VO based on the Entity. Now i need to add a new row in the table. I have a button Add new row , on button click a popup will open with the fields in the row. Entering the field ,clicking on OK