[MAGNOLIA-1419] build of magnolia-module-samples fails (trunk) Created: 03/Mar/07  Updated: 23/Jan/13  Resolved: 26/Mar/07

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 3.1 M1
Fix Version/s: 3.1 M1

Type: Task Priority: Minor
Reporter: Oliver Lietz Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Mac OS X 10.4.8 (ppc)

java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)


Issue Links:
relation
is related to MAGNOLIA-1784 build : samples' jsps can't be compil... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:

 Description   

[INFO] ----------------------------------------------------------------------------
[INFO] Building magnolia-module-samples
[INFO] task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory [...]/trunk/magnolia-module-samples/target
[INFO] Deleting directory [...]/trunk/magnolia-module-samples/target/classes
[INFO] Deleting directory [...]/trunk/magnolia-module-samples/target/test-classes
[INFO] [tools:require-maven-version

{execution: default}

]
[INFO] [setproperty:set-property

{execution: currentDate}

]
[INFO] property magnolia.currentDate set to value 3. M?rz 2007 (scope: project)
[INFO] property magnolia.niceVersion set to value 3.1 (Snapshot: 03.03.2007 12:56:44) (scope: project)
[INFO] property magnolia.releaseDate set to value 3. M?rz 2007 (scope: project)
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[WARNING]
Artifact log4j:log4j:jar:1.2.13:runtime retains local scope 'runtime' overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or remove the local scope.

[INFO] [jspc:compile

{execution: jspc}

]
03.03.2007 12:56:56 org.apache.jasper.compiler.TldLocationsCache processWebDotXml
WARNUNG: Internal Error: File /WEB-INF/web.xml not found
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZLjava/lang/String;ZZLjava/lang/String;Ljava/lang/String;)V
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZLjava/lang/String;ZZLjava/lang/String;Ljava/lang/String;)V
at org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:584)
at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:397)
at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:250)
at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:180)
at org.apache.jasper.compiler.JspDocumentParser.getTaglibInfo(JspDocumentParser.java:1264)
at org.apache.jasper.compiler.JspDocumentParser.startPrefixMapping(JspDocumentParser.java:771)
at org.apache.xerces.parsers.AbstractSAXParser.startNamespaceMapping(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:179)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:199)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:102)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
at org.apache.jasper.JspC.processFile(JspC.java:994)
at org.apache.jasper.JspC.execute(JspC.java:1143)
at org.codehaus.mojo.jspc.AbstractJspcMojo.execute(AbstractJspcMojo.java:247)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
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)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 44 seconds
[INFO] Finished at: Sat Mar 03 12:56:59 CET 2007
[INFO] Final Memory: 14M/36M
[INFO] ------------------------------------------------------------------------



 Comments   
Comment by Magnolia International [ 26/Mar/07 ]

I think this is related to the tomcat version used by the jspc plugin. It used to work because we were using an older snapshot, which was using an older version of tomcat/jasper. Its now using 6.0.2-beta! I'll try explicitely make it used tomcat 5.0.28, which we should have done anyway, since that's the version we ship magnolia with.

Comment by Magnolia International [ 26/Mar/07 ]

ok, i first tried many things. then out of more ideas, I reverted to our older snapshot. Then just now, I tried again with the latest jspc snapshot and it works again. I guess we had a bad version lying in our local repos.
Can you try again with an updated trunk and the latest jspc snapshot?
("mvn -U -up clean install" will update your plugins)

Comment by Magnolia International [ 26/Mar/07 ]

see http://jira.codehaus.org/browse/MJSPC-11

Comment by Guillaume Pichenot [ 27/Mar/07 ]

>> Can you try again with an updated trunk and the latest jspc snapshot?

The fix worked for me. Thanks.

Comment by Oliver Lietz [ 27/Mar/07 ]

Works also with just "mvn clean install". This versions are in my .m2 repo:

jspc-maven-plugin-1.4.7-magnolia-20061207 (6. Jan. 2007)

jspc-maven-plugin-1.4.7-20061211.160053-1/jspc-maven-plugin-1.4.7-SNAPSHOT (26. Feb. 2007)

Generated at Mon Feb 12 03:26:44 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.