users@grizzly.java.net

Re: SSL?

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 09 Jul 2007 10:50:13 -0400

Hi Peter,

Peter Speck wrote:
> On 09/07/2007, at 16:33, Jeanfrancois Arcand wrote:
>
>>> On 06/07/2007, at 19:03, Jeanfrancois Arcand wrote:
>>>> take a look at this class:
>>>>
>>>> https://grizzly.dev.java.net/source/browse/*checkout*/grizzly/trunk/modules/grizzly/src/test/java/com/sun/grizzly/SSLConnectionTest.java?rev=332
>>>>
>>> This supports SSL for plain sockets, but I want to use it for https.
>>> It seems like I could hack SelectorThread.initController to use a
>>> SSLConnectorHandler, but that it's only in svn-trunk and building
>>> svn-trunk using maven2 fails for me as I can't figure out how to
>>> build com.sun.grizzly:framework:jar:1.5-SNAPSHOT.
>>> I did:
>>> svn co https://www.dev.java.net/svn/grizzly/trunk/
>>> cd http-utils; mvn clean install; cd ..
>>> cd rcm; mvn clean install
>>> which then fails.
>>> Or am I wandering into a dark forest by trying to hack
>>> SelectorThread.initController?
>>
>> You are right. SSL is not yet implemented with the https server. I
>> will take a look and see if I can come with something this week. But
>> I'm surprise about the build problem you are having. Can you post the
>> result of mvn -e clean install here?

If you go under grizzly/trunk and do mvn -e install, does it works?

Thanks

-- Jeanfrancois


>
>
> MBP:rcm$ mvn -e clean install
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> WAGON_VERSION: 1.0-beta-1
> [INFO]
> ----------------------------------------------------------------------------
>
> [INFO] Building grizzly-rcm
> [INFO] task-segment: [clean, install]
> [INFO]
> ----------------------------------------------------------------------------
>
> [INFO] [clean:clean]
> [INFO] Deleting directory /Users/speck/dc/grizzly.tmp/modules/rcm/target
> [INFO] Deleting directory
> /Users/speck/dc/grizzly.tmp/modules/rcm/target/classes
> [INFO] Deleting directory
> /Users/speck/dc/grizzly.tmp/modules/rcm/target/test-classes
> [INFO] Deleting directory
> /Users/speck/dc/grizzly.tmp/modules/rcm/target/site
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading:
> https://maven-repository.dev.java.net/nonav/repository/com.sun.grizzly/poms/framework-1.5-SNAPSHOT.pom
>
> Downloading:
> https://maven-repository.dev.java.net/nonav/repository/com.sun.grizzly/jars/framework-1.5-SNAPSHOT.jar
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) com.sun.grizzly:framework:jar:1.5-SNAPSHOT
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=com.sun.grizzly
> -DartifactId=framework \
> -Dversion=1.5-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the file
> there: mvn deploy:deploy-file -DgroupId=com.sun.grizzly
> -DartifactId=framework \
> -Dversion=1.5-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \
> -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) com.sun.grizzly:rcm:jar:1.5-SNAPSHOT
> 2) com.sun.grizzly:framework:jar:1.5-SNAPSHOT
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
> com.sun.grizzly:rcm:jar:1.5-SNAPSHOT
>
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2),
> java.net (https://maven-repository.dev.java.net/nonav/repository)
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Missing:
> ----------
> 1) com.sun.grizzly:framework:jar:1.5-SNAPSHOT
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=com.sun.grizzly
> -DartifactId=framework \
> -Dversion=1.5-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the file
> there: mvn deploy:deploy-file -DgroupId=com.sun.grizzly
> -DartifactId=framework \
> -Dversion=1.5-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \
> -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) com.sun.grizzly:rcm:jar:1.5-SNAPSHOT
> 2) com.sun.grizzly:framework:jar:1.5-SNAPSHOT
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
> com.sun.grizzly:rcm:jar:1.5-SNAPSHOT
>
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2),
> java.net (https://maven-repository.dev.java.net/nonav/repository)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:556)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by:
> org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException:
> Missing:
> ----------
> 1) com.sun.grizzly:framework:jar:1.5-SNAPSHOT
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=com.sun.grizzly
> -DartifactId=framework \
> -Dversion=1.5-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the file
> there: mvn deploy:deploy-file -DgroupId=com.sun.grizzly
> -DartifactId=framework \
> -Dversion=1.5-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \
> -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) com.sun.grizzly:rcm:jar:1.5-SNAPSHOT
> 2) com.sun.grizzly:framework:jar:1.5-SNAPSHOT
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
> com.sun.grizzly:rcm:jar:1.5-SNAPSHOT
>
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2),
> java.net (https://maven-repository.dev.java.net/nonav/repository)
>
> at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:305)
>
> at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:272)
>
> at
> org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1238)
>
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:397)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>
> ... 16 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Mon Jul 09 16:41:35 CEST 2007
> [INFO] Final Memory: 6M/11M
> [INFO]
> ------------------------------------------------------------------------
>
> ----
> - Peter Speck
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>