Re: jdk-1.7 fails when using nio.ch.DefaultAsynchronousChannelProvider

2013-10-30 Thread David Coppa
On Wed, 30 Oct 2013, David Coppa wrote:

 
 While I was working on updating tomcat7 to its latest version, I
 got the same bug described here:
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=183389
 
 It seems the patch below should help, but cannot test it atm...

The relevant log from tomcat:

INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
Oct 30, 2013 1:36:06 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor 
/etc/tomcat/Catalina/localhost/host-manager.xml
Oct 30, 2013 1:36:07 PM org.apache.catalina.startup.HostConfig deployDescriptors
SEVERE: Error waiting for multi-thread deployment of context descriptors to 
complete
java.util.concurrent.ExecutionException: java.lang.InternalError: platform not 
recognized
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:585)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:481)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1408)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at 
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at 
org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347)
at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1140)
at 
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.InternalError: platform not recognized
at 
sun.nio.ch.DefaultAsynchronousChannelProvider.create(DefaultAsynchronousChannelProvider.java:55)
at 
java.nio.channels.spi.AsynchronousChannelProvider$ProviderHolder$1.run(AsynchronousChannelProvider.java:88)
at 
java.nio.channels.spi.AsynchronousChannelProvider$ProviderHolder$1.run(AsynchronousChannelProvider.java:79)
at java.security.AccessController.doPrivileged(Native Method)
at 
java.nio.channels.spi.AsynchronousChannelProvider$ProviderHolder.load(AsynchronousChannelProvider.java:78)
at 
java.nio.channels.spi.AsynchronousChannelProvider$ProviderHolder.clinit(AsynchronousChannelProvider.java:75)
at 
java.nio.channels.spi.AsynchronousChannelProvider.provider(AsynchronousChannelProvider.java:166)
at 
java.nio.channels.AsynchronousChannelGroup.withCachedThreadPool(AsynchronousChannelGroup.java:233)
at 
org.apache.tomcat.websocket.WsWebSocketContainer.clinit(WsWebSocketContainer.java:118)
at org.apache.tomcat.websocket.server.WsSci.init(WsSci.java:154)
at org.apache.tomcat.websocket.server.WsSci.onStartup(WsSci.java:68)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5423)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:663)
at 
org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1642)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
... 5 more


And the diff (the right one this time ;))

Index: Makefile
===
RCS file: /cvs/ports/devel/jdk/1.7/Makefile,v
retrieving revision 1.65
diff -u -p -u -p -r1.65 Makefile
--- Makefile16 Oct 2013 14:12:21 -  1.65
+++ Makefile30 Oct 2013 13:35:15 -
@@ -11,7 +11,7 @@ B=b11
 PKGNAME=   jdk-${V}
 PKGNAME-main=  jdk-${V}
 PKGNAME-jre=   jre-${V}
-REVISION=  1
+REVISION=  2
 EPOCH= 0
 
 JDK_SRC=   openjdk-7u6-fcs-src-b24-28_aug_2012.zip
Index: 

Re: jdk-1.7 fails when using nio.ch.DefaultAsynchronousChannelProvider

2013-10-30 Thread Kurt Miller
On Wed, 2013-10-30 at 14:38 +0100, David Coppa wrote:
 I'm currently building jdk-1.7, I will report success/failure later
 when it's done...

Great. Thanks for tracking it down. The fix looks correct to me.
okay kurt@ after testing.

-Kurt



Re: jdk-1.7 fails when using nio.ch.DefaultAsynchronousChannelProvider

2013-10-30 Thread David Coppa
On Wed, 30 Oct 2013, Kurt Miller wrote:

 On Wed, 2013-10-30 at 14:38 +0100, David Coppa wrote:
  I'm currently building jdk-1.7, I will report success/failure later
  when it's done...
 
 Great. Thanks for tracking it down. The fix looks correct to me.
 okay kurt@ after testing.

So, tomcat now starts correctly:

