ADF BC & Faces: Automating Builds

Hi all,
With the tips I've been recieving in regarding SVN, I'm happy to say we have this up and running within our group. In my past experience at a different company developing open source j2EE desktop apps, we had a CVS repository hooked up with a continous build tool called Cruise Control. This tool allowed the developers to continously check in their code and have it compiled right away. Any build failures would result in an email sent to that developer notifying the event. Are there anyone working with ADF BC&Faces using such a tool for their integration process?
Thanks,
Z

zeoneozero -
1. svn.classpath is just the path id for loading these jars. You use that path id again in the pullSource target.
2. Just use cc-build.xml - this is the build file specific to cruise control.
3. Examples:
cc-build.xml:
<project name="cc-build" default="ccBuild" basedir="checkout">
<property file="../build.properties" />
<path id="project.classpath">
<pathelement location="${svnjavahl.jar}" />
<pathelement location="${svnant.jar}" />
<pathelement location="${svnClientAdapter.jar}" />
</path>
<!-- load the svn task -->
<taskdef resource="svntask.properties" classpathref="project.classpath"/>
<target name="pullSource">
<svn username="${svnant.repository.user}" password="${svnant.repository.passwd}">
<checkout url="${svnant.latest.url}" revision="HEAD" destPath="src" />
</svn>
</target>
<target name="clean">
<delete dir="src" />
</target>
<target name="extractBuildNumber"
description="Generate the build number from the supplied build label">
<script language="javascript">
<![CDATA[
fullLabel = project.getProperty("label");
buildNumber = fullLabel.substring(6,fullLabel.length());
project.setProperty("buildNumber",buildNumber);
]]>
</script>
<echo message="Using build number from build system ${buildNumber}"/>
</target>
<target name="invokeBuildAll">
<ant antfile="build.xml" dir="src/Model/Ant" target="buildAll"/>
<delete>
<fileset dir="../buildOutput" includes="**/*.zip"/>
</delete>
<copy todir="../buildOutput">
<fileset dir="src/Model/Ant/Output"/>
</copy>
</target>
<target name="ccBuild" depends="clean, pullSource, extractBuildNumber, invokeBuildAll">
</target>
</project>
build.properties:
# build.properties
# This file is referenced by the sample build.xml file.
svnant.version=1.0.0
# all jar needed
lib.dir=C:\\software\\CruiseControl\\apache-ant-1.6.5\\lib
svnant.jar=${lib.dir}/svnant.jar
svnClientAdapter.jar=${lib.dir}/svnClientAdapter.jar
svnjavahl.jar=${lib.dir}/svnjavahl.jar
svnant.latest.url=svn://hostname/svnrepos/projectname
svnant.repository.user=guest
svnant.repository.passwd=""
# values to override the checked in build.properties with those used on the CC machine
jdeveloper.home=C:\\software\\JDev
temp.dir=c:\\temp
jdbc.sid=orcl
db.adminUser.password=password
db.demoUser=username
src.home=C:\\software\\CruiseControl\\projects\\projectname\\checkout\\src
Hope this helps,
Lynn Munsinger
Oracle JDeveloper & ADF

