You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by kristian meier <kr...@jentro.com> on 2003/06/20 15:30:33 UTC

[merlin] singleton not really a singleton ??

Hi,

since I made a new build this week I have problems with components which 
are marked as singletons in the xtype-file
but get instantiated serveral times.

my setup is the following:

<block>
 
  <info>
    <name>proxy-server</name>
  </info>
 
  <implementation>
    <engine>
     <classpath>
      <fileset dir="../common/lib/common/jentro">
        <include name="com.jentro.http.jar"/>    
       </fileset>
      </classpath>
    </engine>

    <categories name="proxy" priority="INFO" target="log"/>

     <component name="http-server"
      class="com.jentro.http.components.impl.HttpServiceImpl">

      <categories priority="INFO" />

      <configuration>
    <port>4848</port>
      </configuration>
     
    </component>

   . . . .
   . . . .
 
    <container name="delegator">
     
      <engine>
        <classpath>
          <fileset dir="../navigation/lib/jentro">
             <include name="guidance.jar"/>    
          </fileset>
          <fileset dir="dist">
            <include name="proxy.server.jar"/>  
          </fileset>
        </classpath>
      </engine>
     
      <categories name="delegator" priority="INFO" target="log"/>

      <component name="find-proxy-ip"
        class="com.jentro.manager.proxy.client.server.FindProxyIPComposer"
        activation="startup"/>
     
    </container>
        . . . .

</block>