Oct 30, 2013 3:22:14 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the java.library.path: 
/usr/java/packages/lib/amd64:/usr/lib:/usr/X11R6/lib:/usr/local/lib
Oct 30, 2013 3:22:15 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [http-bio-0.0.0.0-8080]
Oct 30, 2013 3:22:15 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler [ajp-bio-0.0.0.0-8009]
Oct 30, 2013 3:22:15 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1268 ms
Oct 30, 2013 3:22:15 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Oct 30, 2013 3:22:15 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
Oct 30, 2013 3:22:15 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor 
/etc/tomcat/Catalina/localhost/host-manager.xml
Oct 30, 2013 3:22:16 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor 
/etc/tomcat/Catalina/localhost/manager.xml
Oct 30, 2013 3:22:16 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/tomcat/webapps/ROOT
Oct 30, 2013 3:22:16 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/tomcat/webapps/docs
Oct 30, 2013 3:22:16 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/tomcat/webapps/examples
Oct 30, 2013 3:22:17 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [http-bio-0.0.0.0-8080]
Oct 30, 2013 3:22:17 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [ajp-bio-0.0.0.0-8009]
Oct 30, 2013 3:22:17 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2939 ms

Basic functionalities (servlet examples, jsp examples, server status,
manager app, host-manager app) work fine.

Ciao,
David



Re: jdk-1.7 fails when using nio.ch.DefaultAsynchronousChannelProvider

2013-10-30 Thread Stuart Henderson
On 2013/10/30 15:33, David Coppa wrote:
 So, tomcat now starts correctly:
 
 Oct 30, 2013 3:22:14 PM org.apache.catalina.core.AprLifecycleListener init
 INFO: The APR based Apache Tomcat Native library which allows optimal 
 performance in production environments was not found on the 
 java.library.path: 
 /usr/java/packages/lib/amd64:/usr/lib:/usr/X11R6/lib:/usr/local/lib

Out of interest, have you looked into what's needed for this ^^ at all?



Re: jdk-1.7 fails when using nio.ch.DefaultAsynchronousChannelProvider

2013-10-30 Thread David Coppa
On Wed, Oct 30, 2013 at 3:39 PM, Stuart Henderson st...@openbsd.org wrote:
 On 2013/10/30 15:33, David Coppa wrote:
 So, tomcat now starts correctly:

 Oct 30, 2013 3:22:14 PM org.apache.catalina.core.AprLifecycleListener init
 INFO: The APR based Apache Tomcat Native library which allows optimal 
 performance in production environments was not found on the 
 java.library.path: 
 /usr/java/packages/lib/amd64:/usr/lib:/usr/X11R6/lib:/usr/local/lib

 Out of interest, have you looked into what's needed for this ^^ at all?

We need to port this:

http://tomcat.apache.org/native-doc/

http://tomcat.apache.org/download-native.cgi



Re: jdk 1.7 ?

2008-08-22 Thread Kurt Miller
On Wednesday 20 August 2008 3:29:09 pm macintoshzoom wrote:
 ... java guys are working very 
 hard, and have the funds for, to patch their javas asap.

What funds? Please send them to me if you find any. ;-)

-Kurt



Re: jdk 1.7 ?

2008-08-20 Thread macintoshzoom

Hi, I'm testing it with jondos.de (formely JAP) and it works!
.. quite happy by now.
Don't forget to set your path at your /root/.profile and at 
/home/you-the-user/.profile files, adding your nwly java path-s:


Please amend me if I'm wrong on this:
e.g.:
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:/usr/local/jdk-1.7.0/bin/:.
I think the last dot is important above.

or call the java apps as
/usr/local/jdk-1.7.0/bin/java -jar /path-to-your-java-app.jar


I'm on OpenBSD 4.4-current (GENERIC.MP), powerful cpu/ram box.

This doesn't means that this java may contain security/privacy bugs, but 
at least it's a very recent updated java, java guys are working very 
hard, and have the funds for, to patch their javas asap.


