maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Edelson <justinedel...@gmail.com>
Subject Re: unable to run jetty
Date Fri, 21 May 2010 19:36:50 GMT
Isn't there a Jetty mailing list this would be more appropriate for?

On 5/21/10 3:34 PM, fachhoch wrote:
> 
> finally I got to make it work with jetty7
> the new problem I face is 
> jetty takes   3 minutes   after it logs this
> 
> 2010-05-21 15:26:47.975:INFO::No annotation on initializer class 
> 
> 
> org.apache.jasper.runtime.TldScanner
> log4j:ERROR Parsing error on line 10 and column 14
> log4j:ERROR The content of element type "layout" must match "(param)*".
> 2010-05-21 15:30:01.488:INFO:/artms:Initializing Spring root
> WebApplicationContext
> 
> 
> please tell me why is it taking so long after it writes to the log
> 
> 2010-05-21 15:26:47.975:INFO::No annotation on initializer class
> org.apache.jasper.runtime.TldScanner
> 
> 
> 
> 
> fachhoch wrote:
>>
>> That got resolved , but now a new problem
>>
>>
>> java.lang.IllegalArgumentException: Object is not of type class
>> org.mortbay.jetty.webapp.WebAppContext
>> 	at
>> org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:195)
>> 	at
>> org.eclipse.jetty.plus.webapp.EnvConfiguration.configure(EnvConfiguration.java:95)
>> 	at
>> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:975)
>> 	at
>> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:608)
>> 	at
>> org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:155)
>> 	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:349)
>> 	at
>> org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:102)
>> 	at
>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
>> 	at
>> org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
>> 	at
>> org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:162)
>> 	at
>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
>> 	at
>> org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
>> 	at
>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
>> 	at
>> org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)
>> 	at org.eclipse.jetty.server.Server.doStart(Server.java:231)
>> 	at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:69)
>> 	at
>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
>> 	at
>> org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:433)
>> 	at
>> org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:377)
>> 	at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:546)
>> 	at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
>> 	at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
>> 	at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
>> 	at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
>> 	at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
>> 	at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
>> 	at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
>> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
>> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
>> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
>> 	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)
>> 2010-05-21 13:45:10.731:INFO::Started SelectChannelConnector@0.0.0.0:8080
>> [INFO] Started Jetty Server
>> [INFO] Starting scanner at interval of 10 seconds.
>>
>>
>> here my jetty-env.xml
>>
>> <Configure class="org.mortbay.jetty.webapp.WebAppContext">
>> 		<Set name="parentLoaderPriority">true</Set>
>>         <New id="medis" class="org.mortbay.jetty.plus.naming.Resource">
>>         		<Arg></Arg>
>>                 <Arg>jdbc/artmsDataSource</Arg>
>>                 <Arg>
>>                         <New
>> class="org.apache.commons.dbcp.BasicDataSource">
>>                                 <Set
>> name="driverClassName">oracle.jdbc.driver.OracleDriver</Set>
>>                                 <Set
>> name="url">jdbc:oracle:thin:@xxxxxx:1521:sacf3</Set>
>>                                 <Set name="username">audt</Set>
>>                                 <Set name="password">xxxxxxxx</Set>
>>                         </New>
>>                 </Arg>
>>         </New>
>>         <New id="medis1" class="org.mortbay.jetty.plus.naming.Resource">
>>         		<Arg></Arg>
>>                 <Arg>jdbc/gatesDataSource</Arg>
>>                 <Arg>
>>                         <New
>> class="org.apache.commons.dbcp.BasicDataSource">
>>                                 <Set
>> name="driverClassName">oracle.jdbc.driver.OracleDriver</Set>
>>                                 <Set
>> name="url">jdbc:oracle:thin:@xxxxxx:1521:sacf3</Set>
>>                                 <Set name="username">gates</Set>
>>                                 <Set name="password">xxxxxxxx</Set>
>>                         </New>
>>                 </Arg>
>>         </New>
>>
>> </Configure>
>>
>>
>> please help me.
>>
>>
>>
>> mgainty wrote:
>>>
>>>
>>> possibly a corrupt jar
>>>
>>> can you download the project...compile,package and install to local
>>> repository
>>> (that way you have a non-corrupt jar to work with)
>>>
>>>
>>> http://mojo.codehaus.org/jetty-maven-plugin/usage.html
>>>
>>>
>>> Martin Gainty 
>>> ______________________________________________ 
>>> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>>>
>>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
>>> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
>>> unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese
>>> Nachricht dient lediglich dem Austausch von Informationen und entfaltet
>>> keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit
>>> von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>>>
>>> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas
>>> le destinataire prévu, nous te demandons avec bonté que pour satisfaire
>>> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
>>> copie de ceci est interdite. Ce message sert à l'information seulement et
>>> n'aura pas n'importe quel effet légalement obligatoire. Étant donné que
>>> les email peuvent facilement être sujets à la manipulation, nous ne
>>> pouvons accepter aucune responsabilité pour le contenu fourni.
>>>
>>>
>>>
>>>  
>>>
>>>> Date: Fri, 21 May 2010 09:52:51 -0700
>>>> From: fachhoch@gmail.com
>>>> To: users@maven.apache.org
>>>> Subject: Re: unable to run jetty
>>>>
>>>>
>>>> I tried 7.0.0.RC6
>>>>
>>>> and now I get this 
>>>>
>>>> 2010-05-21 12:51:41.871:INFO::jetty-7.0.0.RC6
>>>> 2010-05-21 12:51:41.888:WARN::Failed startup of context
>>>> JettyWebAppContext@ad2c11@ad2c11/artms,file:/E:/workspace/Audit.gov/audit.war/src/main/webapp/,file:/E:/workspace/Audit.gov/audit.war/src/main/webapp/
>>>> java.net.URISyntaxException: Illegal character in path at index 18:
>>>> file:/C:/Documents and
>>>> Settings/sairamm/.m2/repository/org/mortbay/jetty/jetty-maven-plugin/7.0.0.RC6/jetty-maven-plugin-7.0.0.RC6.jar
>>>> at java.net.URI$Parser.fail(URI.java:2809)
>>>>
>>>> please help me .
>>>>
>>>>
>>>>
>>>>
>>>> Anders Hammar wrote:
>>>>>
>>>>> Try "mvn jetty:run" instead (not ketty:run)? :-)
>>>>>
>>>>> Seriously, I assume you have the xml snippet within pluginManagement?
>>>> (I
>>>>> believe so as the specified version of the plugin is being used)
>>>>>
>>>>> For the commons-dbcp dependency you've specified system scope, but no
>>>>> path.
>>>>> That's wrong. It exists at central so just remove the scope.
>>>>>
>>>>> Have your tried any other version of the plugin? There is a bunch of
>>>> them
>>>>> for v7:
>>>>> http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-maven-plugin/
>>>>>
>>>>> /Anders
>>>>>
>>>>> On Fri, May 21, 2010 at 00:34, fachhoch <fachhoch@gmail.com> wrote:
>>>>>
>>>>>>
>>>>>> I added this plugin to my pom
>>>>>>
>>>>>> <plugin>
>>>>>> <groupId>org.mortbay.jetty</groupId>
>>>>>> <artifactId>jetty-maven-plugin</artifactId>
>>>>>> <version>7.0.0.pre5</version>
>>>>>> <configuration>
>>>>>> <scanIntervalSeconds>10</scanIntervalSeconds>
>>>>>> <webAppConfig>
>>>>>> <contextPath>/artms</contextPath>
>>>>>>
>>>>>> <jettyEnvXml>${basedir}/jetty-env.xml</jettyEnvXml>
>>>>>> </webAppConfig>
>>>>>> <reload>automatic</reload>
>>>>>> </configuration>
>>>>>> <dependencies>
>>>>>> <dependency>
>>>>>> <groupId>commons-dbcp</groupId>
>>>>>> <artifactId>commons-dbcp</artifactId>
>>>>>> <version>1.2.2</version>
>>>>>> <scope>system</scope>
>>>>>> </dependency>
>>>>>> <dependency>
>>>>>> <groupId>com.oracle</groupId>
>>>>>> <artifactId>ojdbc</artifactId>
>>>>>> <version>14</version>
>>>>>> </dependency>
>>>>>> </dependencies>
>>>>>> </plugin>
>>>>>>
>>>>>>
>>>>>> when I run the ketty:run I get this error
>>>>>>
>>>>>> please tell me what is wrong
>>>>>>
>>>>>> + Error stacktraces are turned on.
>>>>>> Apache Maven 2.1.0 (r755702; 2009-03-18 15:10:27-0400)
>>>>>> Java version: 1.6.0_11
>>>>>> Java home: C:\Program Files\Java\jdk1.6.0_11\jre
>>>>>> Default locale: en_US, platform encoding: Cp1252
>>>>>> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>>>>>> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
>>>> and
>>>>>> Settings\sairamm\.m2\plugin-registry.xml'
>>>>>> [DEBUG] Building Maven global-level plugin registry from:
>>>>>>
>>>> 'E:\dev\apache-maven-2.1.0-bin\apache-maven-2.1.0\conf\plugin-registry.xml'
>>>>>> [INFO] Scanning for projects...
>>>>>> [DEBUG] Searching for parent-POM: gov.audit:Audit.gov:pom:1 of
>>>> project:
>>>>>> gov.audit:audit.war:war:1 in relative path: ../pom.xml
>>>>>> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml'
>>>> for
>>>>>> project: gov.audit:audit.war:war:1
>>>>>> [DEBUG] Retrieving parent-POM:
>>>>>> org.apache.maven.plugins:maven-plugins:pom:8
>>>>>> for project: null:maven-compiler-plugin:maven-plugin:2.0.2 from the
>>>>>> repository.
>>>>>> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:5
>>>> for
>>>>>> project: org.apache.maven.plugins:maven-plugins:pom:8 from the
>>>>>> repository.
>>>>>> [DEBUG] Retrieving parent-POM: org.apache:apache:pom:3 for project:
>>>>>> org.apache.maven:maven-parent:pom:5 from the repository.
>>>>>> [DEBUG] Retrieving parent-POM: org.codehaus.gmaven:gmaven:pom:1.2
for
>>>>>> project: null:gmaven-plugin:maven-plugin:null from the repository.
>>>>>> [DEBUG] Adding managed dependencies for unknown:gmaven-plugin
>>>>>> [DEBUG] org.slf4j:slf4j-api:jar:1.5.10
>>>>>> [DEBUG] org.sonatype.gossip:gossip:jar:1.2
>>>>>> [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:1.2-alpha-13
>>>>>> [DEBUG]
>>>>>> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
>>>>>> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.5
>>>>>> [DEBUG] org.apache.maven:maven-core:jar:2.0.10
>>>>>> [DEBUG] org.apache.maven:maven-project:jar:2.0.10
>>>>>> [DEBUG] org.apache.maven:maven-artifact:jar:2.0.10
>>>>>> [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.10
>>>>>> [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.10
>>>>>> [DEBUG] org.apache.maven.reporting:maven-reporting-impl:jar:2.0.4.1
>>>>>> [DEBUG] org.apache.maven.shared:file-management:jar:1.2.1
>>>>>> [DEBUG] org.sonatype.gshell:gshell-io:jar:2.0
>>>>>> [DEBUG] jline:jline:jar:0.9.94
>>>>>> [DEBUG] com.thoughtworks.qdox:qdox:jar:1.8
>>>>>> [DEBUG] commons-lang:commons-lang:jar:2.4
>>>>>> [DEBUG] junit:junit:jar:3.8.2
>>>>>> [DEBUG] org.codehaus.gmaven.feature:gmaven-feature-api:jar:1.2
>>>>>> [DEBUG] org.codehaus.gmaven.feature:gmaven-feature-support:jar:1.2
>>>>>> [DEBUG] org.codehaus.gmaven.runtime:gmaven-runtime-api:jar:1.2
>>>>>> [DEBUG] org.codehaus.gmaven.runtime:gmaven-runtime-support:jar:1.2
>>>>>> [DEBUG] org.codehaus.gmaven.runtime:gmaven-runtime-loader:jar:1.2
>>>>>> [DEBUG] org.codehaus.gmaven.runtime:gmaven-runtime-1.5:jar:1.2
>>>>>> [DEBUG] org.codehaus.gmaven.runtime:gmaven-runtime-1.6:jar:1.2
>>>>>> [DEBUG] org.codehaus.gmaven.runtime:gmaven-runtime-1.7:jar:1.2
>>>>>> [DEBUG] org.codehaus.gmaven:gmaven-mojo:jar:1.2
>>>>>> [DEBUG] org.codehaus.gmaven:gmaven-mojo-support:jar:1.2
>>>>>> [DEBUG] org.codehaus.gmaven:gmaven-plugin:jar:1.2
>>>>>> [DEBUG] org.codehaus.gmaven:gmaven-packaging:jar:1.2
>>>>>> [DEBUG] Retrieving parent-POM:
>>>>>> org.mortbay.jetty:modules-extra:pom:7.0.0.pre5 for project:
>>>>>> null:jetty-maven-plugin:maven-plugin:null from the repository.
>>>>>> [DEBUG] Retrieving parent-POM:
>>>>>> org.mortbay.jetty:jetty-project:pom:7.0.0.pre5 for project:
>>>>>> null:modules-extra:pom:null from the repository.
>>>>>> [DEBUG] Retrieving parent-POM: org.mortbay.jetty:jetty-parent:pom:7
>>>> for
>>>>>> project: org.mortbay.jetty:jetty-project:pom:7.0.0.pre5 from the
>>>>>> repository.
>>>>>> [DEBUG] Adding managed dependencies for unknown:jetty-maven-plugin
>>>>>> [DEBUG] org.mortbay.jetty:servlet-api:jar:3.0.pre4
>>>>>> [DEBUG] org.apache.maven:maven-plugin-tools-api:jar:2.0
>>>>>> [DEBUG] junit:junit:jar:3.8.2
>>>>>> [DEBUG] org.slf4j:jcl104-over-slf4j:jar:1.3.1
>>>>>> [DEBUG] org.slf4j:slf4j-simple:jar:1.3.1
>>>>>> [DEBUG] ant:ant:jar:1.6.5
>>>>>> [DEBUG] org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1
>>>>>> [DEBUG] javax.mail:mail:jar:1.4
>>>>>> [DEBUG] javax.activation:activation:jar:1.1
>>>>>> [INFO]
>>>>>>
>>>> ------------------------------------------------------------------------
>>>>>> [ERROR] FATAL ERROR
>>>>>> [INFO]
>>>>>>
>>>> ------------------------------------------------------------------------
>>>>>> [INFO] null
>>>>>> [INFO]
>>>>>>
>>>> ------------------------------------------------------------------------
>>>>>> [DEBUG] Trace
>>>>>> java.lang.NullPointerException
>>>>>> at java.io.File.<init>(File.java:222)
>>>>>> at
>>>>>>
>>>>>>
>>>> org.apache.maven.project.artifact.MavenMetadataSource.createArtifacts(MavenMetadataSource.java:445)
>>>>>> at
>>>>>>
>>>>>>
>>>> org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:377)
>>>>>> at
>>>>>>
>>>>>>
>>>> org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:217)
>>>>>> at
>>>>>>
>>>>>>
>>>> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:177)
>>>>>> at
>>>>>>
>>>>>>
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1517)
>>>>>> at
>>>>>>
>>>>>>
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1722)
>>>>>> at
>>>>>>
>>>>>>
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:446)
>>>>>> at
>>>>>>
>>>>>>
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:176)
>>>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
>>>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
>>>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
>>>>>> 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)
>>>>>> [INFO]
>>>>>>
>>>> ------------------------------------------------------------------------
>>>>>> [INFO] Total time: < 1 second
>>>>>> [INFO] Finished at: Thu May 20 18:32:36 EDT 2010
>>>>>> [INFO] Final Memory: 4M/7M
>>>>>> [INFO]
>>>>>>
>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://old.nabble.com/unable-to--run-jetty-tp28627755p28627755.html
>>>>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>> -- 
>>>> View this message in context:
>>>> http://old.nabble.com/unable-to--run-jetty-tp28627755p28636457.html
>>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>  		 	   		  
>>> _________________________________________________________________
>>> The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with
>>> Hotmail. 
>>> http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
>>>
>>
>>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message