David Jencks (JIRA | 1 Sep 01:26 2010
Picon

[jira] Created: (GERONIMO-5567) jetty servlet/filter gbeans but direct listener creation not compatible with servlet 3 startup order

jetty servlet/filter gbeans but direct listener creation not compatible with servlet 3 startup order
----------------------------------------------------------------------------------------------------

                 Key: GERONIMO-5567
                 URL: https://issues.apache.org/jira/browse/GERONIMO-5567
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: Jetty
    Affects Versions: 3.0
            Reporter: David Jencks
            Assignee: David Jencks
             Fix For: 3.0

Programatic addition of servlets and filters needs to happen after the web.xml stuff is processed because
some operations such as servletRegistration.addServletMapping() must do nothing if there is an
existing mapping in the list.

we could make the listeners gbeans or put all the web.xml info in the web app gbean.  The latter would probably
work for tomcat too, we'd just do the servletCOntext registration stuff directly.

--

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

gawor | 1 Sep 02:03 2010
Picon

[BUILD] branches/2.2: Failed for Revision: 991396

Geronimo Revision: 991396 built with tests included

See the full build-2000.log file at http://people.apache.org/builds/geronimo/server/binaries/2.2/20100831/build-2000.log

 
See the unit test reports at http://people.apache.org/builds/geronimo/server/binaries/2.2/20100831/unit-test-reports

import: org.codehaus.classworlds.Entry <at> f8e44ca4
import: org.codehaus.classworlds.Entry <at> 92758522
import: org.codehaus.classworlds.Entry <at> ebf2705b
import: org.codehaus.classworlds.Entry <at> bb25e54
import: org.codehaus.classworlds.Entry <at> bece5185
import: org.codehaus.classworlds.Entry <at> 3fee8e37
import: org.codehaus.classworlds.Entry <at> 3fee19d8
-----------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal
'org.codehaus.mojo.jspc:jspc-maven-plugin:2.0-alpha-2:compile': Unable to find the mojo
'org.codehaus.mojo.jspc:jspc-maven-plugin:2.0-alpha-2:compile' in the plugin 'org.codehaus.mojo.jspc:jspc-maven-plugin'
org.codehaus.mojo.jspc.compiler.JspCompiler
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager
executing goal 'org.codehaus.mojo.jspc:jspc-maven-plugin:2.0-alpha-2:compile': Unable to find
the mojo 'org.codehaus.mojo.jspc:jspc-maven-plugin:2.0-alpha-2:compile' in the plugin 'org.codehaus.mojo.jspc:jspc-maven-plugin'
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:563)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)
(Continue reading)

