Java SSL dependency issue

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Java SSL dependency issue

Joshua Bailey
I have two branches of code. One compiles without a hitch, the other complains about this:

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project thebookgrove-catalog: Compilation failure: Compilation failure:
[ERROR] /Users/joshua/Desktop/Data/TheBookGrove/Platform/thebookgrove-catalog/src/main/java/com/thebookgrove/catalog/InternetConnectionAgent.java:[40,23] package sun.security.ssl does not exist
[ERROR] /Users/joshua/Desktop/Data/TheBookGrove/Platform/thebookgrove-catalog/src/main/java/com/thebookgrove/catalog/InternetConnectionAgent.java:[147,29] cannot find symbol

I couldn't find any help with Google, so you are my last resort :(
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Java SSL dependency issue

Barrie Treloar
On 8 August 2014 03:32, Joshua Bailey <[hidden email]> wrote:

> I have two branches of code. One compiles without a hitch, the other
> complains about this:
>
> Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
> (default-compile) on project thebookgrove-catalog: Compilation failure:
> Compilation failure:
> [ERROR]
> /Users/joshua/Desktop/Data/TheBookGrove/Platform/thebookgrove-catalog/src/main/java/com/thebookgrove/catalog/InternetConnectionAgent.java:[40,23]
> package sun.security.ssl does not exist
> [ERROR]
> /Users/joshua/Desktop/Data/TheBookGrove/Platform/thebookgrove-catalog/src/main/java/com/thebookgrove/catalog/InternetConnectionAgent.java:[147,29]
> cannot find symbol
>
> I couldn't find any help with Google, so you are my last resort :(



Option 1)

It's been a while since I tinkered in the security spaces but...
Are you sure you should be using sun.* packages?
These are normally internal implementation stuff.
You should be using the java.* interfaces instead.
(http://openjdk.java.net/groups/security/ sums this up - and
http://docs.oracle.com/javase/7/docs/api/ doesn't like JavaDoc for sun.*
stuff)

Option 2)

Guesses are that the two branches are using different environments.

Run mvn -X on both branches piping output to a file.
You can start with diff to see whether you get lucky and spot the problems.
Otherwise, its a line by line comb to see what the differences are and
whether these are the cause of your problems.

Are you building with a non-Oracle jdk in the second branch - which
obviously wont have the sun.* implementation stuff.
Reply | Threaded
Open this post in threaded view
|

RE: Java SSL dependency issue

mgainty
In reply to this post by Joshua Bailey
You should be able to locate the https://www.bouncycastle.org/latest_releases.html security jars you need from
http://openjdk.java.net/groups/security

what provider are you using?
I recommend BouncyCastle
https://www.bouncycastle.org/latest_releases.html

Sounds like an interesting app..would like to hear more when you get a chance

Martin Gainty
_______________________


> From: [hidden email]
> Subject: Java SSL dependency issue
> Date: Thu, 7 Aug 2014 13:02:00 -0500
> To: [hidden email]
>
> I have two branches of code. One compiles without a hitch, the other complains about this:
>
> Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project thebookgrove-catalog: Compilation failure: Compilation failure:
> [ERROR] /Users/joshua/Desktop/Data/TheBookGrove/Platform/thebookgrove-catalog/src/main/java/com/thebookgrove/catalog/InternetConnectionAgent.java:[40,23] package sun.security.ssl does not exist
> [ERROR] /Users/joshua/Desktop/Data/TheBookGrove/Platform/thebookgrove-catalog/src/main/java/com/thebookgrove/catalog/InternetConnectionAgent.java:[147,29] cannot find symbol
>
> I couldn't find any help with Google, so you are my last resort :(
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
     
Reply | Threaded
Open this post in threaded view
|

Re: Java SSL dependency issue

james northrup
does anyone have select(), read, handshake, NIO code with sslengine to draw
from?

the examples in the wild done to illustrate the sslengine never seem to tie
back to an actual fsm that could be made into something useful


On Mon, Aug 18, 2014 at 11:49 AM, Martin Gainty <[hidden email]> wrote:

> You should be able to locate the
> https://www.bouncycastle.org/latest_releases.html security jars you need
> from
> http://openjdk.java.net/groups/security
>
> what provider are you using?
> I recommend BouncyCastle
> https://www.bouncycastle.org/latest_releases.html
>
> Sounds like an interesting app..would like to hear more when you get a
> chance
>
> Martin Gainty
> _______________________
>
>
> > From: [hidden email]
> > Subject: Java SSL dependency issue
> > Date: Thu, 7 Aug 2014 13:02:00 -0500
> > To: [hidden email]
> >
> > I have two branches of code. One compiles without a hitch, the other
> complains about this:
> >
> > Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
> (default-compile) on project thebookgrove-catalog: Compilation failure:
> Compilation failure:
> > [ERROR]
> /Users/joshua/Desktop/Data/TheBookGrove/Platform/thebookgrove-catalog/src/main/java/com/thebookgrove/catalog/InternetConnectionAgent.java:[40,23]
> package sun.security.ssl does not exist
> > [ERROR]
> /Users/joshua/Desktop/Data/TheBookGrove/Platform/thebookgrove-catalog/src/main/java/com/thebookgrove/catalog/InternetConnectionAgent.java:[147,29]
> cannot find symbol
> >
> > I couldn't find any help with Google, so you are my last resort :(
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
>
>



--
Jim Northrup  *  (408) 837-2270 *
Reply | Threaded
Open this post in threaded view
|

Re: Java SSL dependency issue

james northrup
woops wrong group, sorry


On Mon, Aug 18, 2014 at 1:46 PM, james northrup <[hidden email]>
wrote:

> does anyone have select(), read, handshake, NIO code with sslengine to
> draw from?
>
> the examples in the wild done to illustrate the sslengine never seem to
> tie back to an actual fsm that could be made into something useful
>
>
> On Mon, Aug 18, 2014 at 11:49 AM, Martin Gainty <[hidden email]>
> wrote:
>
>> You should be able to locate the
>> https://www.bouncycastle.org/latest_releases.html security jars you need
>> from
>> http://openjdk.java.net/groups/security
>>
>> what provider are you using?
>> I recommend BouncyCastle
>> https://www.bouncycastle.org/latest_releases.html
>>
>> Sounds like an interesting app..would like to hear more when you get a
>> chance
>>
>> Martin Gainty
>> _______________________
>>
>>
>> > From: [hidden email]
>> > Subject: Java SSL dependency issue
>> > Date: Thu, 7 Aug 2014 13:02:00 -0500
>> > To: [hidden email]
>> >
>> > I have two branches of code. One compiles without a hitch, the other
>> complains about this:
>> >
>> > Failed to execute goal
>> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
>> (default-compile) on project thebookgrove-catalog: Compilation failure:
>> Compilation failure:
>> > [ERROR]
>> /Users/joshua/Desktop/Data/TheBookGrove/Platform/thebookgrove-catalog/src/main/java/com/thebookgrove/catalog/InternetConnectionAgent.java:[40,23]
>> package sun.security.ssl does not exist
>> > [ERROR]
>> /Users/joshua/Desktop/Data/TheBookGrove/Platform/thebookgrove-catalog/src/main/java/com/thebookgrove/catalog/InternetConnectionAgent.java:[147,29]
>> cannot find symbol
>> >
>> > I couldn't find any help with Google, so you are my last resort :(
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [hidden email]
>> > For additional commands, e-mail: [hidden email]
>> >
>>
>>
>
>
>
> --
> Jim Northrup  *  (408) 837-2270 *
>



--
Jim Northrup  *  (408) 837-2270 *