All-
I’m seeing this strange error (included below) on deployment that I’m
not familiar with which occurs on application deployment (which is
successful inasmuch as it can be) or on any subsequent pagefetch. I’m
at a total loss on it. Google has two hits on the error and Oracle’s
Metalink has no results for it.
I started by deploying a new Rails 2.1 application using JRuby 1.1.3
w/ warbler 0.9.10, which resulted in this error. I then downgraded to
warbler 0.9.9 (and using jruby-complete-1.1.2.jar), which I’m
currently successfully using in production with a Rails 2.1 app,
resulting in the same error. I then removed jruby-complete-1.1.2.jar
in favor of jruby-complete-1.1.1.jar with the same results.
I’ve since dropped the required Rails libraries down to 2.0.2 and
basically tried every permutation of versioning of JRuby, Rails and
warbler with the same results. Making certain that I’m removing the
contents of tmp/war each time. Now here’s where it gets… odd.
I have a production and test environment which have the same
configuration and a backup copy of a war with the perfectly
functioning Rails 2.1 app I mentioned above. In the test environment,
I undeployed the webapp (running fine at the time) and immediately
redeployed the same WAR… and now I get the same error as with
everything else.
So it seems to be a problem with Oracle Application Server… I’ve
reset the java policy file for the container to be as permissive as
possible and still see the error. I’m wondering if anyone on the list
has seen anything like this and would be able to point me in the right
direction about it.
Error:
java.lang.SecurityException: Unauthorised domain name: java.lang for
jmx write type operation
at
oracle
.oc4j
.admin
.jmx.shared.UserMBeanServer.checkWriteAccess(UserMBeanServer.java:601)
at
oracle
.oc4j
.admin.jmx.shared.UserMBeanServer.registerMBean(UserMBeanServer.java:
315)
at sun.management.ManagementFactory$1.run(ManagementFactory.java:
278)
at java.security.AccessController.doPrivileged(Native Method)
at
sun.management.ManagementFactory.addMBean(ManagementFactory.java:273)
at
sun.management.ManagementFactory.addMXBean(ManagementFactory.java:253)
at
sun
.management
.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:304)
at
java
.lang
.management
.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:504)
at org.jruby.management.BeanManager.register(BeanManager.java:45)
at org.jruby.management.BeanManager.register(BeanManager.java:28)
at org.jruby.compiler.JITCompiler.(JITCompiler.java:66)
at org.jruby.Ruby.(Ruby.java:204)
at org.jruby.Ruby.newInstance(Ruby.java:157)
at
org.jruby.javasupport.JavaEmbedUtils.initialize(JavaEmbedUtils.java:84)
at
org
.jruby
.rack
.DefaultRackApplicationFactory
.newRuntime(DefaultRackApplicationFactory.java:79)
at
org
.jruby
.rack
.DefaultRackApplicationFactory
.createApplication(DefaultRackApplicationFactory.java:146)
at
org
.jruby
.rack
.DefaultRackApplicationFactory
.newErrorApplication(DefaultRackApplicationFactory.java:99)
at
org
.jruby
.rack
.DefaultRackApplicationFactory.init(DefaultRackApplicationFactory.java:
39)
at
org
.jruby
.rack
.PoolingRackApplicationFactory.init(PoolingRackApplicationFactory.java:
53)
at
org
.jruby
.rack
.RackServletContextListener
.contextInitialized(RackServletContextListener.java:38)
at
com
.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:
1009)
at
com.evermind.server.http.HttpApplication.(HttpApplication.java:
549)
at
com.evermind.server.Application.getHttpApplication(Application.java:890)
at
com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:
707)
at
com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:
278)
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:
179)
at
com
.evermind
.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)
at
com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:
1551)
at
com
.evermind
.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)
Setup:
- Windows Server 2K3
- Java 5 EE / JDK 6 (1.6.0_05-b13 / HotSpot Client 10.0-b19, mixed mode)
- Oracle Collaboration v10.1.1.0.2
- Oracle Portal v10.1.4
- Oracle Application Server v10.1
- Warbler 0.9.10 (with the default jruby-complete/rack)
- Rails 2.1
Thanks.
-J.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email