Ivan (JIRA | 1 Sep 03:13 2010
Picon

[jira] Commented: (GERONIMO-5567) jetty servlet/filter gbeans but direct listener creation not compatible with servlet 3 startup order


    [
https://issues.apache.org/jira/browse/GERONIMO-5567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904858#action_12904858
] 

Ivan commented on GERONIMO-5567:
--------------------------------

I have considered to serialize the web.xml info in the gbean, but seems that those jaxb class are not serializable.

> jetty servlet/filter gbeans but direct listener creation not compatible with servlet 3 startup order
> ----------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-5567
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5567
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Jetty
>    Affects Versions: 3.0
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 3.0
>
>
> Programatic addition of servlets and filters needs to happen after the web.xml stuff is processed
because some operations such as servletRegistration.addServletMapping() must do nothing if there is
an existing mapping in the list.
> we could make the listeners gbeans or put all the web.xml info in the web app gbean.  The latter would
probably work for tomcat too, we'd just do the servletCOntext registration stuff directly.
(Continue reading)

gawor | 1 Sep 06:10 2010
Picon

[BUILD] trunk: Failed for Revision: 991413

Geronimo Revision: 991413 built with tests included

See the full build-2100.log file at http://people.apache.org/builds/geronimo/server/binaries/trunk/20100831/build-2100.log

Download the binaries from http://people.apache.org/builds/geronimo/server/binaries/trunk/20100831
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29 minutes 19 seconds
[INFO] Finished at: Tue Aug 31 22:02:40 EDT 2010
[INFO] Final Memory: 446M/1012M
[INFO] ------------------------------------------------------------------------

TESTSUITE RESULTS (Failures only)
=================================

Assembly: tomcat
=================================
See full test results and logs at http://people.apache.org/builds/geronimo/server/binaries/trunk/20100831/logs-2100-tomcat/

Running TestSuite
Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 11.06 sec <<< FAILURE!

Assembly: jetty
=================================
See full test results and logs at http://people.apache.org/builds/geronimo/server/binaries/trunk/20100831/logs-2100-jetty/

Running TestSuite
Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 11.258 sec <<< FAILURE!
Running TestSuite
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.071 sec <<< FAILURE!
(Continue reading)

David Jencks | 1 Sep 07:59 2010
Picon

Re: [Discussion]Add more context level configurations for Tomcat


On Aug 30, 2010, at 11:21 PM, viola lu wrote:

Hi, dev:
 I am working on the "Add more context level configurations for Tomcat" jira: https://issues.apache.org/jira/browse/GERONIMO-5557.
Currently geronimo supports : work-dir, cross-context, cookies(disablecookies), docbase, path(context-path),allowlinking, after going through tomcat 7.0 context configuration page:http://tomcat.apache.org/tomcat-7.0-doc/config/context.html, here I list what I think we should add:

  • logEffectiveWebXml
  • useHttpOnly
  • cacheMaxSize
  • cacheObjectMaxSize
  • cachingAllowed
  • unloadDelay

Now there are two ways to add these context support:
  1. add these context configuration as elements one by one in geronimo-tomcat-2.0.1.xsd, and then map them with GBean paramters.
  2. add all context  configuration as one attribute in geronimo-tomcat-2.0.1.xsd, for example,
<xs:attribute name="context-options" type="xs:string" use="optional">
and filter this attribute avoiding any side effect, then map every configuration with corrresponding Gbean paramters.

The first one make code clear, the second one is easy for end-users to configure context in geronimo-web.xml for web apps.

Hi viola,

It looks to me from the tomcat documentation that context.xml uses the first style, with individual elements for each attribute.  I think making the configuration look more like context.xml would be a good idea, including using the same case for attribute names.

It looks like context.xml also lets you set servlet context parameters.  It its not too much work that might be nice for us to do too.

thanks
david jencks


Appreciate if you have any comments.

--
viola

viola lu | 1 Sep 08:05 2010
Picon

Re: [Discussion]Add more context level configurations for Tomcat

Thanks David. I will take the first way and add servlet context parameter tool.

On Wed, Sep 1, 2010 at 1:59 PM, David Jencks <david_jencks-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:

On Aug 30, 2010, at 11:21 PM, viola lu wrote:

Hi, dev:
 I am working on the "Add more context level configurations for Tomcat" jira: https://issues.apache.org/jira/browse/GERONIMO-5557.
Currently geronimo supports : work-dir, cross-context, cookies(disablecookies), docbase, path(context-path),allowlinking, after going through tomcat 7.0 context configuration page:http://tomcat.apache.org/tomcat-7.0-doc/config/context.html, here I list what I think we should add:

  • logEffectiveWebXml
  • useHttpOnly
  • cacheMaxSize
  • cacheObjectMaxSize
  • cachingAllowed
  • unloadDelay

Now there are two ways to add these context support:
  1. add these context configuration as elements one by one in geronimo-tomcat-2.0.1.xsd, and then map them with GBean paramters.
  2. add all context  configuration as one attribute in geronimo-tomcat-2.0.1.xsd, for example,
<xs:attribute name="context-options" type="xs:string" use="optional">
and filter this attribute avoiding any side effect, then map every configuration with corrresponding Gbean paramters.

The first one make code clear, the second one is easy for end-users to configure context in geronimo-web.xml for web apps.

Hi viola,

It looks to me from the tomcat documentation that context.xml uses the first style, with individual elements for each attribute.  I think making the configuration look more like context.xml would be a good idea, including using the same case for attribute names.

It looks like context.xml also lets you set servlet context parameters.  It its not too much work that might be nice for us to do too.

thanks
david jencks


Appreciate if you have any comments.

--
viola




--
viola
gawor | 1 Sep 08:09 2010
Picon

[BUILD] branches/2.1: Failed for Revision: 991441

Geronimo Revision: 991441 built with tests included

See the full build-0200.log file at http://people.apache.org/builds/geronimo/server/binaries/2.1/20100901/build-0200.log

 
See the unit test reports at http://people.apache.org/builds/geronimo/server/binaries/2.1/20100901/unit-test-reports

this realm = plexus.core
urls[0] = file:/usr/local/maven/lib/maven-2.0.9-uber.jar
Number of imports: 6
import: org.codehaus.classworlds.Entry <at> 4891bb28
import: org.codehaus.classworlds.Entry <at> f8e44ca4
import: org.codehaus.classworlds.Entry <at> c51bc9e7
import: org.codehaus.classworlds.Entry <at> bece5185
import: org.codehaus.classworlds.Entry <at> 3fee8e37
import: org.codehaus.classworlds.Entry <at> 3fee19d8
-----------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal
'org.codehaus.mojo.jspc:jspc-maven-plugin:2.0-alpha-2:compile': Unable to find the mojo
'org.codehaus.mojo.jspc:jspc-maven-plugin:2.0-alpha-2:compile' in the plugin 'org.codehaus.mojo.jspc:jspc-maven-plugin'
Lorg/codehaus/mojo/jspc/compiler/JspCompiler;
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager
executing goal 'org.codehaus.mojo.jspc:jspc-maven-plugin:2.0-alpha-2:compile': Unable to find
the mojo 'org.codehaus.mojo.jspc:jspc-maven-plugin:2.0-alpha-2:compile' in the plugin 'org.codehaus.mojo.jspc:jspc-maven-plugin'
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:562)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find the mojo
'org.codehaus.mojo.jspc:jspc-maven-plugin:2.0-alpha-2:compile' in the plugin 'org.codehaus.mojo.jspc:jspc-maven-plugin'
	at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:618)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:429)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
	... 16 more
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Unable to lookup component
'org.apache.maven.plugin.Mojoorg.codehaus.mojo.jspc:jspc-maven-plugin:2.0-alpha-2:compile',
it could not be created
	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
	at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:609)
	... 18 more
Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException: Could not
instanciate component: role: 'null', implementation: 'org.codehaus.mojo.jspc.CompileMojo'
	at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77)
	at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
	at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
	at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
	at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
	... 20 more