For now, at security independent experts 
http://secunia.com/search/?search=jdk it seems there is no problem with 
jdk1.7.



Mac




Rajneesh N. Shetty wrote:

does that mean its ok to use it then?

tel :  +61431 823 603



'Worry looks around, sorry looks back, faith looks up'.

--- On Sat, 16/8/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
Subject: Re: jdk 1.7 ?
To: [EMAIL PROTECTED], ports@openbsd.org
Received: Saturday, 16 August, 2008, 4:51 AM

I just use the package.
Brandon
--Original Message--
From: macintoshzoom
Sender: [EMAIL PROTECTED]
To: ports@openbsd.org
ReplyTo: [EMAIL PROTECTED]
Sent: Aug 15, 2008 14:45
Subject: jdk 1.7 ?

Any of you guys has succeeded to build the jdk 1.7 port?
It was reported as broken some weeks ago, is it okay now?

Mac.



Sent via BlackBerry by ATT




  Win a MacBook Air or iPod touch with Yahoo!7. 
http://au.docs.yahoo.com/homepageset




Re: jdk 1.7 ?

2008-08-18 Thread Rajneesh N. Shetty
does that mean its ok to use it then?

tel :  +61431 823 603



'Worry looks around, sorry looks back, faith looks up'.

--- On Sat, 16/8/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
Subject: Re: jdk 1.7 ?
To: [EMAIL PROTECTED], ports@openbsd.org
Received: Saturday, 16 August, 2008, 4:51 AM

I just use the package.
Brandon
--Original Message--
From: macintoshzoom
Sender: [EMAIL PROTECTED]
To: ports@openbsd.org
ReplyTo: [EMAIL PROTECTED]
Sent: Aug 15, 2008 14:45
Subject: jdk 1.7 ?

Any of you guys has succeeded to build the jdk 1.7 port?
It was reported as broken some weeks ago, is it okay now?

Mac.



Sent via BlackBerry by ATT




  Win a MacBook Air or iPod touch with Yahoo!7. 
http://au.docs.yahoo.com/homepageset

Re: jdk 1.7 ?

2008-08-15 Thread yourcomputerpal
I just use the package.
Brandon
--Original Message--
From: macintoshzoom
Sender: [EMAIL PROTECTED]
To: ports@openbsd.org
ReplyTo: [EMAIL PROTECTED]
Sent: Aug 15, 2008 14:45
Subject: jdk 1.7 ?

Any of you guys has succeeded to build the jdk 1.7 port?
It was reported as broken some weeks ago, is it okay now?

Mac.



Sent via BlackBerry by ATT



Re: jdk 1.7 ?

2008-08-15 Thread macintoshzoom

failed prt install but succeeded package!

jdk-1.7.0.00b24p2: complete
--- jdk-1.7.0.00b24p2 ---
You may wish to add /usr/local/jdk-1.7.0/man to /etc/man.conf



macintoshzoom wrote:

Any of you guys has succeeded to build the jdk 1.7 port?
It was reported as broken some weeks ago, is it okay now?

Mac.






Re: jdk 1.7 ?

2008-08-15 Thread yourcomputerpal
'Dats what I'm talkin' bout!  OpenBSD FTW!! 
Brandon

--Original Message--
From: macintoshzoom
Sender: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: ports@openbsd.org
ReplyTo: [EMAIL PROTECTED]
Sent: Aug 15, 2008 16:38
Subject: Re: jdk 1.7 ?

failed prt install but succeeded package!

jdk-1.7.0.00b24p2: complete
--- jdk-1.7.0.00b24p2 ---
You may wish to add /usr/local/jdk-1.7.0/man to /etc/man.conf



macintoshzoom wrote:
 Any of you guys has succeeded to build the jdk 1.7 port?
 It was reported as broken some weeks ago, is it okay now?
 
 Mac.
 
 



Sent via BlackBerry by ATT