this configuration starts fine and works correct. but if I an add attribute
activation="startup"
to the "http-server" component than at time of instanciating the 
"find-proxy-ip"  component I get an "address already in use"-exception, 
because a second instance of the "http-server" is created :-(
the old build I use the last 2-3 weeks worked fine. so the question is 
moreless: is this a bug or a feature ? for me the activation attribute 
shouldn't have any effect on the singleton attribute. the effect I have 
when I deploy more than one of these Composer (all different types).

I have another place where I end up with to many different instances of 
singletons, but before digging into that I wanted to find out, if I 
understand the concept of singleton within the container hierachy of a 
block correctly.

with best wishes Kristian





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: [merlin] singleton not really a singleton ??

Posted by kristian meier <kr...@jentro.com>.

Stephen McConnell wrote:

>
>
> kristian meier wrote:
>
>> Hi,
>>
>> since I made a new build this week I have problems with components 
>> which are marked as singletons in the xtype-file
>> but get instantiated serveral times. 
>
>
>
> This problem is now fixed and updates have just been applied to CVS.
>
> The problem was a non-synchronized new instance call from the 
> singleton lifestyle helper.  If another request within a different 
> thread for the singleton instance was invoked before an inital request 
> had completed, the handler would invoke newInstance() again.  The 
> changes applied have been to synchronize a code block dealing with the 
> single instance establishment.
>
> Cheers, Steve.


that's working again, thanx !!
Kristian


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: [merlin] merlin intall faiure using maven ---help

Posted by Stephen McConnell <mc...@apache.org>.
Plugin looks ok.
So what exactly is the problem you are seeing?
Steve.

-- 

Stephen J. McConnell
mailto:mcconnell@apache.org
http://www.osm.net

Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: [merlin]my jndi extension suggestion

Posted by Stephen McConnell <mc...@apache.org>.

liu jie wrote:

>when one block want to use other block
>service,currently
>it using servicemanager passed by serviceable
>interface.
>

Yes - assuming you using the work "block" in the Phoenix context - i.e. 
a component with an xinfo describing services and dependencies.

>
>when my block dirve other modules, these moudles want
>to use other block's service, my block must pass it's
>servicemanager to these driven modules.
>

If I understand correctly - you have a component that is receiving a 
service manager and you want to pass this service manager on to other 
objects.  I would probably wrap the supplied service manager in another 
service manager before exposing it.

>
>i write a block for jetty, jetty drive a servlet, the 
>servlet want to use other block's service, i must pass 
>jetty block's servicemanager to servlet in servletcontext, 
>then the servlet get jetty block's servicemanager from 
>servletcontext and access other block's services.
>

This is workable.

>
>if my block logic complex , i must allways pass the
>block's servicemanagr from here the here.
>

You can always create a new service manager which contains additional 
services. 

  DefaultServiceManager manager = new DefaultServiceManager();
  manager.put( "some-key", myService );

>
>i write a block for apache axis, axis is a soap
>engine, it can translate a soap message to a rpc 
>invoking to a webservice, the soap engine only 
>translate a soap message to a webservice 
>rpc invoking. my webservice can not get the blocks
>servicemanager, so my webservice lonely and can 
>not get other blocks help(services).
>

Is there a problem declaring the dependencies that
the axis component has?  I'm not really following
completely the dependencies/service graph in this
example.

In principal you should be able to state the set of
services needed by any component, and the set of services
published by each component. From that you should be
able to draw a graph that connects provider components
with consumer components.

Hope that helps.

Steve.

-- 

Stephen J. McConnell
mailto:mcconnell@apache.org
http://www.osm.net

Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: [merlin]my jndi extension suggestion

Posted by liu jie <cn...@yahoo.com.cn>.
merlin manage services lifecycle good, lifestyle good,
services life quality need enhanced. they(services)
make friends not easy. jndi is a goods way making
firends of services. u can limit a service only make
friends with permitted services.

_________________________________________________________
Do You Yahoo!? 
网恋的诠释:真情还是放纵?
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/netlove

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: [merlin]my jndi extension suggestion

Posted by liu jie <cn...@yahoo.com.cn>.
when one block want to use other block
service,currently
it using servicemanager passed by serviceable
interface.

when my block dirve other modules, these moudles want
to
use other block's service, my block must pass it's
servicemanager
to these driven modules.

i write a block for jetty, jetty drive a servlet, the
servlet 
want to use other block's service, i must pass jetty
block's 
servicemanager to servlet in servletcontext, then the
servlet
get jetty block's servicemanager from servletcontext
and access
other block's services.

if my block logic complex , i must allways pass the
block's
servicemanagr from here the here.

i write a block for apache axis, axis is a soap
engine, it 
can translate a soap message to a rpc invoking to a
webservice,
the soap engine only translate a soap message to a
webservice 
rpc invoking. my webservice can not get the blocks
servicemanager,
so my webservice lonely and can not get other blocks
help(services).

 --- Stephen McConnell <mc...@apache.org>
的正文:> 
> 
> liu jie wrote:
> 
> > i want to use merlin as services server(services
> >container),especially my module will be blocks. my
> >blocks don't want to access(dependency) other
> services
> >using servicemanager but jndi way.
> >
> 
> This is for components inside a servlet ?
> 
> >
> >i saw Peter Donald's excalibur-naming-1.0, i
> suggest
> >plug the jndi MemoryContext  in merlin kernal.
> >
> 
> The approach I've been working on is to embed the
> kernel inside a JNDI 
> implementation.  This will enable full naming and
> directory 
> functionality while maintaining all of the
> publication/isolation 
> features within the merlin system.
> 
> >
> >if my block can access other services using jndi,
> what
> >is the function of servicable interface. 
> >
> 
> They are orthoginal.
> 
> The serviceable interface provides support for a
> container to "push" 
> services to a component.  JNDI provides support for
> an implememntation 
> to "pull" services in based on a standard naming and
> directory structure.
> 
> Cheers, Steve.
> 
> -- 
> 
> Stephen J. McConnell
> mailto:mcconnell@apache.org
> http://www.osm.net
> 
> Sent via James running under Merlin as an NT
> service.
> http://avalon.apache.org/sandbox/merlin
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@avalon.apache.org
> For additional commands, e-mail:
> dev-help@avalon.apache.org
>  

_________________________________________________________
Do You Yahoo!? 
网恋的诠释:真情还是放纵?
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/netlove

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: [merlin]my jndi extension suggestion

Posted by Stephen McConnell <mc...@apache.org>.

liu jie wrote:

> i want to use merlin as services server(services
>container),especially my module will be blocks. my
>blocks don't want to access(dependency) other services
>using servicemanager but jndi way.
>

This is for components inside a servlet ?

>
>i saw Peter Donald's excalibur-naming-1.0, i suggest
>plug the jndi MemoryContext  in merlin kernal.
>

The approach I've been working on is to embed the kernel inside a JNDI 
implementation.  This will enable full naming and directory 
functionality while maintaining all of the publication/isolation 
features within the merlin system.

>
>if my block can access other services using jndi, what
>is the function of servicable interface. 
>

They are orthoginal.

The serviceable interface provides support for a container to "push" 
services to a component.  JNDI provides support for an implememntation 
to "pull" services in based on a standard naming and directory structure.

Cheers, Steve.

-- 

Stephen J. McConnell
mailto:mcconnell@apache.org
http://www.osm.net

Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


[merlin]my jndi extension suggestion

Posted by liu jie <cn...@yahoo.com.cn>.
 i want to use merlin as services server(services
container),especially my module will be blocks. my
blocks don't want to access(dependency) other services
using servicemanager but jndi way.

i saw Peter Donald's excalibur-naming-1.0, i suggest
plug the jndi MemoryContext  in merlin kernal.


if my block can access other services using jndi, what
is the function of servicable interface. 

_________________________________________________________
Do You Yahoo!? 
网恋的诠释:真情还是放纵?
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/netlove

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: [merlin] merlin intall faiure using maven ---help

Posted by liu jie <cn...@yahoo.com.cn>.
 update
$MAVEN_HOME/plugins/maven-jar-plugin-1.0/plugin.jelly
using follwing:

<?xml version="1.0"?>

<project 
  xmlns:j="jelly:core"
  xmlns:ant="jelly:ant"
  xmlns:license="license"
  xmlns:maven="jelly:maven"
  xmlns:deploy="deploy"
  xmlns:resources="resources"
  xmlns:util="jelly:util"
  xmlns:doc="doc"
  xmlns:m="maven">

  <!--
==================================================================
-->
  <!-- J A R                                          
                   -->
  <!--
==================================================================
-->
  <goal name="jar" prereqs="jar:jar" 
    description="Create the deliverable jar file."/>
    
  <goal name="jar:jar"
        description="Create the deliverable jar file."
        prereqs="test:test">

    <ant:available
property="maven.jar.manifest.available" 
      file="${maven.jar.manifest}"/>

    <!-- See
http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html
-->
    <!-- See
http://java.sun.com/j2se/1.4.1/docs/guide/jar/jar.html
-->
    <ant:jar
     
jarfile="${maven.build.dir}/${maven.final.name}.jar"
      basedir="${maven.build.dest}"
      index="true"
      excludes="${maven.jar.excludes}"> 
      
      <j:if test="${maven.jar.manifest.available}">
        <ant:setProperty name="manifest"
value="${maven.jar.manifest}" />
      </j:if>

      <j:set
var="licenseFileName"><license:fileName/></j:set>
      <util:file name="${licenseFileName}"
var="licenseFile"/>
      <ant:metainf
dir="${licenseFile.canonicalFile.parent}">
        <ant:include
name="${licenseFile.canonicalFile.name}"/>
      </ant:metainf>
      <ant:manifest>
        <ant:attribute name="Built-By"
value="${user.name}"/>
        <ant:attribute name="Created-By" value="Apache
Jakarta Maven"/>
        <ant:attribute name="Package"
value="${pom.package}"/>
        <ant:attribute name="Build-Jdk"
value="${java.version}"/>
        <!-- added supplementary entries -->
        <ant:attribute name="Extension-Name"
value="${pom.artifactId}"/>
        <ant:attribute name="Specification-Version"
value="${pom.specificationVersion}"/>
        <ant:attribute name="Specification-Vendor"
value="${pom.organization.name}"/>
        <ant:attribute name="Specification-Title"
value="${pom.shortDescription}"/>
        <ant:attribute name="Implementation-Version"
value="${pom.currentVersion}"/>
        <ant:attribute name="Implementation-Vendor"
value="${pom.organization.name}"/>
        <ant:attribute name="Implementation-Vendor-Id"
value="${pom.organization.identifier}"/>
        <j:set var="mainclass"
value="${pom.getPluginContext('maven-java-plugin').getVariable('maven.jar.mainclass')}"/>
        <j:if test="${!empty(mainclass)}">
            <ant:attribute name="Main-Class"
value="${mainclass}"/>
        </j:if>
        
        <j:if
test="${maven.jar.manifest.extensions.add} == 'true'">
          <j:set var="extensionList" value=""/>
          <j:forEach var="artifact"
items="${pom.artifacts}">
            <j:set var="dep"
value="${artifact.dependency}"/>
            <j:set var="extensionList"
value="${extensionList} ${dep.artifactId}"/>
          </j:forEach>

		  <j:if test="${extensionList.length() != 0}">      
 
            <j:set var="extensionList"
value="${extensionList.substring(1)}"/>
            <ant:attribute name="Extension-List"
value="${extensionList}"/>
          </j:if>

        
          <j:forEach var="artifact"
items="${pom.artifacts}">
            <j:set var="dep"
value="${artifact.dependency}"/>
	        <ant:attribute
name="${dep.artifactId}-Extension-Name"
value="${dep.artifactId}"/>
            <ant:attribute
name="${dep.artifactId}-Implementation-Version"
value="${dep.version}"/>
            <ant:attribute
name="${dep.artifactId}-Implementation-URL"
value="http://www.ibiblio.org/maven${artifact.urlPath}"/>
          </j:forEach>        
        </j:if>
      </ant:manifest>
    </ant:jar>
  </goal>

  <!--
==================================================================
-->
  <!-- S N A P S H O T  J A R                         
                   -->
  <!--
==================================================================
-->

  <goal
    name="jar:snapshot"
    description="Create a snapshot jar, ie
'id-YYYYMMDD.hhmmss.jar'">

    <maven:snapshot project="${pom}"/>    

    <j:set var="maven.final.name"
value="${snapshotSignature}"/>
    <ant:echo>Building snapshot JAR:
${maven.final.name}</ant:echo>
    
    <attainGoal name="jar:jar"/>
    
  </goal>

  <!--
==================================================================
-->
  <!-- D E P L O Y  S N A P S H O T                   
                   -->
  <!--
==================================================================
-->

  <goal
    name="jar:deploy-snapshot"
    description="Deploy a snapshot jar to the remote
repository">

    <m:user-check user="${maven.username}"/>
    <attainGoal name="jar:snapshot"/>
    <ant:property name="maven.jar.to.deploy"
value="${maven.final.name}.jar"/>
    <ant:property name="dir" 
     
value="${maven.repo.central.directory}/${pom.artifactDirectory}/jars"/>
    
    <util:replace var="jarToDeploy" oldChar="\"
newChar="/">${maven.build.dir}/${maven.jar.to.deploy}</util:replace>
    <util:replace var="forwardSlashBaseDir"
oldChar="\" newChar="/" value="${basedir}"/>
    <j:if
test="${!forwardSlashBaseDir.endsWith('/')}">
      <j:set var="base"
value="${forwardSlashBaseDir}/" />
    </j:if>
    <j:set
var="relativePath">${jarToDeploy.substring(base.length())}</j:set>
    
    <deploy:artifact
      artifact="${relativePath}"
      type="jars"
      assureDirectoryCommand="mkdir -p"
      siteCommand="cd @deployDirectory@; chmod g+w
${maven.jar.to.deploy}; chgrp ${maven.remote.group}
${maven.jar.to.deploy}; ln -sf ${maven.jar.to.deploy}
${pom.artifactId}-SNAPSHOT.jar; echo
${snapshotVersion} >
${pom.artifactId}-snapshot-version"
    />
                    
  </goal>

  <!--
==================================================================
-->
  <!-- D E P L O Y  J A R                             
                   -->
  <!--
==================================================================
-->

  <goal
    name="jar:deploy"
    description="Deploy a jar to the remote
repository">

    <m:user-check user="${maven.username}"/>
    <attainGoal name="jar:jar"/>
    <ant:property name="maven.jar.to.deploy"
value="${maven.final.name}.jar"/>
    
    <j:set var="sl" value="/"/>
    <util:replace var="jarToDeploy" oldChar="\"
newChar="/">${maven.build.dir}/${maven.jar.to.deploy}</util:replace>
    <util:replace var="forwardSlashBaseDir"
oldChar="\" newChar="/" value="${basedir}"/>
    <j:if
test="${!forwardSlashBaseDir.endsWith('/')}">
      <j:set var="base"
value="${forwardSlashBaseDir}/" />
    </j:if>
    <j:set
var="relativePath">${jarToDeploy.substring(base.length())}</j:set>

    <deploy:artifact
      artifact="${relativePath}"
      type="jars"
      assureDirectoryCommand="mkdir -p"
      siteCommand="cd @deployDirectory@; chmod g+w
${maven.jar.to.deploy}; chgrp ${maven.remote.group}
${maven.jar.to.deploy}"
    />

  </goal>

  <!--
==================================================================
-->
  <!-- I N S T A L L   J A R                          
                   -->
  <!--
==================================================================
-->

  <goal name="jar:install" prereqs="jar:jar"
    description="Install the jar in the local
repository">
    
    <ant:echo>
    id = '${pom.artifactId}'
    groupId = '${pom.groupId}'
    artifactDirectory = '${pom.artifactDirectory}'
    </ant:echo>
    
    <ant:property name="jardir__"
value="${maven.repo.local}/${pom.artifactDirectory}/jars"/>
    <ant:mkdir dir="${jardir__}"/>    
    <ant:copy 
     
file="${maven.build.dir}/${maven.final.name}.jar"
      todir="${jardir__}"
      overwrite="true"
    />
  </goal>

  <!--
==================================================================
-->
  <!-- I N S T A L L  S N A P S H O T                 
                     -->
  <!--
==================================================================
-->

  <goal
    name="jar:install-snapshot" prereqs="jar:snapshot"
    description="Install a snapshot jar in the local
repository">

    <ant:property name="jardir__"
value="${maven.repo.local}/${pom.artifactDirectory}/jars"/>
    <ant:mkdir dir="${jardir__}"/>
    <ant:copy
     
file="${maven.build.dir}/${maven.final.name}.jar"
     
tofile="${jardir__}/${pom.artifactId}-SNAPSHOT.jar"
      overwrite="true"
    />
    <ant:copy
     
file="${maven.build.dir}/${maven.final.name}.jar"
      tofile="${jardir__}/${maven.final.name}.jar"
    />
  </goal>
</project>


_________________________________________________________
Do You Yahoo!? 
网恋的诠释:真情还是放纵?
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/netlove

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


[merlin] merlin intall faiure using maven ---help

Posted by liu jie <cn...@yahoo.com.cn>.
2003-06-22 21:18:40,490 ERROR
org.apache.commons.jelly.tags.ant.AntTag - Class
com.werken.werkz.jelly.ProjectTag doesn't support the
nested "path" element.
2003-06-22 21:18:40,490 ERROR
org.apache.commons.jelly.tags.ant.AntTag - Class
org.apache.commons.jelly.tags.core.IfTag doesn't
support the nested "path" element.
2003-06-22 21:18:40,540 WARN 
org.apache.commons.jelly.expression.jexl.JexlExpression
- Caught exception evaluating:
org.apache.commons.jexl.ExpressionImpl@113981b.
Reason: java.lang.NumberFormatException: For input
string: "includes"
java.lang.NumberFormatException: For input string:
"includes"
	at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Integer.parseInt(Integer.java:426)
	at java.lang.Integer.valueOf(Integer.java:532)
	at
org.apache.commons.jexl.util.Coercion.coerceInteger(Coercion.java:95)
	at
org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:177)
	at
