How to make J2EE order (persistence) example run?

I just used:
ant
ant deploy
and it gave me following error:
deploy:
     [echo] localhost
     [echo] 8080
     [echo] order
     [echo] C:\glassfishv3\glassfish\docs\javaee-tutorial\examples\bp-project\ma
in.xml/../../../../../../bin/asadmin.bat
     [echo] order
     [echo] SQL92
     [exec] Deprecated syntax, instead use:
     [exec] asadmin --port 4848 --host localhost deploy [options] ...
     [exec] com.sun.enterprise.admin.cli.CommandException: remote failure: Excep
tion while loading the app : javax.ejb.EJBException: javax.ejb.CreateException:
Initialization failed for Singleton ConfigBean
     [exec]
     [exec] Cannot create tables for application order. The expected DDL file or
der_order_createDDL.jdbc is not available.
     [exec]
     [exec]
     [exec] Command deploy failed.That means without making any changes. Then I included the following in the build.xml taken from roster example:
<target name="-pre-deploy" unless="netbeans.home" depends="init">
        <antcall target="start-db"/>
    </target>But the problem remains the same. The server.log shows:
Caused by: javax.ejb.EJBTransactionRolledbackException
     at com.sun.ejb.containers.BaseContainer.mapLocal3xException(BaseContainer.java:2253)
     at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2053)
     at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1955)
     at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:198)
     at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:84)
     at $Proxy264.createPart(Unknown Source)
     at order.ejb.__EJB31_Generated__RequestBean__Intf____Bean__.createPart(Unknown Source)
     at order.ejb.ConfigBean.createData(ConfigBean.java:36)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.sun.ejb.containers.interceptors.BeanCallbackInterceptor.intercept(InterceptorManager.java:1006)
     at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:61)
     at com.sun.ejb.containers.interceptors.CallbackInvocationContext.proceed(CallbackInvocationContext.java:109)
     at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCallback(SystemInterceptorProxy.java:133)
     at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.init(SystemInterceptorProxy.java:115)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.sun.ejb.containers.interceptors.CallbackInterceptor.intercept(InterceptorManager.java:961)
     at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:61)
     at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:390)
     at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:373)
     at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:521)
     ... 38 more
Caused by: javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean
     at com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:4975)
     at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4810)
     at com.sun.ejb.containers.StatefulSessionContainer.postInvokeTx(StatefulSessionContainer.java:1656)
     at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2004)
     ... 62 more
Caused by: javax.ejb.EJBException: Object: order.entity.Part@63b596 is not a known entity type.
     at order.ejb.RequestBean.createPart(RequestBean.java:53)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1056)
     at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1128)
     at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:4087)
     at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5272)
     at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5252)
     at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:190)
     ... 60 moreTo tell you the truth every example of the J2EE tutorials have some problems and can't be run smoothly. I can't run them as is and have to spent time figuring out what went wrong. Can anyone point out what went wrong?
Thanks.
Edited by: amishera2006 on Aug 1, 2010 8:26 PM

Just remembered. The examples in other places like spring/hibernate, GWT, Android all works smoothly as it gets. And they all work exactly as they claim in their documentation. I think those companies give the coders more money than oracle/sun that is why they are not motivated enough to test their stuff before releasing.

