[JBoss Build System Development] New message: "AS build - Overriding the versions in component-matrix/pom.xml through version ranges"
by jaikiran pai
JBoss development,
A new message was posted in the thread "AS build - Overriding the versions in component-matrix/pom.xml through version ranges":
http://community.jboss.org/message/526525#526525
Author : jaikiran pai
Profile : http://community.jboss.org/people/jaikiran
Message:
--------------------------------------------------------------
I am seeing some weirdness with the AS build on our EJB3 build environment when version ranges are specified as system properties. In our EJB3 continuous integration builds, we build the AS with the following command:
mvn clean install -Dskip-download-sources -U '-Dversion.org.jboss.ejb3=[0,)'
'-Dversion.org.jboss.ejb3.common.client=[0,)'
'-Dversion.org.jboss.ejb3.core.client=[0,)'
'-Dversion.org.jboss.ejb3.proxy.client=[0,)'
'-Dversion.org.jboss.ejb3.proxy.clustered.client=[0,)'
'-Dversion.org.jboss.ejb3.security.client=[0,)'
'-Dversion.org.jboss.ejb3.jpa.int=[0,)'
'-Dversion.org.jboss.metadata.ejb=[0,)'
(All the -D params are on a single line in the actual setup. I had to split them into multiple lines in this post to get past the forum editor problem).
Let's take the -Dversion.org.jboss.ejb3=[0,) as an example. Assuming that the latest available version is 1.0.5-SNAPSHOT, i would have expected that the entire AS build would use this version and copy the 1.0.5-SNAPSHOT jar of this artifact to common/lib. This used to work so far (don't know when it stopped working). The issue we are currently seeing, is that "some" parts of the AS build correctly pick up 1.0.5-SNAPSHOT of this jar where as other parts of the build use 1.0.4 (the version that is explicitly set in component-matrix/pom.xml). I can see that the part of the build which uses the properties of the following format (just an example):
${maven.dependency.org.jboss.ejb3.jboss-ejb3_1.jar.path}
picks up the correct (latest SNAPSHOT) version. However, the "thirdparty" target in the build/build.xml picks up the version specified in the component-matrix/pom.xml.
I tried to figure out what's going on, and from what i see, it appears like the version ranges are *not* supported with the maven ant plugin's dependencies goal:
<maven:dependencies filesetId="pom.dependencies"
versionsId="pom.dependencies.versions"
scopes="compile, runtime">
<pom refid="pom.project"/>
</maven:dependencies>
(I printed out the "versionsId" property through a echo statement and i could see that it doesn't honour the version ranges)
If i change the build command to override using a specific version:
mvn clean install -Dskip-download-sources -U '-Dversion.org.jboss.ejb3=1.0.3'
things start working fine. But the moment i override through (any) version range, i start seeing the issue. Is it expected that the dependencies goal doesn't support version ranges?
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/526525#526525
14 years, 4 months
[JBoss Tools Development] New message: "JSP Validator gives errors if scriptlets are used"
by Matthew Robinson
JBoss development,
A new message was posted in the thread "JSP Validator gives errors if scriptlets are used":
http://community.jboss.org/message/526485#526485
Author : Matthew Robinson
Profile : http://community.jboss.org/people/mrobin21
Message:
--------------------------------------------------------------
Hello All,
I have just installed Eclipse Gallileo and the JBOSS Eclipse toolkit, and imported my Struts 1.2 project, which is fully functional and works fine without the JBOSS Eclipse toolkit.
No Errors are reported in the 'Problems' view, but I get errors when I attempt to run my website. When I view the JSP code in question, I see errors such as:
Syntax error on token(s), misplaced construct(s) on the word 'function' in a <script> tag within the JSP:
<script type="test/javascript">
<!--
function showLocation<%= location %>Banners() {
...
</script>
As you can see, the function name includes a scriptlet tag whereby the name includes the content of the location variable, which is created using a bean:define tag:
<bean:define id="location" name="banner:location" scope="request" type="java.lang.String" />
Once I remove the <%= location %> tag from the function name, the error goes away.
How may I configure the validator to correctly parse this file?
Kind regards,
Matt.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/526485#526485
14 years, 4 months
[JBoss Web Development] New message: "JSP Validator gives errors if scriptlets are used"
by Matthew Robinson
JBoss development,
A new message was posted in the thread "JSP Validator gives errors if scriptlets are used":
http://community.jboss.org/message/526480#526480
Author : Matthew Robinson
Profile : http://community.jboss.org/people/mrobin21
Message:
--------------------------------------------------------------
Hello All,
I have just installed Eclipse Gallileo and the JBOSS Eclipse toolkit, and imported my Struts 1.2 project, which is fully functional and works fine without the JBOSS Eclipse toolkit.
No Errors are reported in the 'Problems' view, but I get errors when I attempt to run my website. When I view the JSP code in question, I see errors such as:
Syntax error on token(s), misplaced construct(s) on the word 'function' in a <script> tag within the JSP:
<script type="test/javascript">
<!--
function showLocation<%= location %>Banners() {
...
</script>
As you can see, the function name includes a scriptlet tag whereby the name includes the content of the location variable, which is created using a bean:define tag:
<bean:define id="location" name="banner:location" scope="request" type="java.lang.String" />
Once I remove the <%= location %> tag from the function name, the error goes away.
How may I configure the validator to correctly parse this file?
Kind regards,
Matt.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/526480#526480
14 years, 4 months
[EJB 3.0 Development] New message: "Re: Proxy SPI"
by jaikiran pai
JBoss development,
A new message was posted in the thread "Proxy SPI":
http://community.jboss.org/message/526440#526440
Author : jaikiran pai
Profile : http://community.jboss.org/people/jaikiran
Message:
--------------------------------------------------------------
> mailto:david.lloyd@jboss.com wrote:
> For Javassist proxies, won't you need to specify a base class as well?
>
Yes. The proposed SPI takes the "interfaces" param, which actually isn't really interfaces. It's the array of types to which the resultant proxy can be cast to. So that would accomodate the base class.
> mailto:david.lloyd@jboss.com wrote:
>
> You could, in fact, have a single factory which returns a java.lang.reflect.Proxy if the base class is Object or Proxy, or a javassist proxy otherwise, could you not?
That could be done too. But any new proxyfactory implementations (cglib?) would then have to be accomodated into that single implementation.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/526440#526440
14 years, 4 months
[JBoss Microcontainer Development] New message: "Re: Optimizing ControllerState"
by Kabir Khan
JBoss development,
A new message was posted in the thread "Optimizing ControllerState":
http://community.jboss.org/message/526380#526380
Author : Kabir Khan
Profile : http://community.jboss.org/people/kabir.khan@jboss.com
Message:
--------------------------------------------------------------
Although this was a significant improvement, it is still a bottleneck in benchmarks/AS startup since isBeforeState() and isAfterState() are called so many times. They both need to look up both states in the map to get the individual indexes to be able to compare the indexes.
I am reworking MapControllerStateModel so that MapControllerStateModel.ControllerStateWrapper extends ControllerState, and to index the states set in the ControllerContexts by AbstractController so that when MapControllerStateModel is used it uses the ControllerStateWrappers directly which have the index there, meaning we don't need to look things up in the map. The results look good, but I also need to index the states stored in AbstractDependencyItems since they get passed in to Controller.getContext() which calls ControllerStateModel.isBeforeState() internally.\
Committed against https://jira.jboss.org/jira/browse/JBKERNEL-99
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/526380#526380
14 years, 4 months