org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:104)
	at
org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:106)
	at
org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:88)
	at
org.apache.commons.jexl.parser.ASTNotNode.value(ASTNotNode.java:88)
	at
org.apache.commons.jexl.parser.ASTExpression.value(ASTExpression.java:85)
	at
org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:123)
	at
org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpression.java:115)
	at
org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$ExpressionSupportLocal.evaluate(JexlExpressionFactory.java:168)
	at
org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:106)
	at
org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsBoolean(ExpressionSupport.java:116)
	at
org.apache.commons.jelly.tags.core.WhenTag.doTag(WhenTag.java:90)
	at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at
org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:84)
	at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at
com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:112)
	at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at
org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:112)
	at
org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:139)
	at
org.apache.maven.plugin.PluginManager.loadPlugin(PluginManager.java:684)
	at
org.apache.maven.plugin.PluginManager.prepForGoal(PluginManager.java:486)
	at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:375)
	at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:369)
	at
org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:374)
	at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at
com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:116)
	at com.werken.werkz.Goal.fire(Goal.java:639)
	at com.werken.werkz.Goal.attain(Goal.java:575)
	at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:394)
	at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:357)
	at org.apache.maven.cli.App.doMain(App.java:524)
	at org.apache.maven.cli.App.main(App.java:1080)
	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:324)
	at
