You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Hernan Cunico (JIRA)" <ji...@apache.org> on 2007/01/08 22:01:27 UTC

[jira] Created: (GERONIMO-2709) Database creation pool wizard fails in Jetty

Database creation pool wizard fails in Jetty
--------------------------------------------

                 Key: GERONIMO-2709
                 URL: https://issues.apache.org/jira/browse/GERONIMO-2709
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: console, databases
    Affects Versions: 2.0-M1, 2.0
         Environment: Jetty Dist. rev #494097    . Related to GERONIMO-2685
            Reporter: Hernan Cunico
            Priority: Critical


DB Pool creation wizard fails on Jetty distribution. It will now list the available database types (step 1) but once you click next the console is gone. 

The following error is displayed on the terminal. I can't set log to DEBUG, if so I loose control on Jetty (wont even pass login screen - different issue)

2007-01-08 15:32:21.671::WARN:  EXCEPTION
java.lang.IllegalArgumentException: Qualifier patterns must be present when first URLPattern is an exact pattern
        at javax.security.jacc.URLPatternSpec.<init>(URLPatternSpec.java:98)
        at javax.security.jacc.WebUserDataPermission.<init>(WebUserDataPermission.java:86)
        at org.apache.geronimo.jetty6.handler.JettySecurityHandler.checkSecurityConstraints(JettySecurityHandler.java:183)
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:171)
        at org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle(JettySecurityHandler.java:133)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
        at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
        at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:285)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:203)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
        at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217)
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
Server shutdown begun
Server shutdown completed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (GERONIMO-2709) Database creation pool wizard fails in Jetty

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jencks closed GERONIMO-2709.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0-M2
         Assignee: David Jencks

Fixed in rev 498726, thanks Paul for checking this... although I have no idea how you demonstrated the problem on macosx.

> Database creation pool wizard fails in Jetty
> --------------------------------------------
>
>                 Key: GERONIMO-2709
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2709
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console, databases
>    Affects Versions: 2.0-M2
>         Environment: Jetty Dist. rev #494097    . Related to GERONIMO-2685
>            Reporter: Hernan Cunico
>         Assigned To: David Jencks
>            Priority: Critical
>             Fix For: 2.0-M2
>
>         Attachments: G2709-2.patch, G2709.patch
>
>
> DB Pool creation wizard fails on Jetty distribution. It will now list the available database types (step 1) but once you click next the console is gone. 
> The following error is displayed on the terminal. I can't set log to DEBUG, if so I loose control on Jetty (wont even pass login screen - different issue)
> 2007-01-08 15:32:21.671::WARN:  EXCEPTION
> java.lang.IllegalArgumentException: Qualifier patterns must be present when first URLPattern is an exact pattern
>         at javax.security.jacc.URLPatternSpec.<init>(URLPatternSpec.java:98)
>         at javax.security.jacc.WebUserDataPermission.<init>(WebUserDataPermission.java:86)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.checkSecurityConstraints(JettySecurityHandler.java:183)
>         at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:171)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle(JettySecurityHandler.java:133)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
>         at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
>         at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
>         at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:203)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>         at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
> Server shutdown begun
> Server shutdown completed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMO-2709) Database creation pool wizard fails in Jetty

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jencks updated GERONIMO-2709:
-----------------------------------

    Attachment: G2709-2.patch

> Database creation pool wizard fails in Jetty
> --------------------------------------------
>
>                 Key: GERONIMO-2709
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2709
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console, databases
>    Affects Versions: 2.0-M2
>         Environment: Jetty Dist. rev #494097    . Related to GERONIMO-2685
>            Reporter: Hernan Cunico
>            Priority: Critical
>         Attachments: G2709-2.patch, G2709.patch
>
>
> DB Pool creation wizard fails on Jetty distribution. It will now list the available database types (step 1) but once you click next the console is gone. 
> The following error is displayed on the terminal. I can't set log to DEBUG, if so I loose control on Jetty (wont even pass login screen - different issue)
> 2007-01-08 15:32:21.671::WARN:  EXCEPTION
> java.lang.IllegalArgumentException: Qualifier patterns must be present when first URLPattern is an exact pattern
>         at javax.security.jacc.URLPatternSpec.<init>(URLPatternSpec.java:98)
>         at javax.security.jacc.WebUserDataPermission.<init>(WebUserDataPermission.java:86)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.checkSecurityConstraints(JettySecurityHandler.java:183)
>         at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:171)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle(JettySecurityHandler.java:133)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
>         at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
>         at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
>         at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:203)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>         at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
> Server shutdown begun
> Server shutdown completed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMO-2709) Database creation pool wizard fails in Jetty

Posted by "Paul McMahan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466529 ] 

