Problem with scope in DESTINATION_APP

Experts --
I am using a Default logic file to move data from FINANCEDETAIL cube to FINANCE.
*DESTINATION_APP=FINANCE
*SKIP_DIM=LINEITEMDETAIL
*WHEN Entity
*IS *
*REC(EXPRESSION=%Value%)
*ENDWHEN
*COMMIT
My problem is with the logic's scope.  When I post to FINANCEDETAIL for JAN it posts to FINANCE only for JAN.  That is normally correct, but in this case I want it to post from detail to ALL months within the year--even if FINANCEDETAIL has not changed.
I have added XDIM_MEMBERSET TIME=%MyTime% (i.e. all months).
I added a line to the logic *DESTINATION TIME=%MyTime%
I can tell from DebugLogic.log that all of the months are part of my original query.  Records to be posted, however, are only months that have actually changed.
Documentation suggests that I need to put this logic within a *RUNLOGIC?  Is that the right track?
Thanks...Marv

Hi Halomoan--
Thanks for responding.  I am using BPC version 5.1.
Here is my logic in all it's gory detail.
BPC is actually working as it is supposed to.  It is sending back data from DETAIL that has changed.
I want it to send back ALL the time series monthly data for selected Account/Entity--even though it appears it has not changed in DETAIL (I have a problem in that FINANCE may be out of synch with FINANCEDETAIL).
*CALCULATE_DIFFERENCE 0
*MEMBERSET(%MyDetail%,"Descendants([DETAIL].[AllLineItems],999,leaves)")
*XDIM_MEMBERSET DETAIL=AllLineItems,%MyDetail%
*MEMBERSET(%MyTime%,"Descendants([TIME].[2009.Total],999,leaves)")
*XDIM_MEMBERSET TIME=%MyTime%
*DESTINATION_APP=FINANCE
*DESTINATION TIME=%MyTime%
*SKIPDIM=DETAIL
*RENAME_DIM DATASOURCE=DATASRC
*ADD_DIM DATATYPE=AVG
*ADD_DIM INTCO=NON_INTERCO
*WHEN DEPARTMENT
*IS *
     *REC(EXPRESSION=%VALUE%)
*ENDWHEN
*COMMIT

