Build application with conditional disabled VI's still tries to load them ...

Hi,
we have a big LV-project with some "conditional disabled" or with a "switch" unused VI's. But LabVIEW still tries to load them when building an application (even when they are not used). Is there a setting to prevent this behavior? Something like "ignore unused/missing VI's during built"?
Thanks
Peter

The difference is disable structure and Conditional disable structure.  unconditionally disabled code can be broken as it cannot run.  Compare that to a case driven by a constant- the unreachable code is removed by the optomizer in certain conditions (We won't guess what conditions prohibit this optomization and it has been changeing a lot since 8.6 to 2013 I imagine it will continue to evolve) however, Because the optomization is not garanteed to occurr the unreachable code cannot be broken.  This is simillar to the conditional disable symbols- they are not evaluated untill runtime and the condition may depend on variables external to LabVIEW.  So, all cases must be compilable.
@ Mike- Yup, I believe those symbols values CAN be manipulated external to the app instance (Certainly App.Kind comes to mind).  I don't have any experience doing that. 
Jeff

Similar Messages

  • Building application with microsoft agent

    Can someone clarify if there is anything different that needs to be done while building a stand-alone application that includes VIs that use the MS agent voice VIs (for example MSagentTTS.llb) along with CGI VIs? I have been able to build applications with only CGI VIs but failed while adding MS agent VI functionality. Any help is greatly appreciated.
    -Sheela

    "Belur" wrote in message
    news:[email protected]..
    > Can someone clarify if there is anything different that needs to be
    > done while building a stand-alone application that includes VIs that
    > use the MS agent voice VIs (for example MSagentTTS.llb) along with CGI
    > VIs? I have been able to build applications with only CGI VIs but
    > failed while adding MS agent VI functionality. Any help is greatly
    > appreciated.
    >
    You'll need to install the Microsoft Agent parts on the target computer.
    They are:
    MSAgent.exe - the core components
    actcnc.exe - MS Speech Recognition Engine
    tv_enua.exe - MS Text To Speech engine
    Merlin.exe - or any of the available different voices
    Theses are available for downl
    oad from
    http://www.microsoft.com/msagent/downloads.htm

  • JDeveloper build application with JAAS

    Hello!
    I try to pack my application using JAAS XML. I create the .war file and it works nice. The login-form appears,
    but the problem is that the .ear file must have the orion-application.xml and the jazn-data.xml in the META-INF folder but these files remain in WEB-INF.
    Does anybody know how to pack the .ear so that the XML files are in the META-INF??
    regards
    Wolfgang

    HI
    GOOD
    GO THROUGH THIS LINK,I HOPE YOU WILL GET SOME GOOD IDEA TO BUILD APPLICATION WITH CONNECTION TO R/3.
    http://www.persistentsys.com/presentation/Java_SAP_Integration.pdf
    http://www.businessobjects.com/pdf/solutions/xi_sap_r3_solutions.pdf
    THANKS
    MRUTYUN

  • Cannot build application with labview 7.0

    I had built application previously using labview 6.X while some of the V.I. are without block diagrams, but I couldn't do that any more with labview 7.0 as a error will be prompted, why is this happening & are there difference in application builder between labview 7.0 and previous version? Must I load those V.I. without block diagrams dynamically now ?

    Unfortunately it is impossible to build application with newer version with VIs without block diagrams, which saved in oldest version.
    from ni web site:
    "National Instruments does not recommend saving VIs without block diagrams because LabVIEW needs the block diagram to recompile the VI after an upgrade. When you upgrade LabVIEW, you must find a version of the VI that includes its block diagram to recompile it. Such a version did exist before the block diagram was removed because it is impossible to create a new VI without a block diagram."
    "Based on that information, it should be clear that once a VI is saved without diagrams:
    You cannot open or run the VI on any other version of LabVIEW, older or newer."
    More information:
    http://digit
    al.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/00a6bacda1c01a0786256b60006163e7?OpenDocument
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/28c4cb0cf83e1a1d862566e2007a2a9c?OpenDocument
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/fee732f4b1541b9586256bf0006a78ca?OpenDocument
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/0649a3350de20aa186256d91007b3d61?OpenDocument

  • Labs of Build Application with ADF tutorial

    Hello, I am beginner of jdeveloper adf. I am looking a sample of book Oracle Fusion Middleware 11g: Build Application with ADF. Name of sample is lab. Inside a lab is Storefront-CompleteApp, Storefront-03, Storefront-04,... But I don't see anything on google. Where is the sample? Could you post the link to download. Thank you

    Hi,
    Please check.
    Fusion Demo
    http://www.oracle.com/technetwork/developer-tools/jdev/index-095536.html
    ADF Tutorials
    http://docs.oracle.com/cd/E18941_01/tutorials/toc.htm
    Shay's Blog
    https://blogs.oracle.com/shay/entry/how_do_i_start_learning_oracle_adf_and_jdeveloper
    Thanks,
    Jit

  • New iMac 27"  and just plugged in a Apple USB superdrive and get message, "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled."  I am trying to load Office mac2011  what to do?

    I have a new iMac 27"  and just plugged in a Apple USB superdrive and get message, "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled."  I am trying to load Office mac2011  what to do?

    If you just bought the iMac and the Sjuperdrive take the superdrive back and get a refund. The by any other brand external DVD drive that connects by USB and try that. Most come with a Y USB cable to allow you to connect to 2 USB ports to supply enogh power to the drive IF Needed.
    Or take both back and get a refund on both, you have 14 days to return it no questions asked, and buy another iMac and some other brand external DVD drive.

  • I have deleted some tracks from iTunes. However, it is still trying to sync them.

    I have deleted some tracks from iTunes. However, when I sync my iPhone and iPad I get an error message for the tracks I have deleted. It is still trying to sync them.
    How do I stop this happening?

    Did you dlete it form iTunes and then sync?
    Did you try swipingleft or right the song on the iPod and then tapping the delete button that comes up?

  • Error when building application with Excel included

    Hi All !
    I've read several post on problems with Report Generation Toolkit when building applications that uses Excel or Word interactivity.
    I've included both _Excel Dynamic VIs.vi and _Word Dynamic VIs.vi in my project and added them to the dynamic vis and support files.
    When building I get the error :
    The VI is broken. Open the VI in LabVIEW and fix the errors.
    C:\Programmer\National Instruments\LabVIEW 8.2\vi.lib\addons\_office\_exclsub.llb\_Excel Dynamic VIs.vi
    When opening that VI there is no broken arrow and all the vi's included in this is not broken either.
    I've tried mass compiling and so on but so far luck.
    Regards Morten Kahr
    Regards Kahr
    Certified LabVIEW Architect
    CIM A/S

    If you do a search on this forum you will find this to be a common and vexing problem. I myself had this same exact problem about a year ago, and it took me the better part of a day to track it down. As you will find by reading the various threads on this problem, there seems to be no specific cause for this, and it remains a mystery, and the solutions are no better than chanting voodoo, and probably just as effective.
    One thing you can try is to force a recompile of your VI hierarchy. Open you top-level VI. If it's set up to run when opened, stop it. Hold down the Control key and click the run button. This will force a recompile of the application. Sometimes this works, sometimes it doesn't. Like I said, voodoo.
    Another thing to look for is to check if you are using any diagram disable structures or case structures with a constant wired, as in trying to use the case structure to comment out code.
    Are you using classes and passing by reference? There was a mention of this here.

  • Building application with database

    Hello Labviewers,
    I build some labview vis wich are functioning very well as long as I execute them in the labview environment.
    But when I use the application builder to build an exe file from it the programm can't access the database anymore.
    I use Labview 7 and the Database connectivity toolkit to connect to an Access Database.
    the Connection to the database is made by an udl file.
    Maybe I'm doing something wrong when I include the udl and the mdb file as a support file during the build process ?!?
    Or do I have to include some extra files (like I have to when using the report gen toolkit)
    Many thanks for your help
    Simon

    thank you vicky for your reply,
    i followed your hint not including the udl files to my support files but had no success.
    Generally I use the procedure described here:http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/fcccbc6b519cec2e86256c95007e8fa9?OpenDocument.
    Is this still the right way with lv 7.
    I still believe that there is some problem with my paths leading to my database. Meanwhile I've tried relative paths and absolut ones with no success.
    There is no error message displayed, but the text fields where I'd like to see the results of my sql querys stay white.
    Simon

  • Building application with wordsub

    I am building an application that uses some of the report generation toolkit. If I build it, it comes up with errors relating the the wordsub.vi.
    I followed the guidance, which says to add in the Word Dynamic VIs.vi (as well as the Excel Dynamic VIs.vi). I add them in using the "add dynamic vi" button under source files. But during the build, I get the following error: Error 1003 occurred at C:\Documents and Settings\James Nauman\My Documents\LabVIEW Data\<"My application name">\internal.llb\_Word Dynamic VIs.vi
    My application is under a file in c: and the Word (Excel) Dynamic VIs.vi are in the original addon/wordsub dir.
    Jim

    Thanks, the Word Dynamic VI's.vi did have a broken arrow. I had to replace the write jpg vi, then everything worked.
    Is there a good reference for file structuring. It seems half my problems are related to vi's linking,relinking to somewhere else than where intended. I am trying to build several variations of one application with minor changes. I open vi (A) up and everything works. But, then I open up vi (B) and everything is linking to (A). I cure everything and close (B), but then when I go back and open (A) everything is linking back to (B). So on and so forth.
    I have up to 5 variations on an application, and pretty soon everything is linking all over the place.
    I need some basic references (with examples) of how to structure my librarys, directorys, applications, subvis, and what the differences all mean. The getting started with labView is too general. Are there any knowledge base areas discussing this and common errors?
    Thanks for the help.
    Jim

  • Build applications with dynamic loaded subVI's as dll

    I want to build an application with some subVI's. The target would be to have an *.exe from the topVI and a seperate file for every subVI (I suppose this will then be a *.dll file)
    The topVI uses the "call by reference node" with a "type specifier VI refnum" reference.
    The path of the subVI's is read from a textfile and the subVI's are called dynamicly, all subVI's have the same connector layout.
    Until now I was not able to generate a *.exe file wich is able to dynamicly call subVI's which are not included in the *.exe file (I tried with *.vi, *.llb and *.dll versions of the subVI's).
    Building this application with all subVI's included in the *.exe is no problem and works fine, but is not what I want.
    The target would be to have the possibility to update only some subVI's without the need to build the whole application again.
    This way of working would increase the flexibility to have different combinations of versions a lot.
    I am using LV8.2.
    Is my question anyway possible and if yes can somebody tell me how?
    Thanks!

    Hello,
    A SubVI is actually what you call a sub-routine in text-based programming languages.
    So when you build an executable from a VI with SubVI's, it will simply build everything into one exe file.
    That's normal behaviour.
    If you would like to use dll's for flexibility, than you have to build VI's seperately for every dll you want to build.
    These dll's can than be called from within you main application executable.
    This practice is often used by system integrators to protect there code otherwise than a larger executable, but mainly because of easy maintenance.
    That is what I think you are also looking at.
    So what you would like to do is perfectly possible and common practice, you may only have to change your top view of the actual application.
    Best regards,
    Joeri
    National Instruments
    Applications Engineering
    http://www.ni.com/ask
    Make our forums great:
    If you like the answer, don't forget to "Kudos!".
    "Accept the Solution" if your question is answered!

  • Problem building application with C++ 4.2 on Sun OS 5.9

    I have an application that builds fine with "WorkShop Compilers 4.2 30 Oct 1996 C++ 4.2" on SunOS devbox1 5.6 Generic_105181-33 sun4u sparc SUNW,Ultra-Enterprise
    On the same file system, I am trying to build the application on "SunOS devbox2 5.9 Generic_117171-12 sun4u sparc SUNW,Sun-Fire-V440"
    I see that files like sys/siginfo.h do not get included. I guess C++ compiler should include such files by default (in the first case it does happen).
    Also, when I add -H option to the compiler to see the header files included, I see that the headers included in the first as well as the second case are different.
    Does anyone know why this is so?

    Workshop 4.2 is not expected to work on Solaris 9. Workshop 4.2 is long past its End Of Service Life, and no support of any kind is available for it.
    You can download the latest product, Sun Studio 11, and use it for free:
    http://developers.sun.com/sunstudio/
    Sun Studio 11 C++ (C++ 5.8) offers a mode where it is compatible with C++ 4.2. It compiles valid source code that C++ 4.2 compiled, and you can link binaries created by C++ 4.2 into programs built with Sun Studio 11.
    Full details are in the C++ Migration Guide that comes with the compiler.
    Regarding missing system header files in /usr/include or /usr/include/sys:
    To compile programs on Solaris, Solaris must have been installed as a "developer" or "full" release. If you install only the minimum, you will be missing many features necessary for compiling programs.

  • How to build applications with a non standard stlport

    Hi,
    I have a separate compiled version of stlport that I am supposed to use to build my application. In other words, I do not want to use the stlport that comes with the Sun compiler. I am aware of using -library=stlport4 when I use the default stlport that comes with the compiler.
    What flags/options should I use when I have my own stlport (libstlport_sunpro.so) library?
    I am using Sun C++ 5.6 2004/07/15 on SunOS 5.8.
    Pls help.
    Thanks
    Edited by: Sreeni_dd on Jul 23, 2009 12:50 PM

    Details are in the C++ Users Guide, section 12.7 "Replacing the C++ Standard Library". Here is a summary.
    1. Add the option -library=no%Cstd to disable both libCstd and STLport.
    2. Add a -I option that points to the include directory for the stlport headers you want to use. (Do NOT use the headers in the compiler installation.) Example:
    CC -library=no%Cstd -I/path/to/stlport/include -I/project1 -I/project2 ... If the compiler doesn't always find the headers, put the -I stlport option at the end of the other -I options, preceded by a -I- (dash eye dash) option. Example:
    CC -library=no%Cstd -I/project1 -I/project2 -I- -I/path/to/stlport/include ... This procedure is not optimal, since you would like to search STLport headers before searching other headers. use the -I- option only if needed.
    If you have file name conflicts with the STLport header files, you will need to add a set of symbolic links *.SUNWCCh as described in the C++ Users Guide.
    3. For link commands, add a -L option pointing to the directory where the compiled STLport library is located. Assuming this library is called libstlport.so, also add the option -lstlport. Linking a static libstlport.a is not recommended if your program uses any shared libraries. Example:
    CC -o myprog *.o -L/path/to/stlport/lib -lstlport

  • Problem building application with weblogic.jar placed out of bea install.

    Weblogic version: 10.3
    EJB Version: 2.x
    Method for generating webservices fomr EJBs: servicegen task.
    Application Build steps:
    Step1) Maven to build the complete application and generate ejb-jar.jar and other projects jars and wars.
    Step2) Post maven build success there is an ant script used to generate webservices using ejb’s in the project using servicegen task. Attached is build.xml for ant.
    Following is the class path :
    .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\Program Files\IBM\RationalSDLC\ClearQuest\cqjni.jar;C:\bea10.3\wlserver_10.3\server\lib\weblogic.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\webservices.jar;%JAVA_HOME%\lib\tools.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\libslf4j-log4j12-1.5.2.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\struts.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\bootstrap.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc_license_cu.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\ehcache-core-2.0.0.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\j2ee.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\jdom.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\log4j-1.2.9.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\slf4j-api-1.5.8.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-dto.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-jar.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\scheduler-ejb.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\com.bea.core.xml.beaxmlbeans_2.0.0.0_2-5-1.jar;
    Problem Area:
    As you could notice in the yellow highlighted one that am referring to weblogic.jar from bea installation folder. Now if I use the weblogic.jar from the installation folder then build happens successfully.
    However if I copy weblogic.jar to some other location say : C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\weblogic.jar
    And include this path in the class path in place of weblogic.jar from the installation path, then I get the following errors: Please refer red highlighted part below…
    C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\ulc-ear>ant
    Buildfile: build.xml
    ejbwebservice:
    [servicegen] weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed D
    OCTYPE header
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:301)
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:241)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:320)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:295)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:265)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:118)
    [servicegen] at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:47)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:177)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [servicegen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [servicegen] at java.lang.reflect.Method.invoke(Method.java:597)
    [servicegen] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:348)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:357)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    [servicegen] --------------- nested within: ------------------
    [servicegen] Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document doe
    s not appear to contain a properly formed DOCTYPE header - with nested exception:
    [servicegen] [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed
    DOCTYPE header]
    --------------- nested within: ------------------
    weblogic.webservice.util.WebServiceJarException: Could not process ejb-jar C:\DOCUME~1\ac30416\LOCALS~1\Temp\ulc-ear.ear
    -86826932\ejb.jar - with nested exception:
    [weblogic.webservice.dd.EJBProcessingException: Can read in ejb DD files. - with nested exception:
    [Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear
    to contain a properly formed DOCTYPE header - with nested exception:
    [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE heade
    r]]]
    at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:183)
    at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Please help as its urgent for me as we cannot have local installation of weblogic. We may just use the required jars.

    Weblogic version: 10.3
    EJB Version: 2.x
    Method for generating webservices fomr EJBs: servicegen task.
    Application Build steps:
    Step1) Maven to build the complete application and generate ejb-jar.jar and other projects jars and wars.
    Step2) Post maven build success there is an ant script used to generate webservices using ejb’s in the project using servicegen task. Attached is build.xml for ant.
    Following is the class path :
    .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~1\IBM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar;C:\Program Files\IBM\RationalSDLC\ClearQuest\cqjni.jar;C:\bea10.3\wlserver_10.3\server\lib\weblogic.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\webservices.jar;%JAVA_HOME%\lib\tools.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\libslf4j-log4j12-1.5.2.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\struts.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\bootstrap.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\db2jcc_license_cu.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\ehcache-core-2.0.0.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\j2ee.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\jdom.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\log4j-1.2.9.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\slf4j-api-1.5.8.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-dto.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\ulc-jar.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\Deployment\scheduler-ejb.jar;C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\com.bea.core.xml.beaxmlbeans_2.0.0.0_2-5-1.jar;
    Problem Area:
    As you could notice in the yellow highlighted one that am referring to weblogic.jar from bea installation folder. Now if I use the weblogic.jar from the installation folder then build happens successfully.
    However if I copy weblogic.jar to some other location say : C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\nordea-ulc\lib\weblogic.jar
    And include this path in the class path in place of weblogic.jar from the installation path, then I get the following errors: Please refer red highlighted part below…
    C:\Jeevesh DEV\ULM Core\UnitLinkCore\UnitLink\ulc-ear>ant
    Buildfile: build.xml
    ejbwebservice:
    [servicegen] weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed D
    OCTYPE header
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:301)
    [servicegen] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:241)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:320)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processXML(DDUtils.java:295)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:265)
    [servicegen] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:118)
    [servicegen] at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:47)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:177)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    [servicegen] at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [servicegen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [servicegen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [servicegen] at java.lang.reflect.Method.invoke(Method.java:597)
    [servicegen] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:348)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:357)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [servicegen] at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [servicegen] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [servicegen] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    [servicegen] --------------- nested within: ------------------
    [servicegen] Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document doe
    s not appear to contain a properly formed DOCTYPE header - with nested exception:
    [servicegen] [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed
    DOCTYPE header]
    --------------- nested within: ------------------
    weblogic.webservice.util.WebServiceJarException: Could not process ejb-jar C:\DOCUME~1\ac30416\LOCALS~1\Temp\ulc-ear.ear
    -86826932\ejb.jar - with nested exception:
    [weblogic.webservice.dd.EJBProcessingException: Can read in ejb DD files. - with nested exception:
    [Error processing file 'META-INF/ejb-jar.xml'. weblogic.xml.process.XMLProcessingException: XML document does not appear
    to contain a properly formed DOCTYPE header - with nested exception:
    [weblogic.xml.process.ProcessorFactoryException: XML document does not appear to contain a properly formed DOCTYPE heade
    r]]]
    at weblogic.webservice.util.WebServiceEarFile.init(WebServiceEarFile.java:183)
    at weblogic.webservice.util.WebServiceEarFile.readDD(WebServiceEarFile.java:235)
    at weblogic.webservice.util.WebServiceEarFile.<init>(WebServiceEarFile.java:74)
    at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Please help as its urgent for me as we cannot have local installation of weblogic. We may just use the required jars.

  • Building applications with applets

    Hi,
    I want to modify my applet so it can be used to build an application. From within the applet, I need a way to tell if I'm running as an applet in a browser or as an application ( I need to do this, so I dont go making URLConnections, etc when I'm running as an application ).
    I'm also limited to JDK 1.1.x.
    thanks in advance,
    rob

    If an applet is being run as an application, the main method will have to be called. This method will never be called when run as an applet.
    Generally, when wrapping an applet in a application, the window creation functions are also handled in main. It would be relatively easy to set a flag when instantiating the applet (say as an instance variable on the applet itself) to let it know if it was running as an applet or as an application
    Jason

Maybe you are looking for

  • Can I back up iphone to an external disk?

    can I back up iphone to an external disk?

  • Is there a way to see if a transport has $TMP assigned to any objects

    Is there a way to see if a transport may have items that are in $TMP?

  • Keep local and server folder in sync

    hi, we want to set up a central file server, where each one can work on the same set of files, and eventually take it with you on a laptop and when re-connecting to the office sync what changed to the central folder. i know you can do that with user

  • Greatly reduced reception

    Problem: I'm experiencing greatly reduced reception/range with my PowerBook wireless connections. More than 15 feet away from my base station can cause dropped or intermittent connections or complete loss of signal. Any line of sight interference - a

  • JAXB Unmarshaller and errors to system.out

    Hi! I'm using JAXB in a complex XML binding project. The question is: is there a way to prevent javax.xml.bind.Unmarshaller to send to system.out the warnings/errors messages as DefaultValidationEventHandler: [ERROR]: bla bla bla which are sent immed