Michael,
A couple observations/notes:
- I don't know why you had to manually install the library (maybe the
repo was down?), but if you manually installed it then it makes sense
you had to install the other dependencies by hand. Maven manages those,
so installing the component lib artifact by hand cuts out the maven
dependency magic.
- If you got a message about a port address being in use, then you've
got another server running on it. My guess is that is process of another
project you're working on, or perhaps an attempted launch of the same
one. You'll want to find the parent process and kill it, then you don't
have to manually set your port.
- It seems like you're using 5.0.10-SNAPSHOT. The ExceptionReport page
hides all of the useful stuff unless you tell T5 to work in the new
'development' mode, which is disabled by default. Enable it like so:
public static void
contributeFactoryDefaults(MappedConfiguration<String, String>
configuration)
{
configuration.add(TapestryConstants.PRODUCTION_MODE_SYMBOL,
"true"); //false would be development
}
Hope this helps. Also, congrats Sven for frequent releases and improvements!
chris
Michael Gerzabek wrote:
Sven,
The component does work now. But now I'm getting deeper into troubles
... I was playing with T5 and jetty on port 8088. When I started with
t5components/GPlotter I got an exception saying address already in
use. So I changed the jetty port to 8888 and now everything is fine.
A small summary of things that worked for me:
- manually installed t5components. Is this the reason why I had to
also manually install opencsv and httpclient?
- manually installed opencsv-1.8 and commons-httpclient-3.1
- changed jetty port to 8888
NOW GPlotter works. But when I get an error, like when I put a wrong
adress - BTW German special chars are not allowed (ß,ä,ö,ü), is there
a way to change this? - the T5 error page is strangely rendered. No
line codes, no pretty dump of request and session. Why?
Doing this I also stumbled into another problem the beaneditor has. My
bean has a date field which automagically displays with the JS input
helper. When I use jetty on port 8088 I get an exception. When I use
jetty on port 8888 everything works fine and the calendar select is
opened.
There is one question left. Is it possible that you also post the
gplotterpage that you've included into your Demo section? I have no
clue how to implement this actionlink that you nicely put into to Demo.
Thank You
Michael
Sven Homburg schrieb:
hi michael,
you ve tried it with the right version of HTTPC.
is this jar in your WEB-INF/lib also?
2008/1/29, Michael Gerzabek <[EMAIL PROTECTED]>:
I tried t5components/GPlotter and got
[ERROR] GoogleMapService Construction of service GoogleMapService
failed: Error invoking service builder method
de.hsofttec.t5components.T5ComponentsModule.buildGoogleMapService(Logger,
Map) (at T5ComponentsModule.java:48) (for service 'GoogleMapService'):
org/apache/commons/httpclient/HttpConnectionManager
java.lang.RuntimeException: Error invoking service builder method
de.hsofttec.t5components.T5ComponentsModule.buildGoogleMapService(Logger,
Map) (at T5ComponentsModule.java:48) (for service 'GoogleMapService'):
org/apache/commons/httpclient/HttpConnectionManager
at
org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.createObject(
ServiceBuilderMethodInvoker.java:88)
at
org.apache.tapestry.ioc.internal.SingletonServiceLifecycle.createService(
SingletonServiceLifecycle.java:29)
...
Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/httpclient/HttpConnectionManager
at
de.hsofttec.t5components.T5ComponentsModule.buildGoogleMapService(
T5ComponentsModule.java:51)
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:585)
at
org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.createObject(
ServiceBuilderMethodInvoker.java:76)
... 75 more
I tried to add commons HTTPC3.1 but without success. Which version of
commons HttpClient does the component need?
BTW: In the documentation is
<div t:id="t5components/GPlotter" id="GPlotter" style="width: 500px;
height: 300px"/>
which should be
<div t:type="t5components/GPlotter" id="GPlotter" style="width: 500px;
height: 300px"/>
Michael
Sven Homburg schrieb:
Hi there,
the t5components release 0.5.4 is out now.
special thanks to Tod Orr and Ted Steen to let include
their components into T5Components
project page with demo click here
http://213.160.23.119:8080/t5components/
-----
best regards
Sven
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]