Hi,
I am coding a plugin. When I try to start any of the goal I have the
following error
$ maven oc4jcore:shutdown
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2
org.apache.commons.jexl.parser.TokenMgrError: Lexical error at line 1,
column 9.
Encountered: ":" (58), after : ""
at
org.apache.commons.jexl.parser.ParserTokenManager.getNextToken(Parser
TokenManager.java:758)
at
org.apache.commons.jexl.parser.Parser.jj_scan_token(Parser.java:3084)
at org.apache.commons.jexl.parser.Parser.jj_3R_55(Parser.java:2541)
at org.apache.commons.jexl.parser.Parser.jj_3R_38(Parser.java:2674)
at org.apache.commons.jexl.parser.Parser.jj_3R_33(Parser.java:2649)
at org.apache.commons.jexl.parser.Parser.jj_3R_16(Parser.java:2657)
at org.apache.commons.jexl.parser.Parser.jj_3_2(Parser.java:2901)
at org.apache.commons.jexl.parser.Parser.jj_2_2(Parser.java:1937)
at org.apache.commons.jexl.parser.Parser.Statement(Parser.java:1473)
at org.apache.commons.jexl.parser.Parser.JexlScript(Parser.java:58)
at org.apache.commons.jexl.parser.Parser.parse(Parser.java:18)
at
org.apache.commons.jexl.ExpressionFactory.createNewExpression(Express
ionFactory.java:124)
at
org.apache.commons.jexl.ExpressionFactory.createExpression(Expression
Factory.java:88)
at
org.apache.commons.jelly.expression.jexl.JexlExpressionFactory.create
Expression(JexlExpressionFactory.java:106)
at
org.apache.commons.jelly.expression.CompositeExpression.parse(Composi
teExpression.java:128)
at
org.apache.commons.jelly.TagLibrary.createExpression(TagLibrary.java:
166)
at
org.apache.commons.jelly.parser.XMLParser.createTag(XMLParser.java:10
70)
at
org.apache.commons.jelly.parser.XMLParser.startElement(XMLParser.java
:647)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
ce)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
own Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at
org.apache.commons.jelly.parser.XMLParser.parse(XMLParser.java:299)
at
org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:222)
at
org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:180)
at
org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:146)
at
org.apache.maven.plugin.PluginManager.loadScript(PluginManager.java:1
109)
at
org.apache.maven.plugin.PluginManager.runScript(PluginManager.java:11
35)
at
org.apache.maven.plugin.PluginManager.initialiseHousingPluginContext(
PluginManager.java:770)
at
org.apache.maven.plugin.PluginManager.prepAttainGoal(PluginManager.ja
va:725)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
656)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at org.apache.maven.cli.App.doMain(App.java:488)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
You have encountered an unknown error running Maven. Please help us to
correct
this problem by following these simple steps:
- read the Maven FAQ at http://maven.apache.org/faq.html
- run the same command again with the '-e' parameter, eg maven -e jar
- search the maven-user archives for the error at
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]
- post the output of maven -e to JIRA at
http://jira.codehaus.org/BrowseProject.jspa?id=10030 (you must sign up
first)
- run 'maven --info' and post the output as the environment to the bug above
Total time: 1 seconds
Finished at: Wed Jul 06 15:25:22 CEST 2005
My plugin.jelly
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:ant="jelly:ant"
xmlns:m="jelly:maven"
xmlns:j="jelly:core"
xmlns:u="jelly:util">
<ant:property environment="env" />
<goal name="oc4jcore:start">
<ant:java jar="${env.OC4JCORE_HOME}/j2ee/home/admin.jar"
fork="true"
dir="${env.OC4JCORE_HOME}/j2ee/home" >
<ant:jvmarg value="-Xmx256m"/>
</ant:java>
</goal>
<goal name="oc4jcore:shutdown">
<ant:java jar="${env.OC4JCORE_HOME}/j2ee/home/admin.jar"
fork="true">
<ant:arg line="ormi://${oc4jcore.host}:${oc4jcore.port} admin
${oc4jcore.admin.passwd} -shutdown" />
</ant:java>
</goal>
<goal name="oc4jcore:restart">
<ant:java jar="${env.OC4JCORE_HOME}/j2ee/home/admin.jar"
fork="true">
<ant:arg line="ormi://${oc4jcore.host}:${oc4jcore.port} admin
${oc4jcore.admin.passwd} -restart" />
</ant:java>
</goal>
<goal name="oc4jcore:deploy">
<ant:java jar="${env.OC4JCORE_HOME}/j2ee/home/admin.jar"
fork="true">
<ant:arg line="ormi://${oc4jcore.host}:${oc4jcore.port} admin
${oc4jcore.admin.passwd} -deploy -file
${maven.build.dir}/${maven.final.name}.ear -deploymentName ${pom.groupId}"/>
</ant:java>
</goal>
<goal name="oc4jcore:undeploy">
<ant:java jar="${env.OC4JCORE_HOME}/j2ee/home/admin.jar"
fork="true">
<ant:arg line="ormi://${oc4jcore.host}:${oc4jcore.port} admin
${oc4jcore.admin.passwd} -undeploy ${pom.groupId} "/>
</ant:java>
</goal>
<goal name="oc4jcore:redeploy">
<attainGoal name="${oc4jcore:undeploy}"/>
<attainGoal name="${oc4jcore:deploy}"/>
</goal>
</project>
Thanks in advance for your help
Alexandre
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]