com.werken.forehead.Forehead.run(Forehead.java:543)
	at
com.werken.forehead.Forehead.main(Forehead.java:573)
2003-06-22 21:18:40,570 WARN 
org.apache.commons.jelly.expression.jexl.JexlExpression
- Caught exception evaluating:
org.apache.commons.jexl.ExpressionImpl@dd75a4. Reason:
java.lang.NumberFormatException: For input string:
"excludes"
java.lang.NumberFormatException: For input string:
"excludes"
	at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Integer.parseInt(Integer.java:426)
	at java.lang.Integer.valueOf(Integer.java:532)
	at
org.apache.commons.jexl.util.Coercion.coerceInteger(Coercion.java:95)
	at
org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:177)
	at
org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:104)
	at
org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:106)
	at
org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:88)
	at
org.apache.commons.jexl.parser.ASTNotNode.value(ASTNotNode.java:88)
	at
org.apache.commons.jexl.parser.ASTExpression.value(ASTExpression.java:85)
	at
org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:123)
	at
org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpression.java:115)
	at
org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$ExpressionSupportLocal.evaluate(JexlExpressionFactory.java:168)
	at
org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:106)
	at
org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsBoolean(ExpressionSupport.java:116)
	at
org.apache.commons.jelly.tags.core.WhenTag.doTag(WhenTag.java:90)
	at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at