Paul McMahan commented on GERONIMO-2709:
----------------------------------------

Thanks David.  Not sure if I did anything special to generate the error, just entered "test" for the pool name and selected "Derby embedded" for the database type. Here is the stack trace and my jvm info:

2007-01-22 14:01:29.565::WARN:  EXCEPTION 
java.lang.IllegalArgumentException: Qualifier patterns must not be present when first URLPattern is an exact pattern
        at javax.security.jacc.URLPatternSpec.<init>(URLPatternSpec.java:102)
        at javax.security.jacc.WebUserDataPermission.<init>(WebUserDataPermission.java:86)
        at org.apache.geronimo.jetty6.handler.JettySecurityHandler.checkSecurityConstraints(JettySecurityHandler.java:183)
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:171)
        at org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle(JettySecurityHandler.java:133)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
        at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
        at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:285)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
        at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217)
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

---------------------------------------------------------

13:53:40,671 INFO  [root]   JVM in use = Apple Computer, Inc. Java 1.5.0_06
13:53:40,671 INFO  [root] Java Information:
13:53:40,671 INFO  [root]   System property [java.runtime.name]  = Java(TM) 2 Runtime Environment, Standard Edition
13:53:40,671 INFO  [root]   System property [java.runtime.version]  = 1.5.0_06-113
13:53:40,671 INFO  [root]   System property [os.name]             = Mac OS X
13:53:40,672 INFO  [root]   System property [os.version]          = 10.4.8
13:53:40,676 INFO  [root]   System property [sun.os.patch.level]  = unknown
13:53:40,676 INFO  [root]   System property [os.arch]             = i386
13:53:40,676 INFO  [root]   System property [java.class.version]  = 49.0
13:53:40,676 INFO  [root]   System property [locale]              = en_US
13:53:40,676 INFO  [root]   System property [unicode.encoding]    = UnicodeLittle
13:53:40,676 INFO  [root]   System property [file.encoding]       = MacRoman
13:53:40,677 INFO  [root]   System property [java.vm.name]        = Java HotSpot(TM) Client VM
13:53:40,677 INFO  [root]   System property [java.vm.vendor]      = "Apple Computer, Inc."
13:53:40,677 INFO  [root]   System property [java.vm.version]     = 1.5.0_06-68
13:53:40,677 INFO  [root]   System property [java.vm.info]        = mixed mode, sharing
13:53:40,677 INFO  [root]   System property [java.home]           = /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
13:53:40,677 INFO  [root]   System property [java.classpath]      = null
13:53:40,677 INFO  [root]   System property [java.library.path]   = .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
13:53:40,678 INFO  [root]   System property [java.endorsed.dirs]  = /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/endorsed
13:53:40,678 INFO  [root]   System property [java.ext.dirs]       = /Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext


> Database creation pool wizard fails in Jetty
> --------------------------------------------
>
>                 Key: GERONIMO-2709
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2709
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console, databases
>    Affects Versions: 2.0-M2
>         Environment: Jetty Dist. rev #494097    . Related to GERONIMO-2685
>            Reporter: Hernan Cunico
>         Assigned To: David Jencks
>            Priority: Critical
>             Fix For: 2.0-M2
>
>         Attachments: G2709-2.patch, G2709.patch
>
>
> DB Pool creation wizard fails on Jetty distribution. It will now list the available database types (step 1) but once you click next the console is gone. 
> The following error is displayed on the terminal. I can't set log to DEBUG, if so I loose control on Jetty (wont even pass login screen - different issue)
> 2007-01-08 15:32:21.671::WARN:  EXCEPTION
> java.lang.IllegalArgumentException: Qualifier patterns must be present when first URLPattern is an exact pattern
>         at javax.security.jacc.URLPatternSpec.<init>(URLPatternSpec.java:98)
>         at javax.security.jacc.WebUserDataPermission.<init>(WebUserDataPermission.java:86)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.checkSecurityConstraints(JettySecurityHandler.java:183)
>         at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:171)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle(JettySecurityHandler.java:133)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
>         at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
>         at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
>         at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:203)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>         at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
> Server shutdown begun
> Server shutdown completed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMO-2709) Database creation pool wizard fails in Jetty

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466215 ] 

Jarek Gawor commented on GERONIMO-2709:
---------------------------------------

The attached patch seems to fix the problem for me. The pathInContext contains ':' and it needs to be escaped. That's what WebUserDataPermission(HttpServletRequest) constructor does.