Similar Messages

  • How to make an order on repeating frame using Formula Column?

    Hi All,
    I have a repeating frame dependent on some query, how to make an order on this repeating frame using a formula column defined in its group and dependet on values from the query?
    Note: I'm using Reports 6i

    Place your formula column at the top of the itm group and set the BREAK_ORDER to assc.. or desc...
    Hope this helps
    Hamid
    if problem solved, close the thread.

  • How to make the Creative Cloud Uninstaller run silently ?

    Hi all,
    We created a deployment using Adobe Application Manager (AAMEE) in order to deploy Adobe Creative Cloud silently.  That works fine.  Now, when we uninstall the software, by running msiexec /x {productcode_of_the_msi_that_was_generated_using_AAMEE}, there's a log entry in the Event Viewer saying Removal success or error status: 0, which is good.  However, there's one remaining entry in the "Programs and Features"-list in Windows 7 control panel: "Adobe Creative Cloud"
    So I took a look in the registry and I found the uninstall string for that program: "C:\Program Files (x86)\Adobe\Adobe Creative Cloud\Utils\Creative Cloud Uninstaller.exe".  Problem: this uninstaller won't run silently!  Or at least I didn't find any switches / command line parameters to make it run silently.  Does anyone know how to make it run silently?
    Question for Adobe in case there are no silent options for this uninstaller : can you explain me why you create tools (AAMEE) to generate silent installers but still leave traces on the computer that can't be uninstalled silently???
    As an application packager I would also like to address this general message to all the big software making companies out there (SAP, Oracle, Microsoft, Adobe etc.) : other big companies that buy your software, mostly want to install and uninstall it without user intervention.  So please package it so that we don't need to spend extra time and money deciphering your fancy, exotic installers / uninstallers.  MSI is quite a good standard you know...
    Thanks all of you!

    Hi,
    If I understood correctly, you have created an installation package including creative cloud desktop app through creative cloud packager not AAMEE.
    Adobe creative cloud doesn’t get uninstalled even if all the products and updates are removed from machine. But this will not cause any issues (or extra space) on installation of new package.
    Its recommended that if the package is modified (adding more products or updates to existing package) and installed then it should be uninstalled via msi of modified package.
    Thanks,
    Ashish

  • When the page will be load how to make the page blank in run time

    Dear
    when i will run the page the fields shoud come with blank Field.
    i want to make it in runtime.
    example- i have one page having employees data. but when i will run that page the data will not come only blank fields should come, after thar i will create.

    duplicate how to make the page blank field in runtime

  • How to make deployment order irrelevant

    Right now I have 2 SOA projects, A and B. A calls B. I have to deploy B first, then A second. Otherwise if I deploy A before B then when I run A, I will get an error saying it can't find B.
    Is there a way to make deployment order not important so we can deploy SOA projects in any order we want? In my example, I can deploy A or B in any order I want.
    Thanks

    Hi,
    Thanks for the response.
    I have already attached the shipping, production and warehouse calendar and also the transportation calendar in the means of transport in the transportaion lane.
    But it still does not consider factory calendar. It does not take weekend and the holidays into account for deployment purpose.

  • How to make an ORDER BY clause dynamic

    is there anyway to make the ORDER BY clause in an SQL query within a DB control
    dynamic? I have tried to pass a String of the column name and place it in the
    statement within {}, but it doesn't work

    "Mark" <[email protected]> wrote:
    >
    is there anyway to make the ORDER BY clause in an SQL query within a
    DB control
    dynamic? I have tried to pass a String of the column name and place
    it in the
    statement within {}, but it doesn't workDid you find how ? please let me know, I also need to have a dynamic order by
    clause.

  • How to make an 'order' button that works?

    How do I make an 'order' button, by clicking on it, will post a pre-defined product number in a contactform?
    Probably I have to use php, but I do not know how to make the correct script.
    Regards, Gerald

    If you just need it to pop text into a textfield, you can use javascript, something like this might do the trick for you...
    <textarea id="TheText"></textarea>
    <select id="DropDown">
        <option value="">None</option>
        <option value="text-one">Choice One</option>
        <option value="text-two">Choice Two</option>
        <option value="text-three">Choice Three</option>
        <option value="text-four">Choice Four</option>
    </select>
    <script type="text/javascript">
        var thetextbox = document.getElementById('TheText');
        var mydropdown = document.getElementById('DropDown');
        mydropdown.onchange = function(){
        thetextbox.value = this.value;
    </script>
    The script should come after the textbox and dropdown in your HTML.

  • How to make J2EE engine auto load The JSP Pages

    After I modify some JSP pages, If I just copy them to  the folder in the Server, The pages didn't update.
    How to make it auto update?

    Hello Shen,
    please take in consideration, that JSP page is translated to HttpServlet  component when deployed. It's not accessed via original JSP file.
    You can try to modify the final HttpServlet class file, but then you have to go through pre-compiling.
    Hope it helps,
    regards.
    mz

  • How to make my Labview vi program run at the same time everyday?

    I have Labview vi that uses "Time Stamp Control & Indicator" on front panel to set time & date for program operation.
    But, I cannot separate the Date from the Time for Start & Stop control.
    I want pgm to run everyday (7days/week) at the same time (e.g. 8am to 630pm) - I don't care about the start & stop Date feature.
    So, everyday I have to manually open the Control & change the date to today.
    How can I make program only respond to Time start & stop?
    Thanks,
    jaceb

    Of course rather than create yet something else that is running all the time, setup your VI to only execute for the desired amount of time, If you running windows you can use the task scheduler to launch it.
    http://support.microsoft.com/kb/308569
    Puts the burden on the OS and is not dependant on you starting it everytime you reboot, or having to put it in the start menu.  there are options for it to run even if you are not logged onto the system.
    Although not absolutely certain, I am reasonably sure that mac and linux also have something similar.
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

  • How to make marking allowed in costing run CK40N?

    I am doing a costing run CK40N with quantity structure. For the cost variant I have chosen, I can do the steps up to the analysis. But it doesn't allow me to do the marking. In the authorization column for the marking, it says "X" - Allowance not possible". When I click that "X" sign, the cost variant is not in the permitted variant for the company code. How do I make the marking allowed? Your help is much appreciated. Thanks.
    Richard

    Hi Richard,
    When making the marking allowance, the user specifies a costing variant, but really the system allows the marking for the valuation variant. So if 3 costing variants all have the same valuation variant - all 3 will be allowed for marking.
    In your case it appears that the wrong variant was used.
    If you find you cannot revoke the marking because of marked cost estimates you
    can use the REDO function in CKR1 like in note 410619.
    You can technically over ride the setting in FVMK-FREIG via SE16(N), debug mode, but you have to be careful to ensure nothing is released.
    Regards,Elaine

  • How to make J2EE application in OC4J use windows credentials

    Hi,
    I have a J2EE application which is deployed in Oracle10AS. When a user tries to access this application, the application should use windows login information and authenticate the user and allow access to the user.
    Can someone guide me on how to achieve this, any links or documents to achieve this would be greatly appreciated.
    Thanks

    The configurations in mod_osso.conf were not made properly hence getRemoteUser() was failing. Once mod_osso.conf was configured properly everything went well.

  • How to make more modifications in example spreadsheet

    Because I'm not too creative and I do like the Checking Register example in Personal Finance, I'm trying to modify it for my own use. I would like help and suggestions about:
    1. Adding categories to the drop-down menu - I can type in other categories in the Category column but they do not show up in the drop-down menu as I would like them to do.
    2. I would like to add the new categories to the "Account Categories" box to reflect those expenditures.
    3. I would like to add to the new categories to the list with color designations for the color graph.
    4. I woud like for the color graph to reflect the expenditures of the new categories.
    Thanks for your help.
    Vernon

    The first two have been discussed in past threads. Try a search of this forum on Checking Account (and/or similar terms) and you should be able to find a large number of posts on making changes to this template.
    I do not understand your third question.
    The Number's Users Manual (a link to it is in the Help menu) tells how to expand/change the data range for a chart. Once you have the new categories in the table, it is a simple process. The User's Manual probably has pictures and pictures are worth a thousand words. Here is a thread from this forum that also has a picture:
    http://discussions.apple.com/thread.jspa?threadID=2373484&tstart=0

  • How to Make Purchase Order TEXTS Mandatory

    Hi.........
                 I want to make some Purchase Order texts mandatory(for ex Header text) so that i should appear in PO Print and user should not be able to proceed unless he make an entry.
                                            Please help me out......
    Thanks

    Hi,
    In spro>mm>pur>po>define screen layout select filed selection AKTH Create for ref.data item make it
    required entry
    BR
    Diwakar

  • How to make Sales Order with this condition

    Condition is as follows
    I have already sold an item say A to customer at Rs 30 lacs, INR. Now a new upgrade has been released say B costing Rs 50 lacs, INR. Now how to book Item B, with return of item A, and charge the customer who has already bought item A, only the differential amount, ie Rs 20 Lacs INR (Rs 50-30 Lacs, INR)
    Come back guys quickly.
    Regards
    Adarsh Krishna

    Hi Adarsh,
    Is this the new revision of Item A? then you can follow retrobilling. If this is a new item, then you have to book a new order and adjust the invoice.
    Steps for retrobilling:
    1) enable the retrobilling parameters in the system parameters
    2) Change the price list of the item A in the price list to the new price.
    3) go to retrobill workbench, reference the old order i.e shipped and you get a new order booked, now you can go and change the item here in the lines.
    You can receive the item A back through RMA.
    Pl try it out and let me know.
    Regards,
    Prasad

  • How to make FOC order net value zero??

    HERE IS THE ISSUE,
    when I create foc sales order the item net values should be zero as they are free for charge even if its finds condition records at the back end.
    Kindly is there any solution for this issue as I want to make the net value zero.
    Thank you,
    Sam Ahmed

    Hi,
    In the item category configuration please choose the ''Pricing'' as B : Pricing for free goods (100% discount). This will activate R100 condition type that discounts the price and makes the net value as zero.
    Alternatively, you can change the item category in the sales order to TANN (in standard system) that will make the net value as zero.
    Regards,
    Palani