Similar Messages

  • Unable to find class oracle.adf.controller.faces.lifecycle.ADFPhaseListener

    hi ,OTN
    I have an ADF 10g application which I migrate to Jdeveloper 11.1.1.3.0 version after migration and turning Adf faces to Apache Trinidad components and fixing all my code,compiling the application without any Errors,when I deployed my application to weblogic I had a deployment exception this is all the stack trace
    User defined listener com.sun.faces.config.ConfigureListener failed: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
    Cause: Unable to find class 'oracle.adf.controller.faces.lifecycle.ADFPhaseListener '
    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
    Cause: Unable to find class 'oracle.adf.controller.faces.lifecycle.ADFPhaseListener'
         at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:195)
         at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         Truncated. see log file for complete stacktrace
    Caused By: com.sun.faces.config.ConfigurationException:
    Cause: Unable to find class 'oracle.adf.controller.faces.lifecycle.ADFPhaseListener'
         at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:248)
         at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:141)
         at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:114)
         at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
         at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:132)
         Truncated. see log file for complete stacktrace
    <08/10/2010 EET 04:11:11 م> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1286547027015' for task '0'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1514)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         Truncated. see log file for complete stacktrace
    Caused By: com.sun.faces.config.ConfigurationException:
    Cause: Unable to find class 'oracle.adf.controller.faces.lifecycle.ADFPhaseListener'
         at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:248)
         at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:141)
         at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:114)
         at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
         at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:132)
         Truncated. see log file for complete stacktrace
    >
    <08/10/2010 EET 04:11:11 م> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application 'Version4'.>
    <08/10/2010 EET 04:11:11 م> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'Version4'.>
    <08/10/2010 EET 04:11:11 م> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: :com.sun.faces.config.ConfigurationException:
    Source Document: file:/C:/Documents and Settings/Administrator/Application Data/JDeveloper/system11.1.1.3.37.56.60/o.j2ee/drs/Version4/ViewControllerWebApp.war/WEB-INF/faces-config.xml
    Cause: Unable to find class 'oracle.adf.controller.faces.lifecycle.ADFPhaseListener'
         at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:248)
         at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:141)
         at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:114)
         at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
         at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:132)
         Truncated. see log file for complete stacktrace
    help please?

    thank you for quick reply. but I ran my application in the integrated weblogic server in the Jdeveloper.I did not deploy it to a standalone one.did you mean the default domain?

  • Difficult to get good package names with ojspc in automated build

    If I understand the documentation for "ojspc" correctly, there is an aspect of its functionality that makes it difficult to have a convenient automated build which can also get good package names for the generated Java source files.
    If you don't specify the "-packageName" option, ojspc will build a package name relative to the current directory, including sub-directories. However, specifying "-packageName" will ONLY use that package, and will not create sub-packages associated with sub-directories.
    If you don't use the "-packageName" option, then you have to run the build from the root directory of your JSP files. When you're running an automated build with ANT, it's not convenient to do this.
    The likely result of this is that I would have to make sure that all of my JSP files are named differently, even if they're in different directories, and use the "-packageName" option to specify a particular package name for all of the generated source files.

    After more careful reading, I realized that using the "-appRoot" option (without using "-packageName") makes it possible for an ANT build to generate good package names (with directories).
    The following note, however, in the ojspc documentation is kind of odd:
    "It is advisable that you run ojspc once for each directory of your JSP application, so files in different directories can be given different package names, as appropriate."
    I assume this is referring to using the "-packageName" option. If you don't need to use "-packageName", especially if you have multiple directories of JSP pages, it is much easier to just let ojspc pick the package names.

  • Trinidad and ADF Rich Faces components::

    Hi!
    Does someone know about any problem while using Trinidad and ADF Rich Faces, or just the Trinidad components in JDev11g ?
    Thanx.
    Endy

    Endy,
    ADF Faces RC isn't supported in IE6, so that certainly wasn't the issue. I have inadvertently mixed Trinidad and ADF Faces RC components on a page and didn't run into issues, but I did correct that issue based upon comments from Frank/Shay on the forum. Bottom line is that while they may work (or appear to work) together, it's not a supported combination.
    Best,
    John

  • Automated build server for Arch? (like the sourceforge build system)

    Has someone considered some kind of automated build system for Arch?
    Something that would work like this:
    - It'd have every library and dependency possible installed.
    - It'd intelligently read the makefiles produced to see what libraries they used and compare them against a lookup table to see what Arch dependencies they then required. Failing that, it could use ldd and a second lookup table that matched libraries to packages.
    - It'd attempt to figure out the target binary to run (again, from the makefiles produced), and then run it. If it worked, it'd be marked as usable. If it didn't work, it'd be marked as needing fixing.
    All of these points can fail, especially in the parsing of the makefiles; in each case, this would be noted by the system and user action could be taken.
    In operation, it wouldn't take away from users managing their own packages. It'd just provide a secure environment to build packages in, and attempt to automate some of the process. In the best cases, the system would theoretically be capable enough to download a package's sourcecode, ./configure it, make it, make a package out of it, get the package verified as usable, then update the repo with it.
    Note the verification step in the previous paragraph: I would never want this to be an automated system. Sure, it sound amazing on paper, and might even work for a little while, but sooner or later something would come crashing down and since repo management is quite a trust-based issue, everyone would freak out and they wouldn't want the build server anymore.
    -dav7
    Last edited by dav7 (2008-10-17 18:41:22)

    Who would have access to upload to such a build server? If it's the general public, then this is a security nightmare, as well as a growth curve nightmare. The monetary investment for a project like this would need to come from somewhere.
    And yeah, something like this has been considered, and a working proof-of-concept has been sitting around for years. http://projects.archlinux.org/?p=pacbuild.git;a=summary . What this kind of project really needs is someone with some distributed computing smarts and dedication (and time) to get it off the ground in a form that will survive past a proof-of-concept barebones implementation.
    One of the largest design challenges would be dependency resolution for batch upgrades. For instance, let's say we update libfoobar, which is depended upon by foo, bar, baz, and batman, the system needs to know that libfoobar needs to be built and installed in order to compile the rest of them against it.

  • Managed bean/Data exchange between two ADF Rich Faces based applications

    Hi,
    I have been trying to research what seems to be a small issue. My requirements are as follows.
    1. I need to be able to pass managed bean information from one ADF Rich Faces based application to another (in two separate ears) at runtime (e.g. from Ear1: SenderApp/Sender.jspx -> Ear2: ReceiverApp/Receiver.jspx).
    2. I do not want to use the database as my applications need to be performant.
    3. Serialization/de-serialization would fall pretty much under the database category. In other words, I like to avoid Serialization/de-serialization of the managed bean.
    4. I cannot use query string due to security issues.
    My question is as follows:
    1. Is there any standard/architecture/best practices for data exchange of backing beans or other forms between two ADF Rich Faces based apps (in two separate ears)?
    2. Has someone found anything similar to an applicationScope that works across applications?
    I would appreciate any ideas.
    Thanks very much,
    Edited by: user11219846 on Jul 23, 2009 2:38 PM
    Edited by: user11219846 on Jul 23, 2009 2:42 PM

    Hi,
    its not an ADF Faces problem, but not possible in Java EE. You can however fallback to vendor specific implementations like in WLS. From the WebLogic documentation : http://e-docs.bea.com/wls/docs103/webapp/sessions.html
    Enabling Web applications to share the same session*
    By default, Web applications do not share the same session. If you would like Web applications to share the same session, you can configure the session descriptor at the application level in the weblogic-application.xml deployment descriptor. To enable Web applications to share the same session, set the sharing-enabled attribute in the session descriptor to true in the weblogic-application.xml deployment descriptor. See “sharing-enabled” in session-descriptor.
    The session descriptor configuration that you specify at the application level overrides any session descriptor configuration that you specify at the Web application level for all of the Web applications in the application. If you set the sharing-enabled attribute to true at the Web application level, it will be ignored.
    All Web applications in an application are automatically started using the same session instance if you specify the session descriptor in the weblogic-application.xml deployment descriptor and set the sharing-enabled attribute to true as in the following example:
    +<?xml version="1.0" encoding="ISO-8859-1"?>+
    +<weblogic-application xmlns="http://www.bea.com/ns/weblogic/90";;>+
    +...+
    <session-descriptor>     
    +<persistent-store-type>memory</persistent-store-type>+
    +<sharing-enabled>true</sharing-enabled>+
    +...+
    +</session-descriptor>+
    +...+
    +</weblogic-application>+
    Frank

  • Oracle.adf.view.faces.model classes and serializable

    Some (most?) classes in oracle.adf.view.faces.model - e.g., ChildPropertyTreeModel - are not serializable. If these objects are given the "session" scope, this causes problems. For instance, in a clustered environment with failover/load-balancing, session attributes must be serialized to be replicated to all cluster members. Adding one of these object to the session causes the serialization - and therefore the replication - process to fail. Does anybody know why these classes are not marked as serializable?

    Some (most?) classes in oracle.adf.view.faces.model - e.g., ChildPropertyTreeModel - are not serializable. If these objects are given the "session" scope, this causes problems. For instance, in a clustered environment with failover/load-balancing, session attributes must be serialized to be replicated to all cluster members. Adding one of these object to the session causes the serialization - and therefore the replication - process to fail. Does anybody know why these classes are not marked as serializable?

  • ADF progressIndicator without oracle.adf.view.faces.model.BoundedRangeMode

    Hello
    I am using progressIndicator for updating large number of database values. But it seems that oracle.adf.view.faces.model is not an opensource. But the progressIndicator using oracle.adf.view.faces.model.BoundedRangeModel. So any one please tell me is it possible to use progressIndicator without using oracle.adf.view.faces.model.BoundedRangeModel. I am updating nearly 10000 records. So it should use the progressIndicator.

    Hi,
    seems that your LOV implementation updates "MdlPrdId" on the table binding directly, which is not supposed to work
    Frank

  • ADF Faces: oracle.adf.view.faces.CHANGE_PERSISTENCE

    Does anyone have any information about oracle.adf.view.faces.CHANGE_PERSISTENCE. This appears to be un-documented.

    This may help explain the situatin. I originally had JDeveloper 10.1.3.2 installed when I started this tutorial. I then installed JDeveloper 11 version 4 and tried to work the WebCenter Protlet tutorial. When I did it tried to migrage my settings. However, when I attempted to do the tutorial I noticed that it did not have the same options for the WebCenter new applications that would create a Portlet folder. So, I went back to 10.1.3.2 to work the tutorial. No error was flagged at this point but that is when the problems started occuring. I browsed my working directory (C:\Oracle\jdevinstance) where I had my applications stored (C:\Oracle\jdevinstance\mywork) and I noticed that I had what appared to be possible conflicting system files. I had the following system files listed under the working directory: system, system11.1.1.0.17.45.24, system11.1.1.0.22.47.96, and system11.1.1.0.22.49.49. I don't know if this is the issue or not and any feedback about these extra files would be apprecaited?
    In addition, I create a new application (using 10.1.3.2) with a different applicaiton directory (C:\Oracle\jdevinstance\MyWork_10.1.3.2) and started the tutorial over. This time I had no issues with the JSP page and all of my web.xml files are the same version (2.4).

  • Unit Test in SQL Developer 2.1: Automated Builds

    Hi,
    I am interested to know if the new Unit Testing framework can be accessed via API so the test execution is initiated from automated build process.
    Regards,
    Vadim

    I am having a problem with the unit testing command line.
    I am attempting to run the unit testing using the command line interface.
    I can connect to UNIT_TEST_REPOS schema in SQL developer.
    I am successfully running units test and suites in SQL developer.
    UNIT_TEST_REPOS, RCSV1 and DEVER users are granted on the UT_REPO_USER role and UNIT_TEST_REPOS and DEVER on the UT_REPO_ADMINISTRATOR.
    The following commands result in an error box saying "No Repository was found on the selected connection, you need to create a repository." (The HELP button apparently does nothing. The OK button closes the box.)
    C:\Program Files\sqldeveloper\sqldeveloper\bin>UtUtil -exp -test -name RCSV1_RCS_SECURITY.GET_LDAP_BASE -repo unit_test_repos -file c:\ut_xml\test.xml
    Unable to open repository
    C:\Program Files\sqldeveloper\sqldeveloper\bin>UtUtil -run -test -name RCSV1_RCS_SECURITY.GET_LDAP_BASE -repo unit_test_repos -db dever
    Unable to open repository
    C:\Program Files\sqldeveloper\sqldeveloper\bin>UtUtil -run -test -name RCSV1_RCS_SECURITY.GET_LDAP_BASE -repo dever -db dever
    Unable to open repository
    I would guess that I am not supplying the correct connection info.
    My last comment triggered an idea. It turns out that the connection names required are those connections named in SQL developer. In my case, they are not the same as the schema names. The following command worked as advertised.
    C:\Program Files\sqldeveloper\sqldeveloper\bin>UtUtil -run -test -name RCSV1_RCS_SECURITY.GET_LDAP_BASE -repo UNIT_TEST -db DeverLocal
    The ANT target is
    <target name="UnitTests">
    <exec executable="cmd" dir="${sqldev.bin.dir}">
    <arg value="/c"/>
    <arg value="UtUtil -run -suite -name RCSV1 -repo UNIT_TEST -db DeverLocal"/>
    </exec>
    </target>
    Regards,
    Bill

  • Class adf.controller.faces.context.FacesPageLifecycleContext not found

    Hi all,
    I am using Jdeveloper 11.1.1.0 and I have a class uses FacesPageLifecycleContext.
    When I import the class oracle.adf.controller.faces.context.FacesPageLifecycleContext, the debugger tells me it does not found that class.
    How can I solve the problem?
    Does I miss any library on my project?
    Thanks
    Andrea

    Excuse me, but I don't understand. Have I to found all these files:
    trinidad-api.jar
    trinidad-impl.jar
    adf-richclient-api-11.jar
    adf-richclient-impl-11.jar
    in my classpath?
    I am looking for these files in C:\Oracle\Middleware\jdeveloper\adfv but in this folder I have only jlib and skin folder.
    Can you give any other informations, please.
    Thank you so much

  • Oracle.adf.controller.faces.context.FacesPageLifecycleContext not found

    Hi all,
    I am using JDeveloper 11.1.1.0 and I am trying to do an application about security.
    I have found some references on web and I have a bean that uses this line of code:
    FacesPageLifecycleContext ctx = (FacesPageLifecycleContext)event.getLifecycleContext();
    but on the line:
    import oracle.adf.controller.faces.context.FacesPageLifecycleContext;
    the debugger tells me: "class oracle.adf.controller.faces.context.FacesPageLifecycleContext not found"
    What's the correct class to import?
    Thanks

    Hi,
    not sure what you are doing - however I am not asking ;-)
    Try import oracle.adf.controller.v2.context.LifecycleContext
    Frank

  • ADF BC+ Faces Internal architecture

    Can someone share me where i can find the Internal architecture of ADF BC+ Faces.
    How Entity VO, App Module ,Backing/Managed Beans interact.
    Thanks in Advance.

    Thank you very much Frank/Shay/Timo..
    Iam looking for sequence diagrams for a typical request life cycle(from the jspx to the entity object) ..
    Here are some querys lingering in my mind..
    1) In typical Faces environments (JSF) When a form is submitted the data submitted (anything..even the Value objects) will be available in the Managed Bean where we can play with the data (thats being submitted).
    How can i access the Value Object getting submitted in ADF the same way ?? That increases our flexibility
    2) I visualised the AppModule is a kind of facade, and it plays around with the ORM entity objects to get the CRUD jobs done..Is this correct??
    From the entity object generate code it seems its getting injected somewhere..(dependency injection)
    So when a user submits a button.. the request goes to the Managed Bean..calls the App Module.. which calls the Entity Objects Crud operation..
    (Now WHere does Updateable VO fit in.. )
    Thanks in advance
    Edited by: user11922045 on Oct 27, 2010 9:03 AM

  • Looking for oracle.adf.view.faces.CHECK_FILE_MODIFICATION property

    Hi ,
    when i try to run a simple ADF form for the second time-one 'instance' of it has already run successfully some time ago , and the status of "embedded runtime OC4J SERVER" is running- i get the following error:
    INFO: ADF Faces is running with time-stamp checking enabled. This should not be used in a production environment. See the oracle.adf.view.faces.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
    I have searched the web.xml file in the current application...(userInterface project->Web Content - > Web-Inf) but i have not found the property "oracle.adf.view.faces.CHECK_FILE_MODIFICATION"....
    Where is there declared...????
    NOTE : I use JDev 10.1.3.
    My greetings,
    Simon

    Hi,
    oracle.adf.view.faces.CHECK_FILE_MODIFICATION is a context parameter that in JDeveloper IDE is set to true by default. You can set this to false but then this means that the JSPX files are no longer compiled when running them in the embedded OC4J, which means you actually see the "old" version
    <!-- If this parameter is enabled, ADF Faces will automatically
    check the modification date of your JSPs, and discard saved
    state when they change; this makes development easier,
    but adds overhead that should be avoided when your application
    is deployed -->
    <context-param> <param-name>oracle.adf.view.faces.CHECK_FILE_MODIFICATION</param-name>
    <param-value>false</param-value>
    </context-param>
    Frank

  • ClassNotFoundException: oracle.adf.view.faces.webapp.AdfFacesFilter

    Hi JDeveloper,
    Jdev Version: 11.1.1.6.0
    I am writing code to upload file to temp location, for this I added following configuration.
    <!-- This filter is always required by ADF; one of its functions is
    file upload. -->
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    But on running the code getting below exception:
    weblogic.application.ModuleException: Failed to load webapp: 'SP'
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:393)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.ClassNotFoundException: oracle.adf.view.faces.webapp.AdfFacesFilter
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
         Truncated. see log file for complete stacktrace
    Any clue on this?
    Please suggest
    Thanks,Ankur

    Hi Timo,
    I have read this blog carefully, but still my problem is unresolved. I have to save file to location on Submit button in popup. I am not able to get example how to do so, that on Submit button I should move the file to file server.
    My code is:
    <af:inputFile label="File Name:" id="if1" showRequired="true"
    autoSubmit="true"
    value="#{backingBeanScope.spr2DownloadPageBean.file}"
    valueChangeListener="#{backingBeanScope.spr2DownloadPageBean.uploadFile}"
    binding="#{backingBeanScope.spr2DownloadPageBean.inputFile}"/>
    Backing Bean:
    public void uploadFile(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    System.out.println("fileUpdate invoked");
    UploadedFile file =(UploadedFile)valueChangeEvent.getNewValue();
    if(file!=null){
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage message = new FacesMessage(
    "Successfully uploaded file " + file.getFilename() +
    " (" + file.getLength() + " bytes)");
    I am not able to figure out code for Submit Button:
    public String UploadButton_action() {
    // Add event code here...
    if(this.getInputFile().getValue()==null){
    FacesContext context = FacesContext.getCurrentInstance();
    return null;
    Please suggest.

Maybe you are looking for

  • HR Stadard Cube 0PA_C01: error while activating the transformation

    Hello, I have migrated the data source 0HR_PA_0 to version 7. While activating the transformation to HR standard cube, the start routine has the following error: E:Field "COMM_STRUCTURE-EMPLOYEE" is unknown. It is neither in one of the specified tabl

  • How do i get rid of a iPhone Virus?

    I have now for the second time a strange virus on my Iphone 5, iOs 6.1.4 It opens randomly the pre-installed apple apps like Newsstand, Settings, Notes etc. and changes settings there. The first time I had it, it sent a message with "awkward" to one

  • Hi,  in which document COGS

    hi, sap gurus, which document helps in raising COGS document and where can we find that assginment in the that relevant document. plz help me on this regrds, balaji.t 09990019711

  • HT1918 keeps saying my security code is wrong

    I keep putting different credit cards and its telling me that all cards security codes are wrong when im clearly looking at the card in hand, which is my bank card i use daily. Cant update or download nay apps because of this

  • Self-Service Web Apps Setup

    I am getting an invalid login message as I attempt to login to Self-Service Web Apps. I have done all the necessary things I know, to resolve the problem, but it is still coming with the same error. Username and password screen. I am on Apps rel 11 P