You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2014/12/16 09:11:13 UTC
[jira] [Resolved] (TOMEE-1477) TomEE wont start if added
maven-properties to
[ https://issues.apache.org/jira/browse/TOMEE-1477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Romain Manni-Bucau resolved TOMEE-1477.
---------------------------------------
Resolution: Fixed
Fix Version/s: 1.7.2
2.0.0-Milestone-1
Assignee: Romain Manni-Bucau
slightly reworked the patch cause it was no more respecting args ordering at least, hope it is still ok for you
> TomEE wont start if added maven-properties to <args>
> ----------------------------------------------------
>
> Key: TOMEE-1477
> URL: https://issues.apache.org/jira/browse/TOMEE-1477
> Project: TomEE
> Issue Type: Bug
> Components: TomEE Maven Plugin
> Affects Versions: 1.7.1
> Environment: Mac, osX
> Reporter: Reinhard Sandtner
> Assignee: Romain Manni-Bucau
> Priority: Minor
> Fix For: 2.0.0-Milestone-1, 1.7.2
>
> Attachments: TOMEE-1477-argsWithSpaces.patch, TOMEE-1477-fixedInMavenPlugin.patch, TOMEE-1477.patch
>
>
> if you have something like
> {code}
> <properties>
> <tomee.additional.args />
> <tomee.additional.ldap.args />
> </properties>
> <profiles>
> <profile>
> <id>tomee</id>
> <properties>
> <tomee.additional.ldap.args>-DldapPrinicpal=principal -DldapPassword=pass -DldapUrl=ldap://myurl:389</tomee.additional.ldap.args>
> </properties>
> </profile>
> </profiles>
> ...
> <plugin>
> <groupId>org.apache.openejb.maven</groupId>
> <artifactId>tomee-maven-plugin</artifactId>
> <version>${tomee.mavenplugin.version}</version>
> <configuration>
> <tomeeVersion>${tomee.version}</tomeeVersion>
> <tomeeClassifier>${tomee.classifier}</tomeeClassifier>
> <args>-Dopenejb.log.factory=log4j ${tomee.additional.args} ${tomee.additional.ldap.args} ${tomee.wps.additional.args}</args>
> ...
> {code}
> tomEE startup fails with message: can not find main class (my local message: Hauptklasse konnte nicht gefunden werden)
> the problem is that the first maven property is empty and will be passed as an emtpy String.
> this behavoir only occurs on my mac (and i think this issue will be on linux to). everything works fine on my windows-box.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)