Maybe you are looking for

  • Turning off frame blending in Adobe Media Encoder

    Is there a way to turn off frame blending in Adobe Media Encoder?  I have a bunch of Flip Mino HD footage (1280x720p) which I wish to convert to P2 720p format so that I can more easily mix and match it in the Premiere timeline with actual P2 footage

  • Error in Merge (Upsert)

    I was just trying to see how merge worked but got error while running the following script. Could you tell what is missing in the statement? merge into emp_new emp_new using(select EMPNO , ENAME , JOB , MGR , HIREDATE , SAL , COMM , DEPTNO from emp)

  • Really Dead iMac Rev B

    My iMac Rev B, 233 mh has been running just fine (for years ). Yesterday, my iMac suddenly turned off, as if I pulled the plug out of the wall. I had not, of course. The fan stopped, the disk stopped spinning and the screen went black. Now, it will n

  • T400 WWAN Adapter Issue

    I've successfully utilized WWAN capability on a T400 for a long time. So, now it's not working all of a sudden??? Device Manager says "Device Working Properly", radio is visible along with Wi-Fi and Bluetooth. Just doesn't show Broadband connections

  • BDC for ME47

    Hi Guys I have a requirement to create quotation using BDC for transaction ME47 where the net price is Zero. Could you guys please help me out/send me some code sample for my reference. I would be very grateful to you. Points will be awarded surely.