Similar Messages

  • ClearInterval() not working, problem with scope

    Hi.
    I have the following javascript code:
    var ivScroll;
    function scrollHoriz (nScrollX)
    if (window.scrollX < nScrollX) {
    window.scrollBy(10, 0);
    } else {
    clearInterval (ivScroll);
    function scrollMe (nScrollX, nInterv)
    nInterv = setInterval ("scrollHoriz("+nScrollX+")", 10);
    When I do scrollMe (300, ivScroll), the part where it should
    clear the interval doesn't work. I've checked and it does get to
    the else clause, so the problem is that the ivScroll variable being
    used is not the one I defined globally. I'm fairly new to
    javascript, so can someone please solve this scope problem for me?
    Thank you.
    João

    Try starting your computer in Safe Mode (holding down the Shift key while restarting) then see if the computer will sleep.  If it will sleep, then restart your system and repair your permissions with disk utility. 

  • Problem with scope, inside custom class

    I'm having trouble with the code below- can anybody explain
    why "class_obj" is undefined in my xml.onLoad handler? even though
    its available through out the class instance?

    See my answer to your other post.

  • Problem with current scope forum

     I have searched my computer for trojan downloader and it was found and removed however the search said having a problem with current scope.
    Skin222

    Hello Skin222,
    Your problem is beyond the scope of support. This forum is for feedback and questions related to the current versions of the ADO.NET Entity Framework and LINQ to Entities including object-relational mapping and entity data modeling.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem with JavaBean: Scope="Session"

    Hi! All,
    I have a problem when I use JavaBean with "session" scope. Let me try and explain my problem:
    I have, let us say, an Product Order Page [say, Order.JSP]. I have provided links to 3 different catalogues, and the catalogues open as a child window. The idea is the user can choose the products [multiple select implemented via checkbox] from more than one catalogue.
    I have used a JavaBEan, with scope="session". I use this bean to store the product information selected by the user from the catalogues, so that afterselecting, the child window 'submit's to the parent window. The parent window then gathers the product information [stored as vector] from the session bean to display this. The usercan switch between catalogues before deciding to submitthe order.
    Now, the Problem: Whenever, the user chooses, say more than 3 items per catalogue, I get "Connection with the Server was Reset" error. I am sure to a sertain extent, that the error has got soemthing to do with the bean because, I find the same error repeated whereever I have used a session scope, on the site.
    Please help me resolve this issue.
    Thanks a lot in advance.
    RG

    hi rg,
    wht server are u using? can u post the code so we have better look at it?
    Sachin

  • Problem with axis2 and Tomcat

    Hello,
    I am having a strange problem with Tomcat and axis. I have a webservice that uses axis2 for wsdl2java class generation. When I compile my project in maven a Test is performed. During the test a glassfish server is established and the project is deployed -everything work great with the expected results. However when I try to deploy the webservice on tomcat it has some problems.
    At first I tried to call axis code in a POST method that takes a MultiPart message. The code is as below:
    *@Path("identifyWavestream")*
    *@POST*
    *@Consumes(MediaType.MULTIPART_FORM_DATA)*
    *@Produces(MediaType.APPLICATION_XML)*
    *public String multipartTest(com.sun.jersey.multipart.MultiPart multiPart) throws Exception {* 
    *// get first body part (index 0)*
    *//tomcat shows that the first error is here (line 122 is the nest one with bodypart)*
    BodyPart bp = multiPart.getBodyParts().get(0);
    BodyPartEntity bodyPartEntity = (BodyPartEntity) bp.getEntity();
    InputStream stream = bodyPartEntity.getInputStream();
    *//the rest of the code either saves the incoming file or implements the wsdl2java axis interface - neither works.*
    And the tomcat error is:
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    java.util.ArrayList.RangeCheck(Unknown Source)
    java.util.ArrayList.get(Unknown Source)
    com.webserv.rest.resources.SearchResource.test.multipartTest(SearchResource.java:122)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    java.lang.reflect.Method.invoke(Unknown Source)
    com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$TypeOutInvoker._dispatch(EntityParamDispatchProvider.java:138)
    com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)
    com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:124)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)
    com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:555)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:514)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:505)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:359)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    It was strange to me since this simple approach of handling a Multipart method worked for me earlier. Then I decided skip the handling of multipart method and just call the axis code. But the results also caused an error. I then tried to call the axis code in a simple @GET method (to cross out any issues regarding the multipart) and the result where the same. Again everything works on the maven- glassfish test. In this case the tomcat error is the following:
    javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:361)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    root cause
    com.sun.jersey.api.container.MappableContainerException: java.lang.NoSuchMethodError: org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
    com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:74)
    com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:124)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)
    com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:555)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:514)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:505)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:359)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    root cause
    java.lang.NoSuchMethodError: org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
    org.apache.axis2.transport.http.AbstractHTTPSender.initializeTimeouts(AbstractHTTPSender.java:454)
    org.apache.axis2.transport.http.AbstractHTTPSender.getHttpClient(AbstractHTTPSender.java:514)
    org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:156)
    org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
    org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
    org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
    org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
    org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
    org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
    org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
    com.webserv.rest.webapp.IntSoapServiceStub.getServerData(IntSoapServiceStub.java:2447)
    com.webserv..rest.resources.AIntSoapImpl.getServerData(AIntSoapImpl.java:112)
    com.webserv..rest.resources.SearchResource.test.pingTest(SearchResource.java:167)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    java.lang.reflect.Method.invoke(Unknown Source)
    com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$TypeOutInvoker._dispatch(EntityParamDispatchProvider.java:138)
    com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)
    com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:124)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)
    com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:555)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:514)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:505)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:359)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    I think it is also a good ide to post the pom.xml file :
    Edited by: 803864 on 2010-10-21 00:30

    I think it is also a good ide to post the pom.xml file:
    +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"+
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    +<modelVersion>4.0.0</modelVersion>+
    +<groupId>com.myProjects</groupId>+
    +<artifactId>audioid-rest-interface</artifactId>+
    +<packaging>war</packaging>+
    +<name>AudioID Rest Interface</name>+
    +<version>0.1</version>+
    +<dependencies>+
    +<!--+
    +<dependency>+
    +<groupId>com.sun.tools.xjc.maven2</groupId>+
    +<artifactId>maven-jaxb-plugin</artifactId>+
    +<version>1.1</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-client</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>jersey-multipart</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.grizzly</groupId>+
    +<artifactId>grizzly-servlet-webserver</artifactId>+
    +<version>1.9.0</version>+
    +<scope>test</scope>+
    +</dependency>-->+
    +<dependency>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>jersey-multipart</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-client</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-bundle</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>commons-logging</groupId>+
    +<artifactId>commons-logging</artifactId>+
    +<version>1.0.4</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>commons-collections</groupId>+
    +<artifactId>commons-collections</artifactId>+
    +<version>3.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.slf4j</groupId>+
    +<artifactId>slf4j-log4j12</artifactId>+
    +<version>1.5.6</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>junit</groupId>+
    +<artifactId>junit</artifactId>+
    +<version>3.8.2</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.glassfish.distributions</groupId>+
    +<artifactId>web-all</artifactId>+
    +<version>10.0-build-20080430</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.glassfish.embedded</groupId>+
    +<artifactId>gf-embedded-api</artifactId>+
    +<version>1.0-alpha-4</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-server</artifactId>+
    +<version>1.0.3.1</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>maven-wadl-plugin</artifactId>+
    +<version>1.0.3.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.hibernate</groupId>+
    +<artifactId>hibernate</artifactId>+
    +<version>3.2.5.ga</version>+
    +<exclusions>+
    +<exclusion>+
    +<groupId>javax.transaction</groupId>+
    +<artifactId>jta</artifactId>+
    +</exclusion>+
    +<exclusion>+
    +<groupId>cglib</groupId>+
    +<artifactId>cglib</artifactId>+
    +</exclusion>+
    +</exclusions>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2</artifactId>+
    +<version>1.4.1</version>+
    +</dependency>+
    +<!-- <dependency> -->+
    +<dependency>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2-aar-maven-plugin</artifactId>+
    +<version>1.4.1</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2-java2wsdl</artifactId>+
    +<version>1.4.1</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2-xmlbeans</artifactId>+
    +<version>1.4.1</version>+
    +</dependency>+
    +<!-- <dependency> -->+
    +<dependency>+
    +<groupId>com.sun.xml.bind</groupId>+
    +<artifactId>jaxb-impl</artifactId>+
    +<version>2.1.12</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>cglib</groupId>+
    +<artifactId>cglib-nodep</artifactId>+
    +<version>2.1_3</version>+
    +</dependency>+
    +</dependencies>+
    +<build>+
    +<finalName>audioid-rest-interface</finalName>+
    +<plugins>+
    +<plugin>+
    +<!-- This class is just generated for wadl support!!! -->+
    +<!-- Take care that folder ../music-dna-core is existing -->+
    +<groupId>com.sun.tools.xjc.maven2</groupId>+
    +<artifactId>maven-jaxb-plugin</artifactId>+
    +<version>1.1</version>+
    +<executions>+
    +<execution>+
    +<phase>generate-sources</phase>+
    +<goals>+
    +<goal>generate</goal>+
    +</goals>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<generatePackage> com.webserv.wsparameters</generatePackage>+
    +<schemaDirectory>../audioid-rest-interface/src/main/resources+
    +</schemaDirectory>+
    +<includeSchemas>+
    +<includeSchema>**/*.xsd</includeSchema>+
    +</includeSchemas>+
    +<extension>true</extension>+
    +<strict>false</strict>+
    +<verbose>false</verbose>+
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.apache.maven.plugins</groupId>+
    +<artifactId>maven-javadoc-plugin</artifactId>+
    +<!-- <version>2.6</version> -->+
    +<executions>+
    +<execution>+
    +<goals>+
    +<goal>javadoc</goal>+
    +</goals>+
    +<phase>compile</phase>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<encoding>UTF-8</encoding>+
    +<verbose>false</verbose>+
    +<show>public</show>+
    +<subpackages> com.webserv.rest.rest.resources: com.webserv.rest.rest.commons: com.webserv.wsparameters+
    +</subpackages>+
    +<doclet>com.sun.jersey.wadl.resourcedoc.ResourceDoclet</doclet>+
    +<docletPath>${path.separator}${project.build.outputDirectory}+
    +</docletPath>+
    +<docletArtifacts>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>wadl-resourcedoc-doclet</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-server</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>xerces</groupId>+
    +<artifactId>xercesImpl</artifactId>+
    +<version>2.6.1</version>+
    +</docletArtifact>+
    +</docletArtifacts>+
    +<additionalparam>-output+
    +${project.build.outputDirectory}/resourcedoc.xml</additionalparam>+
    +<useStandardDocletOptions>false</useStandardDocletOptions>+
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>maven-wadl-plugin</artifactId>+
    +<version>1.0.3.1</version>+
    +<executions>+
    +<execution>+
    +<id>generate</id>+
    +<goals>+
    +<goal>generate</goal>+
    +</goals>+
    +<phase>compile</phase>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<wadlFile>${project.build.outputDirectory}/application.wadl+
    +</wadlFile>+
    +<formatWadlFile>true</formatWadlFile>+
    +<baseUri>http://192.168.2.149:8080/${project.build.finalName}+
    +</baseUri>+
    +<packagesResourceConfig>+
    +<param> com.webserv.rest.resources</param>+
    +</packagesResourceConfig>+
    +<wadlGenerators>+
    +<wadlGeneratorDescription>+
    +<className>com.sun.jersey.server.wadl.generators.WadlGeneratorApplicationDoc+
    +</className>+
    +<properties>+
    +<property>+
    +<name>applicationDocsFile</name>+
    +<value>${basedir}/src/main/doc/application-doc.xml</value>+
    +</property>+
    +</properties>+
    +</wadlGeneratorDescription>+
    +<wadlGeneratorDescription>+
    +<className>com.sun.jersey.server.wadl.generators.WadlGeneratorGrammarsSupport+
    +</className>+
    +<properties>+
    +<property>+
    +<name>grammarsFile</name>+
    +<value>${basedir}/src/main/doc/application-grammars.xml</value>+
    +</property>+
    +</properties>+
    +</wadlGeneratorDescription>+
    +<wadlGeneratorDescription>+
    +<className>com.sun.jersey.server.wadl.generators.resourcedoc.WadlGeneratorResourceDocSupport+
    +</className>+
    +<properties>+
    +<property>+
    +<name>resourceDocFile</name>+
    +<value>${project.build.outputDirectory}/resourcedoc.xml</value>+
    +</property>+
    +</properties>+
    +</wadlGeneratorDescription>+
    +</wadlGenerators>+
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.codehaus.mojo</groupId>+
    +<artifactId>exec-maven-plugin</artifactId>+
    +<version>1.1</version>+
    +<executions>+
    +<execution>+
    +<goals>+
    +<goal>java</goal>+
    +</goals>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<mainClass>com.sun.jersey.samples.generatewadl.Main</mainClass>+
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.apache.maven.plugins</groupId>+
    +<artifactId>maven-compiler-plugin</artifactId>+
    +<inherited>true</inherited>+
    +<configuration>+
    +<source>1.5</source>+
    +<target>1.5</target>+
    +<!--+
    exclude temporary types that are only needed for wadl and doc
    generation
    -->
    +<!--+
    +<excludes> <exclude>com/webserv/types/temporary/**</exclude>+
    +<exclude>com/webserv/rest/commons/Examples.java</exclude>+
    +</excludes>+
    -->
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.jvnet.jaxb2.maven2</groupId>+
    +<artifactId>maven-jaxb2-plugin</artifactId>+
    +<executions>+
    +<execution>+
    +<goals>+
    +<goal>generate</goal>+
    +</goals>+
    +</execution>+
    +</executions>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2-wsdl2code-maven-plugin</artifactId>+
    +<version>1.4.1</version>+
    +<executions>+
    +<execution>+
    +<id>generate reco core</id>+
    +<goals>+
    +<goal>wsdl2code</goal>+
    +</goals>+
    +<configuration>+
    +<packageName>com.webserv.rest.webapp</packageName>+
    +<wsdlFile>src/main/java/com/webserv/wsdl/web.wsdl</wsdlFile>+
    +<databindingName>adb</databindingName>+
    +</configuration>+
    +</execution>+
    +</executions>+
    +</plugin>+
    +<plugin>+
    +<groupId>com.sun.tools.xjc.maven2</groupId>+
    +<artifactId>maven-jaxb-plugin</artifactId>+
    +<version>1.1</version>+
    +<executions>+
    +<execution>+
    +<goals>+
    +<goal>generate</goal>+
    +</goals>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<generatePackage>com.webserv.wsparameters</generatePackage>+
    +<schemaDirectory>src/main/xsd</schemaDirectory> <includeSchemas>+
    +<includeSchema>**/*.xsd</includeSchema> </includeSchemas>+
    +<extension>true</extension>+
    +<strict>false</strict>+
    +<verbose>true</verbose>+
    +</configuration>+
    +</plugin>+
    +</plugins>+
    +</build>+
    +<profiles>+
    +<profile>+
    +<id>jdk-1.5</id>+
    +<activation>+
    +<jdk>1.5</jdk>+
    +</activation>+
    +<dependencies>+
    +<dependency>+
    +<groupId>com.sun.xml.bind</groupId>+
    +<artifactId>jaxb-impl</artifactId>+
    +<version>2.1.10</version>+
    +</dependency>+
    +</dependencies>+
    +<build>+
    +<plugins>+
    +<plugin>+
    +<groupId>org.apache.maven.plugins</groupId>+
    +<artifactId>maven-javadoc-plugin</artifactId>+
    +<configuration>+
    +<docletArtifacts>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>maven-wadl-plugin</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>wadl-resourcedoc-doclet</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-server</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>xerces</groupId>+
    +<artifactId>xercesImpl</artifactId>+
    +<version>2.6.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>javax.xml.bind</groupId>+
    +<artifactId>jaxb-api</artifactId>+
    +<version>2.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>javax.xml</groupId>+
    +<artifactId>jaxb-impl</artifactId>+
    +<version>2.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>javax.activation</groupId>+
    +<artifactId>activation</artifactId>+
    +<version>1.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>javax.xml.stream</groupId>+
    +<artifactId>stax-api</artifactId>+
    +<version>1.0</version>+
    +</docletArtifact>+
    +</docletArtifacts>+
    +</configuration>+
    +</plugin>+
    +</plugins>+
    +</build>+
    +</profile>+
    +<profile>+
    +<id>xsltproc</id>+
    +<activation>+
    +<file>+
    +<exists>../xsltproc_win32/xsltproc.exe</exists>+
    +</file>+
    +</activation>+
    +<build>+
    +<plugins>+
    +<!-- Create/generate the application.html using xsltproc -->+
    +<!-- Create/generate the application.html using xsltproc -->+
    +<plugin>+
    +<groupId>org.codehaus.mojo</groupId>+
    +<artifactId>exec-maven-plugin</artifactId>+
    +<version>1.1</version>+
    +<executions>+
    +<execution>+
    +<id>copy-docs-to-builddir</id>+
    +<goals>+
    +<goal>exec</goal>+
    +</goals>+
    +<phase>compile</phase>+
    +<configuration>+
    +<executable>copy</executable>+
    +<commandlineArgs>src\\main\\doc\\*.* target\\classes+
    +</commandlineArgs>+
    +</configuration>+
    +</execution>+
    +<execution>+
    +<id>prepare-xsltproc</id>+
    +<goals>+
    +<goal>exec</goal>+
    +</goals>+
    +<phase>package</phase>+
    +<configuration>+
    +<executable>copy</executable>+
    +<commandlineArgs>..\\audioid-rest-interface\\src\\main\\resources\\*.xsd+
    target\\classes</commandlineArgs>
    +</configuration>+
    +</execution>+
    +<execution>+
    +<id>exec-xsltproc: target/application.html</id>+
    +<goals>+
    +<goal>exec</goal>+
    +</goals>+
    +<phase>package</phase>+
    +<configuration>+
    +<!--<executable>xsltproc</executable>-->+
    +<executable>../xsltproc_win32/xsltproc.exe</executable>+
    +<commandlineArgs>-o target/application.html+
    src/main/doc/wadl_documentation.xsl
    target/classes/application.wadl</commandlineArgs>
    +</configuration>+
    +</execution>+
    +</executions>+
    +</plugin>+
    +</plugins>+
    +</build>+
    +</profile>+
    +</profiles>+
    +<pluginRepositories>+
    +<pluginRepository>+
    +<id>maven2-repository.dev.java.net</id>+
    +<name>Java.net Repository for Maven</name>+
    +<url>http://download.java.net/maven/2/</url>+
    +<layout>default</layout>+
    +</pluginRepository>+
    +<pluginRepository>+
    +<id>maven-repository.dev.java.net</id>+
    +<name>Java.net Maven 1 Repository (legacy)</name>+
    +<url>http://download.java.net/maven/1</url>+
    +<layout>legacy</layout>+
    +</pluginRepository>+
    +</pluginRepositories>+
    +<repositories>+
    +<repository>+
    +<id>maven2-repository.dev.java.net</id>+
    +<name>Java.net Repository for Maven</name>+
    +<url>http://download.java.net/maven/2/</url>+
    +<layout>default</layout>+
    +</repository>+
    +<repository>+
    +<id>maven-repository.dev.java.net</id>+
    +<name>Java.net Maven 1 Repository (legacy)</name>+
    +<url>http://download.java.net/maven/1</url>+
    +<layout>legacy</layout>+
    +</repository>+
    +<repository>+
    +<id>glassfish-repository</id>+
    +<name>Java.net Repository for Glassfish</name>+
    +<url>http://download.java.net/maven/glassfish</url>+
    +</repository>+
    +</repositories>+
    +</project>+
    Can anyonr contribute?

  • Problem with java beans and jsp on web logic 6.0 sp1

              HI ,
              I am using weblogic6.0 sp1.
              i have problem with jsp and java beans.
              i am using very simple java bean which stores name and email
              from a html form.
              but i am getting following errors:
              Full compiler error(s):
              D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:89:
              cannot resolve symbol
              symbol : class userbn
              location: class jsp_servlet._savename2
              userbn ud = (userbn) //[ /SaveName2.jsp; Line: 7]
              ^
              D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:89:
              cannot resolve symbol
              symbol : class userbn
              location: class jsp_servlet._savename2
              userbn ud = (userbn) //[ /SaveName2.jsp; Line: 7]
              ^
              D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:94:
              cannot resolve symbol
              symbol : class userbn
              location: class jsp_servlet._savename2
              ud = (userbn) java.beans.Beans.instantiate(getClass().getClassLoader(),
              "userbn"); //[ /SaveName2.jsp; Line: 7]
              ^
              3 errors
              in which directory should i place java bean source file(.java file)
              here is my jsp file:
              <%@ page language = "java" contentType = "text/html" %>
              <html>
              <head>
              <title>bean2</title>
              </head>
              <body>
              <jsp:usebean id = "ud" class = "userbn" >
              <jsp:setProperty name = "ud" property = "*" />
              </jsp:usebean>
              <ul>
              <li> name: <jsp:getProperty name = "ud" property = "name" />
              <li> email : <jsp:getProperty name = "ud" property = "email" />
              </ul>
              </body>
              <html>
              here is my bean :
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              import java.io.*;
              public class userbn implements Serializable
                   private String name ;
                   private String email;
                   public void setName(String n)
                        name = n;
                   public void setEmail(String e)
                        email = e;
                   public String getName()
                        return name;
                   public String getEmail()
                        return email;
                   public userbn(){}
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              pls help me.
              Thanks
              sravana.
              

              You realy can do it like Xiang says, but the better way is to use packages. That's
              the way BEA is designed for. If you use packages you can but your bean classes
              in every subfolder beneath Classes. Here for example we have the subfolders test
              and beans:
              You have to declare the package on top of your Bean Source Code:
              package test.beans;
              In your JSP you don't need the import code of Xiang. You only have to refer the
              path of your bean class:
              <jsp:useBean id="testBean" scope="session" class="test.beans.TestBean" />
              There are some other AppServers that only can deploy Java Beans in packages. So
              if you use packages you are always on the right side.
              ciao bernd
              "sravana" <[email protected]> wrote:
              >
              >Thank you very much Xiang Rao, It worked fine.
              >Thanks again
              >sravana.
              >
              >"Xiang Rao" <[email protected]> wrote:
              >>
              >><%@ page import="userbn" language = "java" contentType = "text/html"
              >>%> should
              >>work for you.
              >>
              >>
              >>"sravana" <[email protected]> wrote:
              >>>
              >>>HI ,
              >>>
              >>>I am using weblogic6.0 sp1.
              >>>
              >>>i have problem with jsp and java beans.
              >>>
              >>>i am using very simple java bean which stores name and email
              >>>
              >>>from a html form.
              >>>
              >>>but i am getting following errors:
              >>>
              >>>________________________________________________________________
              >>>
              >>>Full compiler error(s):
              >>>D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:89:
              >>>cannot resolve symbol
              >>>symbol : class userbn
              >>>location: class jsp_servlet._savename2
              >>> userbn ud = (userbn) //[ /SaveName2.jsp; Line: 7]
              >>> ^
              >>>D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:89:
              >>>cannot resolve symbol
              >>>symbol : class userbn
              >>>location: class jsp_servlet._savename2
              >>> userbn ud = (userbn) //[ /SaveName2.jsp; Line: 7]
              >>> ^
              >>>D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:94:
              >>>cannot resolve symbol
              >>>symbol : class userbn
              >>>location: class jsp_servlet._savename2
              >>> ud = (userbn) java.beans.Beans.instantiate(getClass().getClassLoader(),
              >>>"userbn"); //[ /SaveName2.jsp; Line: 7]
              >>> ^
              >>>3 errors
              >>>
              >>>____________________________________________________________
              >>>
              >>>in which directory should i place java bean source file(.java file)
              >>>
              >>>here is my jsp file:
              >>>--------------------------------------------------------
              >>>
              >>><%@ page language = "java" contentType = "text/html" %>
              >>><html>
              >>><head>
              >>><title>bean2</title>
              >>></head>
              >>><body>
              >>><jsp:usebean id = "ud" class = "userbn" >
              >>><jsp:setProperty name = "ud" property = "*" />
              >>></jsp:usebean>
              >>><ul>
              >>><li> name: <jsp:getProperty name = "ud" property = "name" />
              >>><li> email : <jsp:getProperty name = "ud" property = "email" />
              >>></ul>
              >>></body>
              >>><html>
              >>>
              >>>-------------------------------------------------------------
              >>>
              >>>here is my bean :
              >>>
              >>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              >>>
              >>>import java.io.*;
              >>>
              >>>public class userbn implements Serializable
              >>>{
              >>>
              >>>     private String name ;
              >>>
              >>>     private String email;
              >>>
              >>>     public void setName(String n)
              >>>     {
              >>>
              >>>          name = n;
              >>>     }
              >>>
              >>>     public void setEmail(String e)
              >>>     {
              >>>
              >>>          email = e;
              >>>     }
              >>>
              >>>     public String getName()
              >>>     {
              >>>
              >>>          return name;
              >>>     }
              >>>
              >>>     public String getEmail()
              >>>     {
              >>>
              >>>          return email;
              >>>     }
              >>>
              >>>     public userbn(){}
              >>>}
              >>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              >>>
              >>>pls help me.
              >>>Thanks
              >>>sravana.
              >>>
              >>
              >
              

  • Problem with application-variables - CFLOCK?

    Hi,
    i have a problem with my application. It is a multi-user
    application with 100 parallel-users and CFMX 7.
    The problem wich occures is with application variables. These
    are mainly structs wich get filled onApplicationStart(). The
    problem is, that the variables suddenly disappear, they are empty.
    I have read about CFLock and found out, that it is necesseary
    to use cflock. And i found out, that onApplicationStart does
    correct locking automatically. That is where i do not understand
    the problem. The variables get intialized correctly and in further
    they only get read-access. Why can they be corrupted?
    My other question about that is, wheather i need cflock for
    all Read-Access to Application and Session-Variables, even if there
    happens no writing to the variables?
    Best Regards,
    Andreas

    > ?The element of position 2, of dimension 2, of an array
    object used as part of
    > an expression, cannot be found.?
    > The array is in this case the struct.
    Well, OK, that could be a problem. Arrays are not structs:
    they are two
    different things, are not interchangeable, and have
    completely different
    sets of functions to utilise them. You cannot treat a struct
    as an array.
    If CF is claiming your "struct" is an array, then it actually
    *is* an
    array, not a struct.
    What's the line of code which is generating that error?
    I suppose one could get this error if you have an array of
    structs thus:
    myArray
    .key1
    myArray.key2
    (etc)
    and you're trying to reference it with a numeric key rather
    than by key
    name, eg:
    myArray
    [n]
    When n is an integer value, rather than a string (which
    corresponds to the
    name of the key).
    > > Have you trapped the error, done a <cfdump>
    of the application scope and
    > > checked to see if it's the whole lot going awry, or
    just some values?
    > I have not used cfdump for it, because the server had to
    be immediately
    > restarted for our customers. But i think, that it is
    not completely empty,
    > because the index runs to pos2 of dimenstion2.
    So does this not happen in your dev / testing environment?
    > Will
    > onApplicationStart() be called before? Or only if
    onRequestStart() returns true?
    I would ***-u-me that the application one would be called
    before the
    request one. It's pretty easy for you to test this though, I
    should think?
    (Sorry: for reasons beyond the scope of this conversation,
    we're still
    forced to use Application.cfm in our software, so I've only a
    passing
    knowledge of how Application.cfc works).
    > Here is the code from onRequestStart()
    > <cffunction name="onRequestStart"
    returntype="boolean">
    > <cfargument name="Requestedpage" required="yes" />
    > <cfscript>
    > var lFile = "/cargorent/Login.cfm";
    > var iPosn = ListFindNoCase( lFile,
    Arguments.Requestedpage );
    > if( iPosn gt 0 )
    > return true;
    >
    > if( NOT IsDefined( "session.user.Loginname" ) or
    session.user.Loginname eq
    > "" )
    > {
    > WriteOutput( "<p><p> The current user is no
    longer valid, please log in
    > again.</p></p>" & chr(10) & chr(13)
    > WriteOutput( "<script
    language=""javascript"">parent.location = ""
    http://"
    > & CGI.HTTP_HOST &
    "/Login/Login.cfm"";</script>" );
    > return false;
    > }
    >
    > return true;
    > </cfscript>
    > </cffunction>
    One thing I will say here is that I really think you should
    be separating
    your processing from your display. A function should do
    processing. it
    should pass that processing back to a CFM template which
    should handle
    whatever needs to be displayed on the browser. Although
    that's nowt to do
    with your current issue.
    Adam

  • Problem with Sessions in JSP

    Hi,
    I am working on a JSP based website, where I am facing problem with sessions. The user is asked to login by providing her id and password. If found correct, a bean is created and populated with all her details and placed in session scope. I plan to use the information stored in the bean on other related pages until she logs out.
    <jsp:useBean id="validUser" scope="session" class="UserBean" >
    <c:set target="${validUser}" property="userId" value="${fn:trim(dbValues.UserId)}" />
    <c:set target="${validUser}" property="userName" value="${fn:trim(dbValues.UserName)}" />
    </jsp:useBean>
    <c:redirect url="userHome.jsp" /> The user is presented her homepage - 'userHome.jsp', where she can find various links, like 'Update Profile', 'Pay Registration Fees', 'Book Room' etc. The information stored in the bean is available on 'userHome.jsp'page.
    <A HREF='userHome.jsp'>Home</A>
    <A HREF='editPersonal.jsp'>Update Profile</A>
    <A HREF='registrationFee.jsp'>Pay Registration Fees</A>
    <A HREF='bookRoom.jsp'>Book Room</A>
    <A HREF='logout.jsp'>Logout</A> The problems are:
    1. Whenever user clicks on any of the above mentioned links and moves to any page, the bean comes out as null.
    <%-- Verify that the user is logged in --%>
    <c:if test="${validUser == null}">
    <jsp:forward page="loginForm.jsp">
    <jsp:param name="origURL" value="${pageContext.request.requestURL}" />
    <jsp:param name="errorMsg" value="You must be logged in to access this site." />
    </jsp:forward>
    </c:if> 2. The URL shows an additional jsessionid, which my client doesn't want to see.
    3. On every click on any link, the value of this jsessionid changes.
    What I presume, when I am clicking on different links, my session changes, and so I am seeing a different jsessionid. And since session is changing, therefore the bean is not available in a different session.
    All this works fine with localhost, problem comes into picture, when I upload my pages to the server.
    Puzzled, can anyone help, where am I going wrong? Let me add here, I am new to JSP and hence don't have much resources with me.

    There are several ways sessions can be exchanged between the browser and the server in a j2ee web application.
    1. The default is through cookies. However when the client does not accept cookies, the server appends the session id to the url.
    2. Some servers also facilitate session information exchange using session id in the url even if the client does accept cookies. This is usually ahieved through a setting in some server configuration file.
    You will have to find out why the server in your application is appending the session id to the url.
    Whatever be the case, the server should be able to look up the session from the incoming request (be it from the session id in the url or a session cookie).
    When session information is exchanged through the JSESSIONID in the url, you should ensure that each and every url that goes to the server has this input parameter. To do that all links and form post urls in your servlet/jsp should be treated with a call to encodeURL().
    For example, in a jsp
       <a href = "<%=response.encodeURL("/nextJsp.jsp")%>">Click here </a>
    or
       <form action = "<%=response.encodeURL("/nextJsp.jsp")%>">
       </form>etc.
    ram.

  • Problem with Javascript in JSP

    Hi Guys,
    I have this problem with my JSP page. I am using a javascript function
    which calls a function within a bean. The problem that I have is that I get an error when trying to call the following function :
    function refDataTypes_onchange()
    Vector empNames = DBQuery.getResult();
    I get a runtime error at the line Vector empNames = DBQuery.getResult;
    Any ideas would be much appreciated.
    Below is the whole code:
    Thanks in advance
    FRank
    <%@ page contentType="text/html;charset=WINDOWS-1252"%>
    <%@ page import="java.util.*, java.lang.*" %>
    <%-- Declare the java bean for the countries to be queried --%>
    <jsp:useBean id="DBQuery" class="DBQuery" scope="page" />
    <%-- Bean property searchCondition is not set to query countries --%>
    <jsp:setProperty name="DBQuery" property="searchCondition" />
    <%
    Vector empNames = DBQuery.getResult();
    %>
    <HTML>
    <BODY BGCOLOR="GREY">
    <SCRIPT LANGUAGE="JavaScript1.1">
    function refDataTypes_onchange()
    Vector empNames = DBQuery.getResult();
    </SCRIPT>
    <FORM NAME = form1>
    Please enter in the following details
    <p>
    Reference Type :::====
    <select name="refDataTypes" onchange="refDataTypes_onchange()">
    <option value ="1"></option>
    <% for(Enumeration enum = empNames.elements();enum.hasMoreElements();)
    String nextEmpName = (String)enum.nextElement();
    %>
    <option value =<%=nextEmpName%>><%=nextEmpName%></option>
    <%
    %>
    </select>
    <BR>
    <BR>
    Emp No
    <INPUT TYPE="text" NAME=txtAge >
    <BR>
    <BR>
    <INPUT TYPE="button" VALUE="Check Details" NAME=butCheckForm >
    </FORM>
    </BODY>
    </HTML>

    Thanks dimadoo
    I need my JSP to do the following :
    When a user selects a option from a select list. There is a textfield which I want to populate based on the option that thas been selected from the list.
    I tried the following :
    <% Vector empNames = DBQuery.getResult(); %>
    and it does not even go into the bean.
    Will this work if I refresh the page?

  • Problem with binding in h:dataTable

    Hi
    I have a problem with h:dataTable, where the table rows are bound to objects (Bean$Line) nested within a backing bean (Bean).
    JSP:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <html>
      <f:view>
        <head>
          <link href="styles.css" rel="stylesheet" type="text/css"/>
          <title>Sandbox</title>
        </head>
        <body>
          <h:form>
            <h:dataTable value="#{bean.lines}" var="line">
              <h:column>
                <h:outputText value="#{line.id}"/>
              </h:column>
              <h:column>
                <!-- using value = line.lineSelected here works (assuming boolean property Line.lineSelected) --/>
                <h:selectBooleanCheckbox binding="#{line.lineSelected}"/>
              </h:column>
            </h:dataTable>
          </h:form>
        </body>
      </f:view>
    </html>Bean:
    package com.test;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.component.UISelectBoolean;
    public final class Bean {
      private final List<Line> lines;
      public Bean() {
        lines = new ArrayList<Line>();
        lines.add(new Line("one"));
        lines.add(new Line("two"));
        lines.add(new Line("three"));
      public List<Line> getLines() {
        return lines;
       * Nested class in order to access containing class
       * properties etc.
      public static class Line {
        //private boolean lineSelected = false;
        private UISelectBoolean lineSelected;
        private String id;
        public Line(String id) {
          this.id = id;
        /*public boolean isLineSelected() {
          return lineSelected;
        public void setLineSelected(boolean lineSelected) {
          this.lineSelected = lineSelected;
        public UISelectBoolean getLineSelected() {
          return lineSelected;
        public void setLineSelected(UISelectBoolean lineSelected) {
          this.lineSelected = lineSelected;
        public String getId() {
          return id;
        public void setId(String id) {
          this.id = id;
      } // Line
    }The setup works when I use value="#{line.lineSelected}" (assuming the property is defined as boolean in Bean$Line) but as soon as I use a binding, I get the following exception:
    com.sun.rave.web.ui.appbase.ApplicationException: javax.servlet.ServletException: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'line' resolved to null
    at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:594)
    at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:325)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
    faces_config:
    <faces-config version="1.2"
                  xmlns="http://java.sun.com/xml/ns/javaee"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
      <application>
        <locale-config>
          <default-locale>en_GB</default-locale>
          <supported-locale>en_GB</supported-locale>     
        </locale-config>
      </application>
      <managed-bean>
        <managed-bean-name>bean</managed-bean-name>
        <managed-bean-class>com.test.Bean</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>
    </faces-config>What am I missing here?
    Help much appreciated
    Lance

    Guys
    Thanks a lot, both of your replies are immensely instructive. Maybe a little background on what I'm trying to do. In the table, I have header rows with dependent line rows. When a check box is ticked in the header, I want the corresponding check boxes in the dependent lines to be checked automatically (in slave fashion and ideally without using JavaScript). My idea was to update the bound components (for the lines) from within the Bean (in response to change on the header). However, given there's only a single component for each column in the table, this of course doesn't make sense.
    I'm trying to get to the typical MVC workflow of a) user updates a View component, b) Controller detects the change and updates the Model, c) The Model fires a property change event, which the View detects and updates appropriately. What's the way to achieve this in JSF (by design)?
    Here's a simple fragment (which does not work):
            <h:dataTable value="#{bean.lines}" var="line">
              <h:column>
                <h:outputText value="#{line.id}"/>
              </h:column>
              <h:column>
                <!-- (1) This is the master and (2) should refresh on update here --/>
                <h:selectBooleanCheckbox onchange="submit()" value="#{line.lineSelected}"/>
              </h:column>
              <h:column>
                <!-- (2) This is the slave and I want this to update in response to a change of (1) above --/>
                <h:selectBooleanCheckbox value="#{line.slaveSelected}"/>
              </h:column>
            </h:dataTable>In the setter method for lineSelected, I'm setting slaveSelected to the new value but the View is not refreshing based on this. How do I get the View to update (each dependent line) based on the new values for slaveSelected?
    Thanks again
    Lance

  • Problem with f:setPropertyActionListener and f:ajax

    Hello,
    This is my first post to this forums.
    I am having some problems with the following scenario in JSF2: I have a h:dataTable populated with some items (ex. folders) and for each item I have a h:commandLink that is ajax enabled and has a f:setPropertyActionListener as a child that sets the selected folder on the backing bean and also re-renders another h:dataTable with a different kind of items (files). This part is working as expected. I want the second table to behave as the first one - when I click a h:commandLink I want to perform some action on the backing bean and to re-render a part of the page. The problem is that the action listener is not invoked, nor is the f:setPropertyActionListener.
    This is the code:
    <h:form id="form">
        <h:dataTable var="folder" value="#{bean.folders}">
            <h:column>
                <h:commandLink actionListener="#{bean.go}" value="Select">
                    <f:attribute name="folder" value="#{folder}"/>
                    <f:setPropertyActionListener value="#{folder}" target="#{bean.folder}"/>
                    <f:ajax execute="@this" render=":form:imageTable"/>
                </h:commandLink>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="Folder"/>
                </f:facet>
                <h:outputText value="#{folder}"/>
            </h:column>
        </h:dataTable>
        <h:panelGroup id="imageTable">
            <h:dataTable value="#{bean.files}" var="image" rendered="#{bean.folder != null}">
                <h:column>
                    <h:commandLink actionListener="#{bean.action}">
                         <f:ajax execute="@this" render=":form:pictureDialog"/>
                        <h:graphicImage value="#{image}" width="200"/>
                        <f:setPropertyActionListener value="#{image}" target="#{bean.image}"/>
                        <f:attribute name="image" value="#{image}"/>
                    </h:commandLink>
                </h:column>
            </h:dataTable>
        </h:panelGroup>
        <p:dialog widgetVar="dialog">
            <p:outputPanel id="pictureDialog">
                <h:graphicImage value="#{bean.image}"/>
            </p:outputPanel>
        </p:dialog>
    </h:form>Any ideas on how can I achieve this and why it is not working properly in the current form?
    Thank you
    Florin

    The solution seams to be declaring the bean as having view scope.

  • Problem with checkbox on table component

    Hello i am having a problem with checkbox in table component
    i am developing something like a shopping cart app and i have a checkbox in my table component , i want users to select items from the checkbox to add to thier cart, They can select the items from cartegory combobox , my problem is when they select the items from the checkbox if they select another category the alread selected once do not display in my collection opbject please how can i maintain the state of the already selected items in my collection object

    Hi,
    Please go through the tutorial "Understanding scope and managed beans". This is available at:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/scopes.html
    The details of the selected items need to be stored in an object that is in session scope.
    Hope this helps
    Cheers
    Girish

  • Urgent - problem with multiple users on same page

    Hi all,
    I have got an big problem with my app:
    when several users are using the same page, the action launched by USER_A affects the page displayed and used for USER_B.
    If there is only one user using the page, there is no problem at all.
    The webapp is deployed on Tomcat or JBoss and the problem remains the same on both.
    Thank you for your help.
    PS: I am not accurate because I don't know what to paste here.

    In fact, all my page beans are in REQUEST scope...
    The only bean in Application scope is the standard applicationBean created by Creator itself.
    We use one Bean in session scope which contains another class.
    I will try to explain our common process:
    - when logging into the app, the session Bean stores user data (rights for using app,...);
    - when navigating in the app, the user can search data, modify them and create one (if he has the right to do it);
    - to define the screen, we use a lot the beforeRenderResponse();
    - when viewing a data, the user can choose to modify it, so depending on the action, the page is in "CONSULT" mode or "MODIFY" mode. In the second one, he can display new gridPanel (as a subform) to populate datatable.
    The problem is obvious while using this grid: my grid can disappear if someone else has validated his form before me and if my page goes trough the beforeRender of my page.
    It is not really clear. If needed, i can give access to our application to show the problem (and msn adress too to talk about it).
    Thank you

  • Problem with Amanda

    Hi All, i have a problem with the Amanda under soalris 10, the planner is not able to get an estimate, se below:
    AMANDA bex> /usr/local/libexec/planner daily
    planner: pid 3833 executable /usr/local/libexec/planner version 2.5.1
    planner: build: VERSION="Amanda-2.5.1"
    planner:        BUILT_DATE="Thu Sep 14 22:40:36 CEST 2006"
    planner:        BUILT_MACH="SunOS bex 5.10 Generic_118855-14 i86pc i386 i86pc"
    planner:        CC="gcc"
    planner:        CONFIGURE_COMMAND="'./configure' '--with-group=amanda' '--with-user=amanda' '--datadir=/opt/local/share' '--sysconfdir=/opt/local/etc' '--sharedstatedir=/opt/local/com' '--localstatedir=/opt/local/var'"
    planner: paths: bindir="/usr/local/bin" sbindir="/usr/local/sbin"
    planner:        libexecdir="/usr/local/libexec" mandir="/usr/local/man"
    planner:        AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda"
    planner:        CONFIG_DIR="/opt/local/etc/amanda" DEV_PREFIX="/dev/dsk/"
    planner:        RDEV_PREFIX="/dev/rdsk/" DUMP="/usr/sbin/ufsdump"
    planner:        RESTORE="/usr/sbin/ufsrestore" VDUMP=UNDEF VRESTORE=UNDEF
    planner:        XFSDUMP=UNDEF XFSRESTORE=UNDEF VXDUMP=UNDEF VXRESTORE=UNDEF
    planner:        SAMBA_CLIENT=UNDEF GNUTAR=UNDEF
    planner:        COMPRESS_PATH="/usr/bin/gzip"
    planner:        UNCOMPRESS_PATH="/usr/bin/gzip" LPRCMD="/usr/bin/lp"
    planner:        MAILER="/usr/bin/mailx"
    planner:        listed_incr_dir="/opt/local/var/amanda/gnutar-lists"
    planner: defs:  DEFAULT_SERVER="bex" DEFAULT_CONFIG="DailySet1"
    planner:        DEFAULT_TAPE_SERVER="bex" HAVE_MMAP HAVE_SYSVSHM
    planner:        LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
    planner:        AMANDA_DEBUG_DAYS=4 BSD_SECURITY RSH_SECURITY USE_AMANDAHOSTS
    planner:        CLIENT_LOGIN="amanda" FORCE_USERID HAVE_GZIP
    planner:        COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
    planner:        COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
    READING CONF FILES...
    DATE 20060919082701
    planner: timestamp 20060919082701
    planner: time 0.233: startup took 0.233 secs
    SENDING FLUSHES...
    ENDFLUSH
    ENDFLUSH
    SETTING UP FOR ESTIMATES...
    planner: time 0.234: setting up estimates for bex.martel-consulting.ch:d0
    bex.martel-consulting.ch:d0 overdue 13410 days for level 0
    setup_estimate: bex.martel-consulting.ch:d0: command 0, options: none    last_level -1 next_level0 -13410 level_days 0    getting estimates 0 (-2) -1 (-2) -1 (-2)
    planner: time 0.236: setting up estimates took 0.001 secs
    GETTING ESTIMATES...
    planner: time 0.420: got result for host bex.martel-consulting.ch disk d0: 0 -> -2K, -1 -> -2K, -1 -> -2K
    error result for host bex.martel-consulting.ch disk d0: missing estimate
    planner: time 0.421: getting estimates took 0.184 secs
    FAILED QUEUE:
      0: bex.martel-consulting.ch d0
    DONE QUEUE: empty
    ANALYZING ESTIMATES...
    planner: FAILED bex.martel-consulting.ch d0 20060919082701 0 [missing result for d0 in bex.martel-consulting.ch response]
    INITIAL SCHEDULE (size 2064):
    DELAYING DUMPS IF NEEDED, total_size 2064, tape length 30793728 mark 1000
      delay: Total size now 2064.
    PROMOTING DUMPS IF NEEDED, total_lev0 0, balanced_size 0...
    planner: time 0.421: analysis took 0.000 secs
    GENERATING SCHEDULE:
    I have a .amandahosts:
    AMANDA bex> ls -l .amandahosts
    -rw-------   1 amanda   amanda        11 Sep 16 22:25 .amandahosts
    AMANDA bex> more .amandahosts
    bex amanda
    the amanda service is defined
    bex> grep amanda /etc/services
    amanda          10080/udp
    amandaidx       10082/tcp
    bex> inetadm | grep amanda
    enabled   online         svc:/network/amandaidx/tcp:default
    enabled   online         svc:/network/amanda/udp:default
    bex> inetadm -l svc:/network/amanda/udp:default
    SCOPE    NAME=VALUE
             name="amanda"
             endpoint_type="dgram"
             proto="udp"
             isrpc=FALSE
             wait=TRUE
             exec="/usr/local/libexec/amandad"
             user="amanda"
    default  bind_addr=""
    default  bind_fail_max=-1
    default  bind_fail_interval=-1
    default  max_con_rate=-1
    default  max_copies=-1
    default  con_rate_offline=-1
    default  failrate_cnt=40
    default  failrate_interval=60
    default  inherit_env=TRUE
    default  tcp_trace=FALSE
    default  tcp_wrappers=FALSE
    bex>
    my config is
    bex> cat /opt/local/etc/amanda/daily/amanda.conf
    # amanda.conf - sample Amanda configuration file. See amanda.conf(5) for
    # details
    org      "BackupService"        # your organization name for reports
    mailto   "[email protected]"    # space separated list of operators at your site
    dumpuser "amanda"       # the user to run dumps under
    inparallel 4            # maximum dumpers that will run in parallel (max 63)
                            # this maximum can be increased at compile-time,
                            # modifying MAX_DUMPERS in server-src/driverio.h
    dumporder "sssS"        # specify the priority order of each dumper
                            #   s -> smallest size
                            #   S -> biggest size
                            #   t -> smallest time
                            #   T -> biggest time
                            #   b -> smallest bandwitdh
                            #   B -> biggest bandwitdh
                            # try "BTBTBTBTBTBT" if you are not holding
                            # disk constrained
    taperalgo first         # The algorithm used to choose which dump image to send
                            # to the taper.
                            # Possible values:
                            # [first|firstfit|largest|largestfit|smallest|last]
                            # Default: first.
                            # first         First in - first out.
                            # firstfit      The first dump image that will fit
                            #               on the current tape.
                            # largest       The largest dump image.
                            # largestfit    The largest dump image that will fit
                            #               on the current tape.
                            # smallest      The smallest dump image.
                            # last          Last in - first out.
    displayunit "k"         # Possible values: "k|m|g|t"
                            # Default: k.
                            # The unit used to print many numbers.
                            # k=kilo, m=mega, g=giga, t=tera
    netusage  600 Kbps      # maximum net bandwidth for Amanda, in KB per sec
    dumpcycle 4 weeks       # the number of days in the normal dump cycle
    runspercycle 20         # the number of amdump runs in dumpcycle days
                            # (4 weeks * 5 amdump runs per week -- just weekdays)
    #tapecycle 25 tapes     # the number of tapes in rotation
                            # 4 weeks (dumpcycle) times 5 tapes per week (just
                            # the weekdays) plus a few to handle errors that
                            # need amflush and so we do not overwrite the full
                            # backups performed at the beginning of the previous
                            # cycle
    #* vtapes
    define tapetype HARD-DISK {
    comment "Dump onto hard disk"
    length 30072 mbytes # specified in mbytes to get the exact size of 3GB
    tapecycle 20
    tapetype HARD-DISK
    tpchanger "chg-disk"
    changerfile "/opt/local/etc/amanda/daily/changer"
    tapedev "file:/backupdisk1/daily"
    bumpsize 20 Mb          # minimum savings (threshold) to bump level 1 -> 2
    bumppercent 20          # minimum savings (threshold) to bump level 1 -> 2
    bumpdays 1              # minimum days at each level
    bumpmult 4              # threshold = bumpsize * bumpmult^(level-1)
    etimeout 300            # number of seconds per filesystem for estimates.
    dtimeout 1800           # number of idle seconds before a dump is aborted.
    ctimeout 30             # maximum number of seconds that amcheck waits
                            # for each client host
    tapebufs 20             # A positive integer telling taper how many
                            # 32k buffers to allocate.  The default is 20 (640k).
    # By default, Amanda can only track at most one run per calendar day. When
    # the usetimestamps option is enabled, however, Amanda can track as many
    # runs as you care to make.
    # WARNING: This option is not backward-compatible. Do not enable it if you
    #          intend to downgrade your server installation to Amanda community
    #          edition 2.5
    usetimestamps yes
    # Specify tape device and/or tape changer.  If you don't have a tape
    # changer, and you don't want to use more than one tape per run of
    # amdump, just comment out the definition of tpchanger.
    # Some tape changers require tapedev to be defined; others will use
    # their own tape device selection mechanism.  Some use a separate tape
    # changer device (changerdev), others will simply ignore this
    # parameter.  Some rely on a configuration file (changerfile) to
    # obtain more information about tape devices, number of slots, etc;
    # others just need to store some data in files, whose names will start
    # with changerfile.
    # At most one changerfile entry must be defined; select the most
    # appropriate one for your configuration.  If you select man-changer,
    # keep the first one; if you decide not to use a tape changer, you may
    # comment them all out.
    runtapes 1                      # number of tapes to be used in a single run of amdump
    ##tpchanger "chg-manual"                # the tape-changer glue script
    ##tapedev ""    # the no-rewind tape device to be used
    rawtapedev "/dev/null"  # the raw device to be used (ftape only)
    #changerfile "/usr/local/etc/amanda/DailySet1/changer"
    #changerfile "/usr/local/etc/amanda/DailySet1/changer-status"
    ##changerfile "/usr/local/etc/amanda/DailySet1/changer.conf"
    changerdev "/dev/null"
    # If you want Amanda to automatically label any non-Amanda tapes it
    # encounters, uncomment the line below. Note that this will ERASE any
    # non-Amanda tapes you may have, and may also ERASE any near-failing tapes.
    # Use with caution.
    ## label_new_tapes "DailySet1-%%%"
    maxdumpsize -1          # Maximum number of bytes the planner will schedule
                            # for a run (default: runtapes * tape_length).
    ##tapetype HP-DAT               # what kind of tape it is (see tapetypes below)
    labelstr "^DailySet1-[0-9][0-9]*$"      # label constraint regex: all tapes must match
    amrecover_do_fsf yes            # amrecover will call amrestore with the
                                    # -f flag for faster positioning of the tape.
    amrecover_check_label yes       # amrecover will call amrestore with the
                                    # -l flag to check the label.
    amrecover_changer ""    # amrecover will use the changer if you restore
                                    # from this device.
                                    # It could be a string like 'changer' and
                                    # amrecover will use your changer if you
                                    # set your tape with 'settape changer'
    # Specify holding disks.  These are used as a temporary staging area for
    # dumps before they are written to tape and are recommended for most sites.
    # The advantages include: tape drive is more likely to operate in streaming
    # mode (which reduces tape and drive wear, reduces total dump time); multiple
    # dumps can be done in parallel (which can dramatically reduce total dump time.
    # The main disadvantage is that dumps on the holding disk need to be flushed
    # (with amflush) to tape after an operating system crash or a tape failure.
    # If no holding disks are specified then all dumps will be written directly
    # to tape.  If a dump is too big to fit on the holding disk than it will be
    # written directly to tape.  If more than one holding disk is specified then
    # they will all be used based on activity and available space.
    holdingdisk hd1 {
        comment "main holding disk"
        directory "/dumps/amanda"   # where the holding disk is
        use -100 Mb                 # how much space can we use on it
                                    # a non-positive value means:
                                    # use all space but that value
        chunksize 1Gb       # size of chunk if you want big dump to be
                            # dumped on multiple files on holding disks
                            #  N Kb/Mb/Gb split images in chunks of size N
                            #             The maximum value should be
                            #             (MAX_FILE_SIZE - 1Mb)
                            #  0          same as INT_MAX bytes
    #holdingdisk hd2 {
    #    directory "/dumps2/amanda"
    #    use 1000 Mb
    #holdingdisk hd3 {
    #    directory "/mnt/disk4"
    #    use 1000 Mb
    # If amanda cannot find a tape on which to store backups, it will run
    # as many backups as it can to the holding disks.  In order to save
    # space for unattended backups, by default, amanda will only perform
    # incremental backups in this case, i.e., it will reserve 100% of the
    # holding disk space for the so-called degraded mode backups.
    # However, if you specify a different value for the `reserve'
    # parameter, amanda will not degrade backups if they will fit in the
    # non-reserved portion of the holding disk.
    # reserve 30 # percent
    # This means save at least 30% of the holding disk space for degraded
    # mode backups.
    autoflush no #
    # if autoflush is set to yes, then amdump will schedule all dump on
    # holding disks to be flush to tape during the run.
    # The format for a ColumnSpec is a ',' seperated list of triples.
    # Each triple consists of
    #   + the name of the column (as in ColumnNameStrings)
    #   + prefix before the column
    #   + the width of the column, if set to -1 it will be recalculated
    #     to the maximum length of a line to print.
    # Example:
    #       "Disk=1:17,HostName=1:10,OutKB=1:7"
    # or
    #       "Disk=1:-1,HostName=1:10,OutKB=1:7"
    # You need only specify those colums that should be changed from
    # the default. If nothing is specified in the configfile, the
    # above compiled in values will be in effect, resulting in an
    # output as it was all the time.
    # The names of the colums are:
    # HostName, Disk, Level, OrigKB, OutKB, Compress, DumpTime, DumpRate,
    # TapeTime and TapeRate.
    #                                                       ElB, 1999-02-24.
    # columnspec "Disk=1:18,HostName=0:10,OutKB=1:7"
    # Amanda needs a few Mb of diskspace for the log and debug files,
    # as well as a database.  This stuff can grow large, so the conf directory
    # isn't usually appropriate.  Some sites use /usr/local/var and some /usr/adm.
    # Create an amanda directory under there.  You need a separate infofile and
    # logdir for each configuration, so create subdirectories for each conf and
    # put the files there.  Specify the locations below.
    # Note that, although the keyword below is infofile, it is only so for
    # historic reasons, since now it is supposed to be a directory (unless
    # you have selected some database format other than the `text' default)
    infofile "/opt/local/etc/amanda/daily/curinfo"  # database DIRECTORY
    logdir   "/opt/local/etc/amanda/daily"          # log directory
    indexdir "/opt/local/etc/amanda/daily/index"            # index directory
    #tapelist "/usr/local/etc/amanda/DailySet1/tapelist"    # list of used tapes
    # tapelist is stored, by default, in the directory that contains amanda.conf
    # tapetypes
    # Define the type of tape you use here, and use it in "tapetype"
    # above.  Some typical types of tapes are included here.  The tapetype
    # tells amanda how many MB will fit on the tape, how big the filemarks
    # are, and how fast the tape device is.
    # A filemark is the amount of wasted space every time a tape section
    # ends.  If you run `make tapetype' in tape-src, you'll get a program
    # that generates tapetype entries, but it is slow as hell, use it only
    # if you really must and, if you do, make sure you post the data to
    # the amanda mailing list, so that others can use what you found out
    # by searching the archives.
    # For completeness Amanda should calculate the inter-record gaps too,
    # but it doesn't.  For EXABYTE and DAT tapes this is ok.  Anyone using
    # 9 tracks for amanda and need IRG calculations?  Drop me a note if
    # so.
    # If you want amanda to print postscript paper tape labels
    # add a line after the comment in the tapetype of the form
    #    lbl-templ "/path/to/postscript/template/label.ps"
    # if you want the label to go to a printer other than the default
    # for your system, you can also add a line above for a different
    # printer. (i usually add that line after the dumpuser specification)
    # dumpuser "operator"     # the user to run dumps under
    # printer "mypostscript"  # printer to print paper label on
    # here is an example of my definition for an EXB-8500
    # define tapetype EXB-8500 {
    #     lbl-templ "/usr/local/etc/amanda/config/lbl.exabyte.ps"
    define tapetype QIC-60 {
        comment "Archive Viper"
        length 60 mbytes
        filemark 100 kbytes         # don't know a better value
        speed 100 kbytes            # dito
    define tapetype DEC-DLT2000 {
        comment "DEC Differential Digital Linear Tape 2000"
        length 15000 mbytes
        filemark 8 kbytes
        speed 1250 kbytes
    # [email protected]
    # in amanda-users (Thu Dec 26 01:55:38 MEZ 1996)
    define tapetype DLT {
        comment "DLT tape drives"
        length 20000 mbytes         # 20 Gig tapes
        filemark 2000 kbytes        # I don't know what this means
        speed 1536 kbytes           # 1.5 Mb/s
    define tapetype SURESTORE-1200E {
        comment "HP AutoLoader"
        length 3900 mbytes
        filemark 100 kbytes
        speed 500 kbytes
    define tapetype EXB-8500 {
        comment "Exabyte EXB-8500 drive on decent machine"
        length 4200 mbytes
        filemark 48 kbytes
        speed 474 kbytes
    define tapetype EXB-8200 {
        comment "Exabyte EXB-8200 drive on decent machine"
        length 2200 mbytes
        filemark 2130 kbytes
        speed 240 kbytes
    define tapetype HP-DAT {
        comment "DAT tape drives"
        # data provided by Rob Browning <[email protected]>
        length 1930 mbytes
        filemark 111 kbytes
        speed 468 kbytes
    define tapetype DAT {
        comment "DAT tape drives"
        length 1000 mbytes          # these numbers are not accurate
        filemark 100 kbytes         # but you get the idea
        speed 100 kbytes
    define tapetype MIMSY-MEGATAPE {
        comment "Megatape (Exabyte based) drive through Emulex on Vax 8600"
        length 2200 mbytes
        filemark 2130 kbytes
        speed 170 kbytes            # limited by the Emulex bus interface, ugh
    # dumptypes
    # These are referred to by the disklist file.  The dumptype specifies
    # certain parameters for dumping including:
    #   auth        - authentication scheme to use between server and client.
    #                 Valid values are "bsd", "krb4", "krb5" and "ssh".
    #                 Default: [auth bsd]
    #   comment     - just a comment string
    #   comprate    - set default compression rate.  Should be followed by one or
    #                 two numbers, optionally separated by a comma.  The 1st is
    #                 the full compression rate; the 2nd is the incremental rate.
    #                 If the second is omitted, it is assumed equal to the first.
    #                 The numbers represent the amount of the original file the
    #                 compressed file is expected to take up.
    #                 Default: [comprate 0.50, 0.50]
    #   compress    - specify compression of the backed up data.  Valid values are:
    #                 "none"        - don't compress the dump output.
    #                 "client best" - compress on the client using the best (and
    #                                 probably slowest) algorithm.
    #                 "client fast" - compress on the client using fast algorithm.
    #                 "client custom" - compress using your custom client compression program.
    #                                   use client_custom_compress "PROG" to specify
    #                                   the custom compression program.
    #                                   PROG must not contain white space.
    #                 "server best" - compress on the tape host using the best (and
    #                                 probably slowest) algorithm.
    #                 "server fast" - compress on the tape host using a fast
    #                                 algorithm.  This may be useful when a fast
    #                                 tape host is backing up slow clients.
    #                 "server custom" - compress using your server custom compression program.
    #                                   use server_custom_compress "PROG" to specify
    #                                   the custom compression program.
    #                                   PROG must not contain white space.
    #                 Default: [compress client fast]
    #   dumpcycle   - set the number of days in the dump cycle, ie, set how often a
    #                 full dump should be performed.  Default: from DUMPCYCLE above
    #   estimate      Determine the way AMANDA does it's estimate.
    #                 "client"      - Use the same program as the dumping program,
    #                               this is the most accurate way to do estimates,
    #                               but it can take a long time.
    #                 "calcsize"    - Use a faster program to do estimates, but the
    #                               result is less accurate.
    #                 "server"      - Use only statistics from the previous run to
    #                               give an estimate,
    #                               it takes only a few seconds but the result is not
    #                               accurate if your disk usage changes from day to day.
    #                 Default: [client]
    #   encrypt  - specify encryption of the backed up data. Valid values are:
    #                 "none"   - don't encrypt the dump output.
    #                 "client" - encrypt on the client using the program specified by
    #                            client_encrypt "PROG".
    #                            Use client_decrypt_option to specify the decrypt-
    #                            parameter, default is "-d".
    #                            PROG and decrypt-parameter must not contain white space.
    #                 "server" - encrypt on the server using the program specified by
    #                            server_encrypt "PROG".
    #                            Use server_decrypt_option to specify the decrypt-
    #                            parameter, default is "-d".
    #                            PROG and decrypt-parameter must not contain white space.
    #                 Default: [none]
    #   exclude     - specify files and directories to be excluded from the dump.
    #                 Useful with gnutar only; silently ignored by dump and samba.
    #                 Valid values are:
    #                 "pattern"       - a shell glob pattern defining which files
    #                                   to exclude.
    #                                   gnutar gets --exclude="pattern"
    #                 list "filename" - a file (on the client!) containing patterns
    #                                   re's (1 per line) defining which files to
    #                                   exclude.
    #                                   gnutar gets --exclude-from="filename"
    #                 Note that the `full pathname' of a file within its
    #                 filesystem starts with `./', because of the way amanda runs
    #                 gnutar: `tar -C $mountpoint -cf - --lots-of-options .' (note
    #                 the final dot!)  Thus, if you're backing up `/usr' with a
    #                 diskfile entry like ``host /usr gnutar-root', but you don't
    #                 want to backup /usr/tmp, your exclude list should contain
    #                 the pattern `./tmp', as this is relative to the `/usr' above.
    #                 Please refer to the man-page of gnutar for more information.
    #                 If a relative pathname is specified as the exclude list,
    #                 it is searched from within the directory that is
    #                 going to be backed up.
    #                 Default: include all files
    #   holdingdisk - should the holding disk be used for this dump.  Useful for
    #                 dumping the holding disk itself.  Default: [holdingdisk auto]
    #                 "never"    - Never use the holding disk.
    #                 "auto"     - Use the holding disk if possible.
    #                 "required" - Always use the holding disk.
    #   ignore      - do not back this filesystem up.  Useful for sharing a single
    #                 disklist in several configurations.
    #   index       - keep an index of the files backed up.  Default: [index no]
    #   kencrypt    - encrypt the data stream between the client and server.
    #                 Default: [kencrypt no]
    #   maxdumps    - max number of concurrent dumps to run on the client.
    #                 Default: [maxdumps 1]
    #   maxpromoteday - max number of day for a promotion, set it 0 if you don't
    #                 want promotion, set it to 1 or 2 if your disk get
    #                 overpromoted.
    #                 Default: [10000]
    #   priority    - priority level of the dump.  Valid levels are "low", "medium"
    #                 or "high".  These are really only used when Amanda has no
    #                 tape to write to because of some error.  In that "degraded
    #                 mode", as many incrementals as will fit on the holding disk
    #                 are done, higher priority first, to insure the important
    #                 disks are at least dumped.  Default: [priority medium]
    #   program     - specify the dump system to use.  Valid values are "DUMP",
    #                 or "GNUTAR".  Default: [program "DUMP"].
    #   record      - record the backup in the time-stamp-database of the backup
    #                 program (e.g. /etc/dumpdates for DUMP or
    #                 /usr/local/var/amanda/gnutar-lists for GNUTAR.).
    #                 Default: [record yes]
    #   skip-full   - skip the disk when a level 0 is due, to allow full backups
    #                 outside Amanda, eg when the machine is in single-user mode.
    #   skip-incr   - skip the disk when the level 0 is NOT due.  This is used in
    #                 archive configurations, where only full dumps are done and
    #                 the tapes saved.
    #   starttime   - delay the start of the dump?  Default: no delay
    #   strategy    - set the dump strategy.  Valid strategies are currently:
    #                 "standard" - the standard one.
    #                 "nofull"   - do level 1 dumps every time.  This can be used,
    #                              for example, for small root filesystems that
    #                              only change slightly relative to a site-wide
    #                              prototype.  Amanda then backs up just the
    #                              changes.
    #                 "noinc"    - do level 0 dumps every time.
    #                 "skip"     - skip all dumps.  Useful for sharing a single
    #                              disklist in several configurations.
    #                 "incronly" - do only incremental dumps. This is similar
    #                              to strategy 'nofull', but will increase
    #                              the dump level as usual. Full dumps will
    #                              only be performed when an 'amadmin force'
    #                              has been issued
    #                 Default: [strategy standard]
    # tape_splitsize - (optional) split dump file into pieces of a specified size.
    #                 This allows dumps to be spread across multiple tapes, and can
    #                 potentially make more efficient use of tape space.  Note that
    #                 if this value is too large (more than half the size of the
    #                 average dump being split), substantial tape space can be
    #                 wasted.  If too small, large dumps will be split into
    #                 innumerable tiny dumpfiles, adding to restoration complexity.
    #                 A good rule of thumb, usually, is 1/10 of the size of your
    #                 tape.  Default: [disabled]
    # split_diskbuffer - (optional) When dumping a split dump  in  PORT-WRITE
    #                 mode (usually meaning "no holding disk"), buffer the split
    #                 chunks to a file in the directory specified by this option.
    #                 Default: [none]
    # fallback_splitsize - (optional) When dumping a split dump  in  PORT-WRITE
    #                 mode, if no split_diskbuffer is specified (or if we somehow
    #                 fail to use our split_diskbuffer), we must buffer split
    #                 chunks in memory.  This specifies the maximum size split
    #                 chunks can be in this scenario, and thus the maximum amount
    #                 of memory consumed for in-memory splitting.  Default: [10m]
    # Note that you may specify previously defined dumptypes as a shorthand way of
    # defining parameters.
    define dumptype global {
        comment "Global definitions"
        # This is quite useful for setting global parameters, so you don't have
        # to type them everywhere.  All dumptype definitions in this sample file
        # do include these definitions, either directly or indirectly.
        # There's nothing special about the name `global'; if you create any
        # dumptype that does not contain the word `global' or the name of any
        # other dumptype that contains it, these definitions won't apply.
        # Note that these definitions may be overridden in other
        # dumptypes, if the redefinitions appear *after* the `global'
        # dumptype name.
        # You may want to use this for globally enabling or disabling
        # indexing, recording, etc.  Some examples:
        # index yes
        # record no
        # split_diskbuffer "/raid/amanda"
        # fallback_splitsize 64m
    define dumptype always-full {
        global
        comment "Full dump of this filesystem always"
        compress none
        priority high
        dumpcycle 0
    # Dumptypes for gnutar
    define dumptype root-tar {
        global
        program "GNUTAR"
        comment "                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

    Auntbeee4 wrote:
    I just bought the LG ALLY and would love to have the Accuweather widget on the phone. My problem is while my phone shows the correct time, (I am on Eastern here, but about 15 miles away in Illinois they are on Central) the Accuweather Widget is off by an hour showing Central time. I tried to sync it, but I can't find it in my list of sync-able programs. If someone can help it would be greatly appreciated. It's frustrating both me and a co-worker with the same phone/problem.
    Thank you!
    Amanda
    I have the same issue, Amanda. The weather widget that comes with the Ally was poorly written. The time issue is bad enough, but it takes up more screen space than is visible. Try it, if you touch and hold on the space below the widget, it will select it. This also means you can't add widgets or icons directly below it, resulting in a great deal of wasted space. 

Maybe you are looking for

  • Why can't I update to itunes 11.1 running OS 10.5.8? Having updated my iphone 4s to ios7 I can no longer synch my phone.

    Can anyone help with this?

  • Web site critique  please

    got a new index page up but would love a litle advise -- no need to pull punches -- have a small question though -- when i reduce my browser size things fly out -- any ideas on how to fix index page www.healthhokkaido.com many thanks to anyone who ta

  • How to re-instantiate my movie/swf

    hi, here's my scenario i have set of buttons that plays different media types, 4 buttons, 1 for video and 1 for audio 1 for audio podcast and video podcast. and whenever i click on a button it should play an in my player(flvplayback component).and th

  • Safari problem in 64-bit mode

    I have a Dreambox decoder and watch TV streamed to my computer from that. When I have Safari in 32-bit mode it's working fine, but when switching to 64-bit modee the new popup window for the stream comes up but blank (no video stream). I could guess

  • Resolution changed on PDF

    I am using Adobe reader 9 on an XP machine.  Today the resolution changed on my PDF's.  I am not really sure why and what setting could have been adjusted.  Someone other than myself has used this machine in the last 48 hours and I'm thinking they ad