org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:84)
	at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at
com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:112)
	at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at
org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:112)
	at
org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:139)
	at
org.apache.maven.plugin.PluginManager.loadPlugin(PluginManager.java:684)
	at
org.apache.maven.plugin.PluginManager.prepForGoal(PluginManager.java:486)
	at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:375)
	at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:369)
	at
org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:374)
	at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at
com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:116)
	at com.werken.werkz.Goal.fire(Goal.java:639)
	at com.werken.werkz.Goal.attain(Goal.java:575)
	at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:394)
	at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:357)
	at org.apache.maven.cli.App.doMain(App.java:524)
	at org.apache.maven.cli.App.main(App.java:1080)
	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:324)
	at
com.werken.forehead.Forehead.run(Forehead.java:543)
	at
com.werken.forehead.Forehead.main(Forehead.java:573)
2003-06-22 21:18:40,590 ERROR
org.apache.commons.jelly.tags.ant.AntTag - Class
org.apache.commons.jelly.tags.core.OtherwiseTag
doesn't support the nested "property" element.
2003-06-22 21:18:40,590 ERROR
org.apache.commons.jelly.tags.ant.AntTag - Class
com.werken.werkz.jelly.ProjectTag doesn't support the
nested "patternset" element.
2003-06-22 21:18:40,600 WARN  org.apache.c> To
unsubscribe, e-mail:
> dev-unsubscribe@avalon.apache.org
> For additional commands, e-mail:
> dev-help@avalon.apache.org
>  