Caused by: java.lang.NoClassDefFoundError: Lorg/codehaus/mojo/jspc/compiler/JspCompiler;
	at java.lang.Class.getDeclaredFields0(Native Method)
	at java.lang.Class.privateGetDeclaredFields(Class.java:2259)
	at java.lang.Class.getDeclaredFields(Class.java:1715)
	at org.codehaus.groovy.reflection.CachedClass$2.run(CachedClass.java:217)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.codehaus.groovy.reflection.CachedClass.getFields(CachedClass.java:214)
	at groovy.lang.MetaClassImpl.addFields(MetaClassImpl.java:1719)
	at groovy.lang.MetaClassImpl.inheritFields(MetaClassImpl.java:1714)
	at groovy.lang.MetaClassImpl.setupProperties(MetaClassImpl.java:1603)
	at groovy.lang.MetaClassImpl.addProperties(MetaClassImpl.java:2508)
	at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:2479)
	at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getGlobalMetaClass(MetaClassRegistryImpl.java:253)
	at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.access$100(MetaClassRegistryImpl.java:45)
	at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl$LocallyKnownClasses.getFromGlobal(MetaClassRegistryImpl.java:112)
	at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl$LocallyKnownClasses.getMetaClass(MetaClassRegistryImpl.java:88)
	at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl$MyThreadLocal.getMetaClass(MetaClassRegistryImpl.java:361)
	at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:265)
	at org.codehaus.groovy.runtime.InvokerHelper.getMetaClass(InvokerHelper.java:729)
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.initMetaClass(ScriptBytecodeAdapter.java:799)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
	at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1105)
	at org.codehaus.groovy.runtime.InvokerHelper.invokeStaticMethod(InvokerHelper.java:804)
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeStaticMethodN(ScriptBytecodeAdapter.java:215)
	at org.codehaus.groovy.maven.mojo.GroovyMojo.<init>(GroovyMojo.groovy)
	at org.codehaus.mojo.jspc.CompilationMojoSupport.<init>(CompilationMojoSupport.groovy)
	at org.codehaus.mojo.jspc.CompileMojo.<init>(CompileMojo.groovy)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
	at java.lang.Class.newInstance0(Class.java:350)
	at java.lang.Class.newInstance(Class.java:303)
	at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
	... 24 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15 minutes 27 seconds