> Database creation pool wizard fails in Jetty
> --------------------------------------------
>
>                 Key: GERONIMO-2709
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2709
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console, databases
>    Affects Versions: 2.0-M2
>         Environment: Jetty Dist. rev #494097    . Related to GERONIMO-2685
>            Reporter: Hernan Cunico
>            Priority: Critical
>         Attachments: G2709.patch
>
>
> DB Pool creation wizard fails on Jetty distribution. It will now list the available database types (step 1) but once you click next the console is gone. 
> The following error is displayed on the terminal. I can't set log to DEBUG, if so I loose control on Jetty (wont even pass login screen - different issue)
> 2007-01-08 15:32:21.671::WARN:  EXCEPTION
> java.lang.IllegalArgumentException: Qualifier patterns must be present when first URLPattern is an exact pattern
>         at javax.security.jacc.URLPatternSpec.<init>(URLPatternSpec.java:98)
>         at javax.security.jacc.WebUserDataPermission.<init>(WebUserDataPermission.java:86)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.checkSecurityConstraints(JettySecurityHandler.java:183)
>         at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:171)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle(JettySecurityHandler.java:133)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
>         at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
>         at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
>         at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:203)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>         at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
> Server shutdown begun
> Server shutdown completed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMO-2709) Database creation pool wizard fails in Jetty

Posted by "Paul McMahan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466501 ] 

Paul McMahan commented on GERONIMO-2709:
----------------------------------------

I recreated the error on macos and verified that the patch fixes the problem.  I was able to create a derby database pool using the web console in the jetty assembly.

> Database creation pool wizard fails in Jetty
> --------------------------------------------
>
>                 Key: GERONIMO-2709
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2709
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console, databases
>    Affects Versions: 2.0-M2
>         Environment: Jetty Dist. rev #494097    . Related to GERONIMO-2685
>            Reporter: Hernan Cunico
>            Priority: Critical
>         Attachments: G2709-2.patch, G2709.patch
>
>
> DB Pool creation wizard fails on Jetty distribution. It will now list the available database types (step 1) but once you click next the console is gone. 
> The following error is displayed on the terminal. I can't set log to DEBUG, if so I loose control on Jetty (wont even pass login screen - different issue)
> 2007-01-08 15:32:21.671::WARN:  EXCEPTION
> java.lang.IllegalArgumentException: Qualifier patterns must be present when first URLPattern is an exact pattern
>         at javax.security.jacc.URLPatternSpec.<init>(URLPatternSpec.java:98)
>         at javax.security.jacc.WebUserDataPermission.<init>(WebUserDataPermission.java:86)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.checkSecurityConstraints(JettySecurityHandler.java:183)
>         at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:171)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle(JettySecurityHandler.java:133)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
>         at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
>         at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
>         at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:203)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>         at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
> Server shutdown begun
> Server shutdown completed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMO-2709) Database creation pool wizard fails in Jetty

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466315 ] 

David Jencks commented on GERONIMO-2709:
----------------------------------------

1. I can't reproduce this problem, the wizard seems to work fine for me.  Is this perhaps a windows problem?

2. The patch is wrong.  WebUserDataPermission has no way to determine if the request is integral but not confidential from the request.  We have to use jetty specific methods to do this and pass in the transport type.

Since the constructor we use for WebUserDataPermission needs to NOT escape colons, since they are used for qualifying patterns, I think we need to escape the colons in the JettySecurityHandler code.  I'll attach a patch... I'll apply it if someone can verify it fixes the problem which (see 1) I don't see.

> Database creation pool wizard fails in Jetty
> --------------------------------------------
>
>                 Key: GERONIMO-2709
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2709
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console, databases
>    Affects Versions: 2.0-M2
>         Environment: Jetty Dist. rev #494097    . Related to GERONIMO-2685
>            Reporter: Hernan Cunico
>            Priority: Critical
>         Attachments: G2709-2.patch, G2709.patch
>
>
> DB Pool creation wizard fails on Jetty distribution. It will now list the available database types (step 1) but once you click next the console is gone. 
> The following error is displayed on the terminal. I can't set log to DEBUG, if so I loose control on Jetty (wont even pass login screen - different issue)
> 2007-01-08 15:32:21.671::WARN:  EXCEPTION
> java.lang.IllegalArgumentException: Qualifier patterns must be present when first URLPattern is an exact pattern
>         at javax.security.jacc.URLPatternSpec.<init>(URLPatternSpec.java:98)
>         at javax.security.jacc.WebUserDataPermission.<init>(WebUserDataPermission.java:86)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.checkSecurityConstraints(JettySecurityHandler.java:183)
>         at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:171)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle(JettySecurityHandler.java:133)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
>         at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
>         at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
>         at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:203)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>         at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
> Server shutdown begun
> Server shutdown completed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMO-2709) Database creation pool wizard fails in Jetty

Posted by "Paul McMahan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466242 ] 

Paul McMahan commented on GERONIMO-2709:
----------------------------------------