_________________________________________________________
Do You Yahoo!? 
网恋的诠释:真情还是放纵?
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/netlove

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: [merlin] merlin intall faiure using maven ---help

Posted by Stephen McConnell <mc...@apache.org>.
Unfortunately the maven.log file is not terribly useful (it is typically 
full of internal maven stuff).
Instead - could you post the information that maven is logging to the 
console.  This would give an indication of where the build is failing. 

Secondly, have you applied the patch to Maven 9?
http://avalon.apache.org/sandbox/merlin/resources/notebook.html

Cheers, Steve.

liu jie wrote:

>attach my maven.log
>          thnx for help...
>
>
>
>  
>
>>To unsubscribe, e-mail:
>>dev-unsubscribe@avalon.apache.org
>>For additional commands, e-mail:
>>dev-help@avalon.apache.org
>> 
>>    
>>
>
>_________________________________________________________
>Do You Yahoo!? 
>ÍøÁµµÄÚ¹ÊÍ£ºÕæÇ黹ÊÇ·Å×Ý£¿
>http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/netlove
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
>For additional commands, e-mail: dev-help@avalon.apache.org
>
>
>
>  
>

-- 

Stephen J. McConnell
mailto:mcconnell@apache.org
http://www.osm.net

Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


[merlin] merlin intall faiure using maven ---help

