Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: General Availability of Spring Web Flow 2 Announced

  1. #11
    Join Date
    Jan 2006
    Location
    Southampton, UK
    Posts
    117

    Default

    That ping is what I'd expect, so I'm not sure what the problem is. If you're planning on spending any more time on trying to make this work, I'd definitely thing about checking out the latest source.

    Code:
    svn co https://springframework.svn.sourceforge.net/svnroot/springframework/spring-webflow/trunk
    We've stopped shipping a zip file with the JARs in it because it was getting to be about 60MB. That and this has worked every time up until now.
    Ben Hale
    tc Server Team Core Developer
    http://www.springsource.com/products/tcserver

  2. #12
    Join Date
    Sep 2006
    Location
    Work in New York City
    Posts
    127

    Default

    Maven is working perfectly, which makes me wonder if there are perhaps more/different properties that need to be set in jets3t.properties of spring-webflow-2.0.1.RELEASE\projects\spring-build\lib\ivy\jets3t.jar

    For Maven, below is the contents of my
    C:\Documents and Settings\B1RXGC0\.m2\settings.xml
    :

    <settings 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/xsd/settings-1.0.0.xsd">

    <localRepository>C:\JavaLibs\apache-maven-2.0.9\rdg_local_repository</localRepository>

    <proxies>
    <proxy>
    <active>true</active>
    <protocol>http</protocol>
    <host>p1web1.censored.censored</host>
    <port>8080</port>
    <nonProxyHosts>172.17.censored.censored|127.0.0.1| localhost</nonProxyHosts>
    </proxy>
    </proxies>

    </settings>
    The reason I know Maven works fine is that I just ran okay the Spring Batch example using maven that is the subject is this article:

    http://java.dzone.com/news/spring-batch-hello-world-1
    Java Developer with all the usual Sun Java certifications.

  3. #13
    Join Date
    Jan 2006
    Location
    Southampton, UK
    Posts
    117

    Default

    Yeah, I wonder if you let it auto-configure the proxy but set s3service.https-only=false to bypass the SSL part.
    Ben Hale
    tc Server Team Core Developer
    http://www.springsource.com/products/tcserver

  4. #14
    Join Date
    Sep 2006
    Location
    Work in New York City
    Posts
    127

    Default

    I tried every combination including that one. I think the next step for me is to install an SVN client and look at the source code.
    Last edited by RobertGloverJr; May 30th, 2008 at 10:18 PM.
    Java Developer with all the usual Sun Java certifications.

  5. #15
    Join Date
    Sep 2006
    Location
    Work in New York City
    Posts
    127

    Default

    I've settled on subclipse as my subversion client, and pointed it to the Spring Projects subversion site at https://springframework.svn.sourceforge.net/svnroot/springframework

    And now, as recommended by Ben Hale, I'm looking in SVN at spring-webflow/trunk. It appears that the source code I should be looking at is: org.springframework.aws because of this in ivy.xml:

    <dependencies defaultconf="global->default">
    <dependency org="org.springframework.aws" name="spring-aws-ant" rev="1.0.2"/>
    </dependencies>
    The reference I find to "org.springframework.aws" is:

    C:\javalibs\spring-webflow-2.0.1.RELEASE\projects\spring-build\lib\ivy\org.springframework.build.aws.ivy.ja r
    So obviously I need to find the source code for that jar file ( org.springframework.build.aws.ivy.jar ) .

    However, I can't find the source code of that jar file ( org.springframework.build.aws.ivy.jar ) in SVN.

    That jar file ( org.springframework.build.aws.ivy.jar ) contains these 5 classes:

    S3Repository.class
    org.springframework.aws.ivy.jar.S3RepositoryExcept ion.class
    org.springframework.aws.ivy.jar.S3Resolver.class
    org.springframework.aws.ivy.jar.S3Resource.class
    org.springframework.aws.ivy.jar.S3Utils.class
    Can anyone point me to where the source code for it is?

    In SVN I see "spring-aws" but it contains packages that have the word "maven" in the package name instead of "ivy". For example: org.springframework.aws.maven.AbtractWagon.java
    Last edited by RobertGloverJr; May 30th, 2008 at 11:18 PM.
    Java Developer with all the usual Sun Java certifications.

  6. #16
    Join Date
    Jan 2006
    Location
    Southampton, UK
    Posts
    117

    Default

    This source code isn't actually hosted at the SourceForge SVN repository but rather on our own hosted repositories. You can find the tag for that code at:

    https://src.springframework.org/svn/...1.0.8.RELEASE/
    Ben Hale
    tc Server Team Core Developer
    http://www.springsource.com/products/tcserver

  7. #17
    Join Date
    Sep 2004
    Posts
    602

    Default

    Quote Originally Posted by Ben Hale View Post
    Robert, I've updated Spring Build and Spring Web Flow to make it a bit easier to configure the jets3t properties in the next release (or in SVN now). To do this, there will now be a jets3t.properties in /spring-build/lib/ivy to modify. If you want to check out the source code and give this I try, I'd love to know if it works.

    As for your latest problem, I'm not quite sure what's going on there. Are you able to ping repository.springsource.com? And if so, what host does it resolve to?
    I'm in a similar situation in not being able to build from behind a firewall - which I will solve tonight by going home :-) Unsurprisingly because of the firewall I cannot check out the code from subversion either.

    Question though - as a developer I am very interested in looking at how the new Webflow 2 samples all work, but not really that interested in having to build the samples, especially when behind a firewall. Couldn't pre-built examples (Eclipse projects and WAR files) be supplied as part of the release ? At the moment I know a lot more about Ivy and Proxies than Webflow 2 ;-)

  8. #18
    Join Date
    Sep 2004
    Posts
    602

    Default

    Quote Originally Posted by Ben Hale View Post
    That ping is what I'd expect, so I'm not sure what the problem is. If you're planning on spending any more time on trying to make this work, I'd definitely thing about checking out the latest source.

    Code:
    svn co https://springframework.svn.sourceforge.net/svnroot/springframework/spring-webflow/trunk
    We've stopped shipping a zip file with the JARs in it because it was getting to be about 60MB. That and this has worked every time up until now.
    Downloading 60 megs would have been significantly quicker than trying to build it behind a firewall, which, incidentally, would end up downloading 60 megs :-)

  9. #19
    Join Date
    Sep 2006
    Location
    Work in New York City
    Posts
    127

    Default

    I downloaded the source code of the jar file
    org.springframework.build.aws.ivy.jar
    and turned on logging via the following (before it was set to Level..NEVER) :

    public class S3Resolver extends RepositoryResolver {

    static {
    Logger.getLogger("org.jets3t").setLevel(Level.ALL) ;
    }
    Now when I run "ant" from directory
    C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\build-spring-webflow
    (with these values set in property file jets3t.properties, copied into jar file
    C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-build\lib\ivy\jets3t.jar
    s3service.https-only=true
    httpclient.proxy-autodetect=false
    httpclient.proxy-host=p1web1.secret.secret
    httpclient.proxy-port=8080
    I get the following error messages running ant: Notice particularly, below, the logging messages:

    Jun 3, 2008 9:49:36 PM org.jets3t.service.impl.rest.httpclient.RestS3Serv ice <init>
    INFO: Using Proxy: p1web1.secret.secret:8080
    Jun 3, 2008 9:49:36 PM org.apache.commons.httpclient.HttpMethodBase readResponseBody
    INFO: Response content length is not known
    Jun 3, 2008 9:49:37 PM org.jets3t.service.impl.rest.httpclient.RestS3Serv ice$1 retryMethod
    WARNING: Retrying HEAD request with path '/ivy%2Fbundles%2Fexternal%2Forg.apache.commons%2Fco m.springsource.org.apache.commons.logging%2F1.1.1% 2Fivy-1.1.1.xml' - attempt 1 of 5
    Jun 3, 2008 9:49:37 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
    INFO: I/O exception (javax.net.ssl.SSLHandshakeException) caught when processing request: Remote host closed connection during handshake
    Jun 3, 2008 9:49:37 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
    INFO: Retrying request

    C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\build-spring-webflow>ant
    Buildfile: build.xml

    clean:
    [subant] Entering directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-binding

    clean:
    [subant] Leaving directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-binding
    [subant] Entering directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-js

    clean:
    [subant] Leaving directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-js
    [subant] Entering directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-webflow

    clean:
    [subant] Leaving directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-webflow
    [subant] Entering directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-faces

    clean:
    [subant] Leaving directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-faces
    [subant] Entering directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-webflow-samples\booking-faces
    Trying to override old definition of task dist-jar

    clean:
    [subant] Leaving directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-webflow-samples\booking-faces
    [subant] Entering directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-webflow-samples\booking-mvc
    Trying to override old definition of task dist-jar

    clean:
    [subant] Leaving directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-webflow-samples\booking-mvc

    clean-integration:

    jar:
    [subant] Entering directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-binding

    ivy.init:
    [ivy:settings] :: Ivy 2.0.0-beta2 - 20080225093827 :: http://ant.apache.org/ivy/ ::
    [ivy:settings] :: loading settings :: file = C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-build\common\ivysettings.xml

    resolve.init:

    resolve.compile:
    [ivy:cachepath] Jun 3, 2008 9:49:36 PM org.jets3t.service.impl.rest.httpclient.RestS3Serv ice <init>
    [ivy:cachepath] INFO: Using Proxy: p1web1.secret.secret:8080
    [ivy:cachepath] Jun 3, 2008 9:49:36 PM org.apache.commons.httpclient.HttpMethodBase readResponseBody
    [ivy:cachepath] INFO: Response content length is not known
    [ivy:cachepath] Jun 3, 2008 9:49:37 PM org.jets3t.service.impl.rest.httpclient.RestS3Serv ice$1 retryMethod
    [ivy:cachepath] WARNING: Retrying HEAD request with path '/ivy%2Fbundles%2Fexternal%2Forg.apache.commons%2Fco m.springsource.org.apache.commons.logging%2F1.1.1% 2Fivy-1.1.1.xml' - attempt 1 of 5
    [ivy:cachepath] Jun 3, 2008 9:49:37 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
    [ivy:cachepath] INFO: I/O exception (javax.net.ssl.SSLHandshakeException) caught when processing request: Remote host closed connection during handshake
    [ivy:cachepath] Jun 3, 2008 9:49:37 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
    [ivy:cachepath] INFO: Retrying request
    [ivy:cachepath] Jun 3, 2008 9:49:37 PM org.apache.commons.httpclient.HttpMethodBase readResponseBody
    [ivy:cachepath] INFO: Response content length is not known
    [ivy:cachepath] Jun 3, 2008 9:49:37 PM org.jets3t.service.impl.rest.httpclient.RestS3Serv ice$1 retryMethod
    [ivy:cachepath] WARNING: Retrying HEAD request with path '/ivy%2Fbundles%2Fexternal%2Forg.apache.commons%2Fco m.springsource.org.apache.commons.logging%2F1.1.1% 2Fivy-1.1.1.xml' - attempt 2 of 5
    I would appreciate suggestions on how to proceed with this. Really, I think this problem merits attention.

    By the way I get the following if I change property file to:

    s3service.https-only=false
    httpclient.proxy-autodetect=false
    httpclient.proxy-host=p1web1.frb.org
    httpclient.proxy-port=8080
    C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\build-spring-webflow>ant
    Buildfile: build.xml

    clean:
    [subant] Entering directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-binding

    clean:
    [subant] Leaving directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-binding
    [subant] Entering directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-js

    clean:
    [subant] Leaving directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-js
    [subant] Entering directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-webflow

    clean:
    [subant] Leaving directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-webflow
    [subant] Entering directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-faces

    clean:
    [subant] Leaving directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-faces
    [subant] Entering directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-webflow-samples\booking-faces
    Trying to override old definition of task dist-jar

    clean:
    [subant] Leaving directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-webflow-samples\booking-faces
    [subant] Entering directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-webflow-samples\booking-mvc
    Trying to override old definition of task dist-jar

    clean:
    [subant] Leaving directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-webflow-samples\booking-mvc

    clean-integration:

    jar:
    [subant] Entering directory: C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-binding

    ivy.init:
    [ivy:settings] :: Ivy 2.0.0-beta2 - 20080225093827 :: http://ant.apache.org/ivy/ ::
    [ivy:settings] :: loading settings :: file = C:\JavaLibs\spring-webflow-2.0.1.RELEASE\projects\spring-build\common\ivysettings.xml

    resolve.init:

    resolve.compile:
    [ivy:cachepath] Jun 3, 2008 10:06:23 PM org.jets3t.service.impl.rest.httpclient.RestS3Serv ice <init>
    [ivy:cachepath] INFO: Using Proxy: p1web1.secret.secret:8080
    [ivy:cachepath] Jun 3, 2008 10:06:23 PM org.jets3t.service.impl.rest.httpclient.RestS3Serv ice performRequest
    [ivy:cachepath] WARNING: Response '/ivy%2Fbundles%2Fexternal%2Forg.apache.commons%2Fco m.springsource.org.apache.commons.logging%2F1.1.1% 2Fivy-1.1.1.xml' - Unexpected response code 403, expected 200
    [ivy:cachepath] Jun 3, 2008 10:06:23 PM org.jets3t.service.impl.rest.httpclient.RestS3Serv ice <init>
    [ivy:cachepath] INFO: Using Proxy: p1web1.secret.secret:8080
    [ivy:cachepath] Jun 3, 2008 10:06:24 PM org.jets3t.service.impl.rest.httpclient.RestS3Serv ice performRequest
    [ivy:cachepath] WARNING: Response '/ivy%2Flibraries%2Fexternal%2Forg.apache.commons%2F com.springsource.org.apache.commons.logging%2F1.1. 1%2Fivy-1.1.1.xml' - Unexpected response code 403, expected 200
    Last edited by RobertGloverJr; Jun 3rd, 2008 at 09:07 PM.
    Java Developer with all the usual Sun Java certifications.

  10. #20
    Join Date
    Jun 2008
    Posts
    11

    Default Classcastexception while getting WebFlow 2.0.1 Release samples working on JBoss 4.2

    I am trying to deploy the Spring WebFlow 2.0.1 Release sample application on both Tomcat 6.0 and JBoss 4.2. I was able to successfully follow the readme instructions and build the project and import it into Eclipse 3.3 IDE. Subsequently I resolved the compilation errors by defining the envrionment variable IVY_CACHE.

    Then I issued a RUN AS command by right-clicking the Project swf-booking-faces and created a Tomcat 6.0 Server. It deployed and ran fine.

    Later I issued a RUN AS command by right-clicking the Project sw-booking-faces and created a JBoss 4.2 server.



    The deployment failed with the following exception. Any help is appreciated.
    15:33:32,526 ERROR [[/swf-booking-faces]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfi gureListener
    java.lang.ClassCastException: com.sun.faces.config.WebConfiguration at com.sun.faces.config.WebConfiguration.getInstance( WebConfiguration.java:135)
    at com.sun.faces.config.ConfigureListener.contextInit ialized(ConfigureListener.java:228)
    at org.jboss.web.jsf.integration.config.JBossJSFConfi gureListener.contextInitialized(JBossJSFConfigureL istener.java:69)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3856)
    at org.apache.catalina.core.StandardContext.start


    --More lines----

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •