Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re(2): Resources for porting WO applications from 5.1 to 5.2 and Xcode?



At 10:13 AM 26/11/2003 -0500, Robert Snyder wrote:
>On Tue, Nov 25, 2003, Chuck Hill wrote:
>
>>A lot of the Java extension have been migrated into JDK 1.4.x.  It might be
>>a better idea to not try and replace these with older versions.
>
>I am using javax.mail and javax.activation
>
>>Exactly what error are you getting?  It will be easier to troubleshoot with
>>more information.
>
>When I add the mail and activation jars to the extension folder in 1.4.1
>and build I get two errors: 
>
I'm not sure that this folder is used at compile time, or if it is only a
runtime thing.  I think the latter, but I could be mistaken.


>1) illegal start of expression for the following line:
>
>javax.mail.Session session = (javax.m
>ail.Session)getDefaultInstance(props, null);
>
That might be a change in compiler parsing between the versions.  The error
looks more like that than a missing import.  Maybe try some variations:
javax.mail.Session session;
session = (javax.mail.Session)getDefaultInstance(props, null);

or 
Object object = getDefaultInstance(props, null);
session = (javax.mail.Session)object;

To see if you can narrow down what it dislikes.


>2) <anonymous ACSFormSubmitCall$1> should be declared abstract; it does
>not define checkClientTrusted(java.se
>curity.cert.X509Certificate[].java.lang.string
>
>for 
>
>public X509Certificate[] getAcceptedIssuers() {
>     return null;
>}
>
There were security and certificate changes between the versions.  You also
might be missing registration of a provider.  Check the contents of the
\lib\security directory under the JRE.


>In looking through the 1.4.1 API information on the sun site, it looks
>like javax.mail and javax.activation are still supported. 
>
Yes, it is.


Chuck


>This exact same code builds fine under 1.3.1. Would mail.jar and
>activation.jar files have changed between 1.3.1 and 1.4.1?
>
>Again, any help is appreciated.
>
>Robert
>____________________________________________
>
>Robert Snyder, Director
>World Campus Data Management Services
>The Pennsylvania State University
>105 Mitchell Building
>University Park  PA  16802
>Phone: 814-865-0912  Fax: 814-865-4406 
>E-mail: email@hidden
>URL: http://www.worldcampus.psu.edu/my.campus
>
>
>
>

--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.             http://www.global-village.net
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Resources for porting WO applicaitons from 5.1 to 5.2 and Xcode? (From: Chuck Hill <email@hidden>)
 >Re(2): Resources for porting WO applicaitons from 5.1 to 5.2 and Xcode? (From: "Robert Snyder" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.