Posted by liu jie <cn...@yahoo.com.cn>.
attach my maven.log
          thnx for help...



> To unsubscribe, e-mail:
> dev-unsubscribe@avalon.apache.org
> For additional commands, e-mail:
> dev-help@avalon.apache.org
>  

_________________________________________________________
Do You Yahoo!? 
网恋的诠释:真情还是放纵?
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.surveys.yahoo.com/netlove

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: [merlin] singleton not really a singleton ??

Posted by Stephen McConnell <mc...@apache.org>.

kristian meier wrote:

> Hi,
>
> since I made a new build this week I have problems with components 
> which are marked as singletons in the xtype-file
> but get instantiated serveral times. 


This problem is now fixed and updates have just been applied to CVS.

The problem was a non-synchronized new instance call from the singleton 
lifestyle helper.  If another request within a different thread for the 
singleton instance was invoked before an inital request had completed, 
the handler would invoke newInstance() again.  The changes applied have 
been to synchronize a code block dealing with the single instance 
establishment.

Cheers, Steve.

-- 

Stephen J. McConnell
mailto:mcconnell@apache.org
http://www.osm.net

Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: [merlin] singleton not really a singleton ??

Posted by Stephen McConnell <mc...@apache.org>.
Retration!

I've managed to establish a test case where I can get two different 
instances for a singleton if I use the statup activation policy.  Now I 
can start digging.

Steve.


Stephen McConnell wrote:

>
> Kristian:
>
> Have tested this out and I cannot get into a situation where a 
> particular singleton is not supplying the same instance identity 
> (indepedently of any activation policy).  I.e. everything appears to 
> be functioning correctly.

-- 