I took a look at the patch and am wondering whether it matters if WebUserDataPermission is created using the pathInContext passed to the method instead of letting the WebUserDataPermission constructor determine everything from the request?

> Database creation pool wizard fails in Jetty
> --------------------------------------------
>
>                 Key: GERONIMO-2709
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2709
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console, databases
>    Affects Versions: 2.0-M2
>         Environment: Jetty Dist. rev #494097    . Related to GERONIMO-2685
>            Reporter: Hernan Cunico
>            Priority: Critical
>         Attachments: G2709.patch
>
>
> DB Pool creation wizard fails on Jetty distribution. It will now list the available database types (step 1) but once you click next the console is gone. 
> The following error is displayed on the terminal. I can't set log to DEBUG, if so I loose control on Jetty (wont even pass login screen - different issue)
> 2007-01-08 15:32:21.671::WARN:  EXCEPTION
> java.lang.IllegalArgumentException: Qualifier patterns must be present when first URLPattern is an exact pattern
>         at javax.security.jacc.URLPatternSpec.<init>(URLPatternSpec.java:98)
>         at javax.security.jacc.WebUserDataPermission.<init>(WebUserDataPermission.java:86)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.checkSecurityConstraints(JettySecurityHandler.java:183)
>         at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:171)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle(JettySecurityHandler.java:133)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
>         at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
>         at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
>         at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:203)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>         at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
> Server shutdown begun
> Server shutdown completed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMO-2709) Database creation pool wizard fails in Jetty

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Gawor updated GERONIMO-2709:
----------------------------------

    Attachment: G2709.patch

> Database creation pool wizard fails in Jetty
> --------------------------------------------
>
>                 Key: GERONIMO-2709
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2709
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console, databases
>    Affects Versions: 2.0-M2
>         Environment: Jetty Dist. rev #494097    . Related to GERONIMO-2685
>            Reporter: Hernan Cunico
>            Priority: Critical
>         Attachments: G2709.patch
>
>
> DB Pool creation wizard fails on Jetty distribution. It will now list the available database types (step 1) but once you click next the console is gone. 
> The following error is displayed on the terminal. I can't set log to DEBUG, if so I loose control on Jetty (wont even pass login screen - different issue)
> 2007-01-08 15:32:21.671::WARN:  EXCEPTION
> java.lang.IllegalArgumentException: Qualifier patterns must be present when first URLPattern is an exact pattern
>         at javax.security.jacc.URLPatternSpec.<init>(URLPatternSpec.java:98)
>         at javax.security.jacc.WebUserDataPermission.<init>(WebUserDataPermission.java:86)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.checkSecurityConstraints(JettySecurityHandler.java:183)
>         at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:171)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle(JettySecurityHandler.java:133)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
>         at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
>         at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
>         at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:203)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>         at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
> Server shutdown begun
> Server shutdown completed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMO-2709) Database creation pool wizard fails in Jetty

Posted by "Hernan Cunico (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hernan Cunico updated GERONIMO-2709:
------------------------------------

    Affects Version/s:     (was: 2.0-M1)
                           (was: 2.0)
                       2.0-M2

> Database creation pool wizard fails in Jetty
> --------------------------------------------
>
>                 Key: GERONIMO-2709
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2709
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: console, databases
>    Affects Versions: 2.0-M2
>         Environment: Jetty Dist. rev #494097    . Related to GERONIMO-2685
>            Reporter: Hernan Cunico
>            Priority: Critical
>
> DB Pool creation wizard fails on Jetty distribution. It will now list the available database types (step 1) but once you click next the console is gone. 
> The following error is displayed on the terminal. I can't set log to DEBUG, if so I loose control on Jetty (wont even pass login screen - different issue)
> 2007-01-08 15:32:21.671::WARN:  EXCEPTION
> java.lang.IllegalArgumentException: Qualifier patterns must be present when first URLPattern is an exact pattern
>         at javax.security.jacc.URLPatternSpec.<init>(URLPatternSpec.java:98)
>         at javax.security.jacc.WebUserDataPermission.<init>(WebUserDataPermission.java:86)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.checkSecurityConstraints(JettySecurityHandler.java:183)
>         at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:171)
>         at org.apache.geronimo.jetty6.handler.JettySecurityHandler.handle(JettySecurityHandler.java:133)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.handle(ThreadClassloaderHandler.java:46)
>         at org.apache.geronimo.jetty6.handler.ComponentContextHandler.handle(ComponentContextHandler.java:47)
>         at org.apache.geronimo.jetty6.handler.InstanceContextHandler.handle(InstanceContextHandler.java:58)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
>         at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:203)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>         at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:217)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
> Server shutdown begun
> Server shutdown completed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira