hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jamie Orchard-Hays" <ja...@dang.com>
Subject Re: the simplest example
Date Sat, 05 Feb 2005 22:54:24 GMT
I just threw the hivemind 1.0 jars into a simple tapestry web app, added the 
filter mapping to web.xml and started it in Tomcat--without the 
hivemodule.xml. It did what I expected and initialized the registry. This 
makes me wonder if there is an issue with JRun, which would REALLY SUCK. 
(Erik had problems with SiteMesh and JRun a few months back and was unable 
to use it.)

Here's the output from the Tomcat console:
Feb 5, 2005 5:50:02 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jamie from URL 
file:C:\jakarta
-tomcat-5.0.27\webapps\jamie
Feb 5, 2005 5:50:04 PM org.apache.hivemind.servlet.HiveMindFilter 
initializeRegi
stry
INFO: Constructing HiveMind Registry.
Feb 5, 2005 5:50:06 PM org.apache.hivemind.servlet.HiveMindFilter 
initializeRegi
stry
INFO: Constructed RegistryImpl[locale=en_US] in 1,773 milliseconds.




----- Original Message ----- 
From: "Brian K. Wallace" <brian@transmorphix.com>
To: <hivemind-user@jakarta.apache.org>
Sent: Saturday, February 05, 2005 5:42 PM
Subject: Re: the simplest example


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Correct. Note that I'm using 1.1-alpha (guess I should have asked what
> version you're using). This location for a descriptor is noted as being
> @since 1.1.
>
> Jamie Orchard-Hays wrote:
> | Thanks, Brian.
> |
> | I haven't tried the examples in here yet. Maybe I'll do that.
> |
> | You put hivemodule.xml in WEB-INF, not META-INF?
> |
> |
> | ----- Original Message ----- From: "Brian K. Wallace"
> | <brian@transmorphix.com>
> | To: <hivemind-user@jakarta.apache.org>
> | Sent: Saturday, February 05, 2005 5:17 PM
> | Subject: Re: the simplest example
> |
> |
> | Jamie -
> |
> | ~  I took the 'examples' classes/descriptor and put them in a test
> | web-app (more web-app than test as this was bugging me), added the
> | following lines to my web.xml, and was able to load
> | "examples.Calculator" and have it 'calculate' properly:
> |
> | <filter>
> | ~ <filter-name>hivemind</filter-name>
> | ~ 
> <filter-class>org.apache.hivemind.servlet.HiveMindFilter</filter-class>
> | </filter>
> |
> | <servlet>
> | ~ <servlet-name>site</servlet-name>
> | ~ <servlet-class>test.bkw.tapestry.SiteServlet</servlet-class>
> | ~ <load-on-startup>0</load-on-startup>
> | </servlet>
> |
> | <filter-mapping>
> | ~ <filter-name>hivemind</filter-name>
> | ~ <servlet-name>site</servlet-name>
> | </filter-mapping>
> |
> | The example classes were left extracted and placed in WEB-INF/classes,
> | the examples descriptor was renamed hivemodule.xml and placed in
> | WEB-INF, and the hivemind libraries (1.1 alpha - both hivemind and
> | hivemind-lib) placed in WEB-INF/lib. There was no coding past this
> | required except to retrieve the Calculator.
> |
> | HTH
> |
> | Brian
> |
> | Jamie Orchard-Hays wrote:
> | | Yes, they are in WEB-INF/lib of the web app. I just confirmed this.
> | |
> | | The registry construction is called by the HiveMindFilter.
> | |
> | | Jamie
> | |
> | |
> | | On Feb 5, 2005, at 1:49 PM, Brian K. Wallace wrote:
> | |
> | | <curiosity>
> | | Are the hivemind jars you're using on the classpath of the web-app 
> (vs.
> | | container) and do they have META-INF/hivemodule.xml files?
> | | Also, how are you constructing the registry? with
> | | "Registry.constructDefaultRegistry()"?
> | | </curiosity>
> | |
> | | Jamie Orchard-Hays wrote:
> | | | I realized WEB-INF was not the default, so I put hivemodule.xml in
> | | | META-INF/ but got the same result.
> | | |
> | | | Rather frustrated.
> | | |
> | | | Jamie
> | | |
> | | |
> | | | ----- Original Message ----- From: "Jamie Orchard-Hays"
> | | <jamie@dang.com>
> | | | To: <hivemind-user@jakarta.apache.org>; "Knut Wannheden"
> | | | <knut.wannheden@gmail.com>
> | | | Sent: Saturday, February 05, 2005 12:33 PM
> | | | Subject: Re: the simplest example
> | | |
> | | |
> | | |> Here's what I have right now:
> | | |>
> | | |> I'm using the HiveMindFilter, which is being loaded.
> | | |> in WEB-INF/ I've got hivemodule.xml, into which I copied the config
> | | |> and service points for Startup.
> | | |> When I startup, I get this error:
> | | |>
> | | |> 02/05 12:28:06 info [axis] Constructing HiveMind Registry.
> | | |> 02/05 12:28:06 error [axis] Service point hivemind.Startup does not
> | | |> exist.
> | | |> org.apache.hivemind.ApplicationRuntimeException: Service point
> | | |> hivemind.Startup
> | | |> does not exist.
> | | |>        at
> | | |>
> | org.apache.hivemind.impl.RegistryImpl.getServicePoint(RegistryImpl.ja
> | | |> va:142)
> | | |>
> | | |> So what am I missing in my configuration?
> | | |>
> | | |> Jamie
> | | |>
> | | |>
> | | |>
> | | |> ----- Original Message ----- From: "Knut Wannheden"
> | | |> <knut.wannheden@gmail.com>
> | | |> To: <hivemind-user@jakarta.apache.org>
> | | |> Sent: Saturday, February 05, 2005 11:34 AM
> | | |> Subject: Re: the simplest example
> | | |>
> | | |>
> | | |> Jamie,
> | | |>
> | | |> This probably belongs on an FAQ list somewhere. See
> | | |> http://article.gmane.org/gmane.comp.jakarta.hivemind.user/494.
> | | |>
> | | |> Regards,
> | | |>
> | | |> --knut
> | | |>
> | | |> On Sat, 5 Feb 2005 11:22:19 -0500, Jamie Orchard-Hays
> | <jamie@dang.com>
> | | |> wrote:
> | | |>
> | | |>> Since my last email, I (re)discovered the HiveMindFilter and have
> | | that
> | | |>> deployed to my Web app. Now I'm at the point of figuring out why
> | it's
> | | |>> telling me it can't find hivemind.Startup... At least I'm getting
> | | |>> somewhere now!
> | | |>>
> | | |>>
> | | |>> On Feb 5, 2005, at 12:00 AM, Albert Kwong wrote:
> | | |>>
> | | |>> > I put my hivemodule.xml file as well as all the files
> | | |>> > it loads up (e.g. submodule and resource files) into
> | | |>> > the META-INF directory.   Then the jar file created
> | | |>> > (say calculator.jar) can be dropped into any other
> | | |>> > project and be readily visible to the Registry.
> | | |>> >
> | | |>> > Albert
> | | |>> >
> | | |>> >  --- Jamie Orchard-Hays <jamie@dang.com> g
> |>
> - ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> |>
>
> | ---------------------------------------------------------------------
> | To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> | For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.5 (MingW32)
>
> iD8DBQFCBUvxaCoPKRow/gARAnLuAJ9Fpc/+LDun0g2ooAeyZT0JrKm52ACg0zJs
> ++caxk4S7dJ0WwV0E4itu4s=
> =hh0X
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Mime
View raw message