Stephen J. McConnell
mailto:mcconnell@apache.org
http://www.osm.net

Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: [merlin] singleton not really a singleton ??

Posted by Stephen McConnell <mc...@apache.org>.
Kristian:

Have tested this out and I cannot get into a situation where a 
particular singleton is not supplying the same instance identity 
(indepedently of any activation policy).  I.e. everything appears to be 
functioning correctly.

Casn you post the xinfo file of the component that is not behaving like 
a singleton?

Steve.

p.s. to be real confident about your environment:

  1. do a CVS update
  2. delete the jar files in the merlin installation directories:
       /lib/shared
       /lib/system
  3. invoke the command:
     $ maven merlin-libs
  4. if the problem persists at least you keno you have a clean 
installation.

SJM


Stephen McConnell wrote:

>
>
> kristian meier wrote:
>
>> Hi,
>>
>> since I made a new build this week I have problems with components 
>> which are marked as singletons in the xtype-file
>> but get instantiated serveral times.
>>
>> my setup is the following:
>>
> <snip-interesting-block-directive/>
>
>>
>>
>>
>> this configuration starts fine and works correct. but if I an add 
>> attribute activation="startup" to the "http-server" component than at 
>> time of instanciating the "find-proxy-ip"  component I get an 
>> "address already in use"-exception, because a second instance of the 
>> "http-server" is created :-( 
>
>
>
> That's not good!
>
>>
>> the old build I use the last 2-3 weeks worked fine. so the question 
>> is moreless: is this a bug or a feature ? 
>
>
>
> It's a bug.
> I was doing messing with the activation policy stuff a couple of weeks 
> ago - looks like I've done something silly.
>
>> for me the activation attribute shouldn't have any effect on the 
>> singleton attribute. the effect I have when I deploy more than one of 
>> these Composer (all different types).
>>
>> I have another place where I end up with to many different instances 
>> of singletons, but before digging into that I wanted to find out, if 
>> I understand the concept of singleton within the container hierachy 
>> of a block correctly. 
>
>
>
> What you expecting to happen should be happening.  I'm going to put 
> together a testcase asap and see what is happening.
>
> Cheers, Steve.
>
>>
>>
>> with best wishes Kristian
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
>> For additional commands, e-mail: dev-help@avalon.apache.org
>>
>>
>>
>

-- 

Stephen J. McConnell
mailto:mcconnell@apache.org
http://www.osm.net

Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: [merlin] singleton not really a singleton ??

Posted by Stephen McConnell <mc...@apache.org>.

kristian meier wrote:

> Hi,
>
> since I made a new build this week I have problems with components 
> which are marked as singletons in the xtype-file
> but get instantiated serveral times.
>
> my setup is the following:
>
<snip-interesting-block-directive/>

>
>
>
> this configuration starts fine and works correct. but if I an add 
> attribute activation="startup" to the "http-server" component than at 
> time of instanciating the "find-proxy-ip"  component I get an "address 
> already in use"-exception, because a second instance of the 
> "http-server" is created :-( 


That's not good!

>
> the old build I use the last 2-3 weeks worked fine. so the question is 
> moreless: is this a bug or a feature ? 


It's a bug.
I was doing messing with the activation policy stuff a couple of weeks 
ago - looks like I've done something silly.

> for me the activation attribute shouldn't have any effect on the 
> singleton attribute. the effect I have when I deploy more than one of 
> these Composer (all different types).
>
> I have another place where I end up with to many different instances 
> of singletons, but before digging into that I wanted to find out, if I 
> understand the concept of singleton within the container hierachy of a 
> block correctly. 


What you expecting to happen should be happening.  I'm going to put 
together a testcase asap and see what is happening.

Cheers, Steve.

>
>
> with best wishes Kristian
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
> For additional commands, e-mail: dev-help@avalon.apache.org
>
>
>

-- 

Stephen J. McConnell
mailto:mcconnell@apache.org
http://www.osm.net

Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org