[INFO] Finished at: Wed Sep 01 02:19:58 EDT 2010
[INFO] Final Memory: 241M/561M
[INFO] ------------------------------------------------------------------------

Zhen Zhang (JIRA | 1 Sep 09:12 2010
Picon

[jira] Created: (GERONIMO-5568) fail to asembly custom server via admin console

fail to asembly custom server  via admin console
------------------------------------------------

                 Key: GERONIMO-5568
                 URL: https://issues.apache.org/jira/browse/GERONIMO-5568
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: Tomcat
    Affects Versions: 3.0
         Environment: OS:Windows XP SP3
Java Version: 1.6.0_20
Server:Geronimo 3.0-SNAPSHOT 

            Reporter: Zhen Zhang
            Priority: Minor
             Fix For: 3.0

setps to recur:
1、start geronimo server
2、Install hello sample (click "deploy new") (attachment)
3、Open "Applications --> Plugins" portlet(first click"create Geronimo plug-in",choose
"hello",then export the plug-in)
4、Click "Assemble a Server" button
then you will find following infomation:

 ERROR [[car-export]] Servlet.service() for servlet car-export threw exception
java.lang.NullPointerException
	at org.apache.geronimo.system.configuration.RepositoryConfigurationStore.writeToZip(RepositoryConfigurationStore.java:280)
	at org.apache.geronimo.system.configuration.RepositoryConfigurationStore.exportConfiguration(RepositoryConfigurationStore.java:268)
	at org.apache.geronimo.console.car.CARExportServlet.doGet(CARExportServlet.java:54)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:655)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:443)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
	at org.apache.geronimo.console.servlet.GenericForwardServlet.doPost(GenericForwardServlet.java:154)
	at org.apache.geronimo.console.servlet.GenericForwardServlet.doGet(GenericForwardServlet.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.geronimo.console.filter.XSSXSRFFilter.doFilter(XSSXSRFFilter.java:130)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:242)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
	at org.apache.geronimo.tomcat.security.SecurityValve.invoke(SecurityValve.java:89)
	at org.apache.geronimo.tomcat.security.jacc.JACCSecurityValve.invoke(JACCSecurityValve.java:54)
	at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:700)
	at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
	at org.apache.geronimo.tomcat.valve.ProtectedTargetValve.invoke(ProtectedTargetValve.java:53)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:146)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:402)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:254)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:267)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:245)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:260)
	at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:241)
	at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:371)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
2010-08-31 17:07:04,796 ERROR [[context-forward]] Servlet.service() for servlet context-forward
threw exception
java.lang.NullPointerException
	at org.apache.geronimo.system.configuration.RepositoryConfigurationStore.writeToZip(RepositoryConfigurationStore.java:280)
	at org.apache.geronimo.system.configuration.RepositoryConfigurationStore.exportConfiguration(RepositoryConfigurationStore.java:268)
	at org.apache.geronimo.console.car.CARExportServlet.doGet(CARExportServlet.java:54)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:655)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:443)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
	at org.apache.geronimo.console.servlet.GenericForwardServlet.doPost(GenericForwardServlet.java:154)
	at org.apache.geronimo.console.servlet.GenericForwardServlet.doGet(GenericForwardServlet.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.geronimo.console.filter.XSSXSRFFilter.doFilter(XSSXSRFFilter.java:130)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:242)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
	at org.apache.geronimo.tomcat.security.SecurityValve.invoke(SecurityValve.java:89)
	at org.apache.geronimo.tomcat.security.jacc.JACCSecurityValve.invoke(JACCSecurityValve.java:54)
	at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:700)
	at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
	at org.apache.geronimo.tomcat.valve.ProtectedTargetValve.invoke(ProtectedTargetValve.java:53)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:146)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:402)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:254)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:267)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:245)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:260)
	at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:241)
	at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:371)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)

--

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Zhen Zhang (JIRA | 1 Sep 09:16 2010
Picon

[jira] Updated: (GERONIMO-5568) fail to asembly custom server via admin console


     [
https://issues.apache.org/jira/browse/GERONIMO-5568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhen Zhang updated GERONIMO-5568:
---------------------------------

    Attachment: hello-2.1.1.2.war

this is the sample that I mentioned as the "hello sample"

> fail to asembly custom server  via admin console
> ------------------------------------------------
>
>                 Key: GERONIMO-5568
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5568
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Tomcat
>    Affects Versions: 3.0
>         Environment: OS:Windows XP SP3
> Java Version: 1.6.0_20
> Server:Geronimo 3.0-SNAPSHOT 
>            Reporter: Zhen Zhang
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: hello-2.1.1.2.war
>
>
> setps to recur:
> 1、start geronimo server
> 2、Install hello sample (click "deploy new") (attachment)
> 3、Open "Applications --> Plugins" portlet(first click"create Geronimo plug-in",choose
"hello",then export the plug-in)
> 4、Click "Assemble a Server" button
> then you will find following infomation:
>  ERROR [[car-export]] Servlet.service() for servlet car-export threw exception
> java.lang.NullPointerException
> 	at org.apache.geronimo.system.configuration.RepositoryConfigurationStore.writeToZip(RepositoryConfigurationStore.java:280)
> 	at org.apache.geronimo.system.configuration.RepositoryConfigurationStore.exportConfiguration(RepositoryConfigurationStore.java:268)
> 	at org.apache.geronimo.console.car.CARExportServlet.doGet(CARExportServlet.java:54)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:655)
> 	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:443)
> 	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
> 	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
> 	at org.apache.geronimo.console.servlet.GenericForwardServlet.doPost(GenericForwardServlet.java:154)
> 	at org.apache.geronimo.console.servlet.GenericForwardServlet.doGet(GenericForwardServlet.java:119)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> 	at org.apache.geronimo.console.filter.XSSXSRFFilter.doFilter(XSSXSRFFilter.java:130)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:242)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
> 	at org.apache.geronimo.tomcat.security.SecurityValve.invoke(SecurityValve.java:89)
> 	at org.apache.geronimo.tomcat.security.jacc.JACCSecurityValve.invoke(JACCSecurityValve.java:54)
> 	at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:700)
> 	at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
> 	at org.apache.geronimo.tomcat.valve.ProtectedTargetValve.invoke(ProtectedTargetValve.java:53)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:146)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:402)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:254)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:267)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:245)
> 	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:260)
> 	at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:241)
> 	at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:371)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)
> 2010-08-31 17:07:04,796 ERROR [[context-forward]] Servlet.service() for servlet context-forward
threw exception
> java.lang.NullPointerException
> 	at org.apache.geronimo.system.configuration.RepositoryConfigurationStore.writeToZip(RepositoryConfigurationStore.java:280)
> 	at org.apache.geronimo.system.configuration.RepositoryConfigurationStore.exportConfiguration(RepositoryConfigurationStore.java:268)
> 	at org.apache.geronimo.console.car.CARExportServlet.doGet(CARExportServlet.java:54)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:655)
> 	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:443)
> 	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
> 	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
> 	at org.apache.geronimo.console.servlet.GenericForwardServlet.doPost(GenericForwardServlet.java:154)
> 	at org.apache.geronimo.console.servlet.GenericForwardServlet.doGet(GenericForwardServlet.java:119)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> 	at org.apache.geronimo.console.filter.XSSXSRFFilter.doFilter(XSSXSRFFilter.java:130)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:242)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
> 	at org.apache.geronimo.tomcat.security.SecurityValve.invoke(SecurityValve.java:89)
> 	at org.apache.geronimo.tomcat.security.jacc.JACCSecurityValve.invoke(JACCSecurityValve.java:54)
> 	at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:700)
> 	at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
> 	at org.apache.geronimo.tomcat.valve.ProtectedTargetValve.invoke(ProtectedTargetValve.java:53)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:146)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:402)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:254)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:267)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:245)
> 	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:260)
> 	at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:241)
> 	at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:371)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)

--

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

gawor | 1 Sep 10:08 2010
Picon

[BUILD] trunk: Failed for Revision: 991451

Geronimo Revision: 991451 built with tests included

See the full build-0300.log file at http://people.apache.org/builds/geronimo/server/binaries/trunk/20100901/build-0300.log

 
See the unit test reports at http://people.apache.org/builds/geronimo/server/binaries/trunk/20100901/unit-test-reports

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Missing:
----------
1) org.apache.servicemix.bundles:org.apache.servicemix.bundles.javassist:jar:3.7.ga_1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.apache.servicemix.bundles
-DartifactId=org.apache.servicemix.bundles.javassist -Dversion=3.7.ga_1-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=org.apache.servicemix.bundles
-DartifactId=org.apache.servicemix.bundles.javassist -Dversion=3.7.ga_1-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
  	1) org.apache.geronimo.modules:geronimo-openwebbeans:bundle:3.0-SNAPSHOT
  	2) org.apache.servicemix.bundles:org.apache.servicemix.bundles.javassist:jar:3.7.ga_1-SNAPSHOT

----------
1 required artifact is missing.

for artifact: 
  org.apache.geronimo.modules:geronimo-openwebbeans:bundle:3.0-SNAPSHOT

from the specified remote repositories:
  apache.snapshots (http://repository.apache.org/snapshots),
  codehaus.snapshots (http://snapshots.repository.codehaus.org),
  openqa-snapshots (http://nexus.openqa.org/content/repositories/snapshots),
  local (file:///home/geronimo/.m2/jtidy.repository),
  ibiblio.org (http://maven.rtp.raleigh.ibm.com/nexus-proxy/),
  java.net.2 (http://download.java.net/maven/1/),
  jetty.oss.sonatype.org (http://oss.sonatype.org/content/repositories/jetty/),
  openqa-releases (http://nexus.openqa.org/content/repositories/releases),
  smx.svn (http://svn.apache.org/repos/asf/servicemix/m2-repo/)

	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:711)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
----------
1) org.apache.servicemix.bundles:org.apache.servicemix.bundles.javassist:jar:3.7.ga_1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.apache.servicemix.bundles
-DartifactId=org.apache.servicemix.bundles.javassist -Dversion=3.7.ga_1-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=org.apache.servicemix.bundles
-DartifactId=org.apache.servicemix.bundles.javassist -Dversion=3.7.ga_1-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
  	1) org.apache.geronimo.modules:geronimo-openwebbeans:bundle:3.0-SNAPSHOT
  	2) org.apache.servicemix.bundles:org.apache.servicemix.bundles.javassist:jar:3.7.ga_1-SNAPSHOT

----------
1 required artifact is missing.

for artifact: 
  org.apache.geronimo.modules:geronimo-openwebbeans:bundle:3.0-SNAPSHOT

from the specified remote repositories:
  apache.snapshots (http://repository.apache.org/snapshots),
  codehaus.snapshots (http://snapshots.repository.codehaus.org),
  openqa-snapshots (http://nexus.openqa.org/content/repositories/snapshots),
  local (file:///home/geronimo/.m2/jtidy.repository),
  ibiblio.org (http://maven.rtp.raleigh.ibm.com/nexus-proxy/),
  java.net.2 (http://download.java.net/maven/1/),
  jetty.oss.sonatype.org (http://oss.sonatype.org/content/repositories/jetty/),
  openqa-releases (http://nexus.openqa.org/content/repositories/releases),
  smx.svn (http://svn.apache.org/repos/asf/servicemix/m2-repo/)

	at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:360)
	at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:304)
	at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1499)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:442)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
	... 17 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13 minutes 46 seconds
[INFO] Finished at: Wed Sep 01 03:56:00 EDT 2010
[INFO] Final Memory: 379M/669M
[INFO] ------------------------------------------------------------------------


Gmane