|
From: <jue...@we...> - 2004-10-06 08:06:13
|
Hi Thomas,
=20
Thanks for your kind words on Spring and the book! :-)
=20
Regarding class compatibility: Interoperability should be given for for =
all versions >=3D 1.1 final, as the remote invocation classes include =
the serialVersionUID of Spring 1.1 final. If client and server are the =
exact same version, it should always work anyway; mixing 1.1 final and =
1.1.1 should work too. What combination have you tried?
=20
I'll fix the readme regarding the directory location.
=20
Juergen
=20
________________________________
Von: spr...@li... im Auftrag =
von Thomas Baustert
Gesendet: Mi 06.10.2004 00:22
An: spr...@li...
Betreff: Re: [Springframework-developer] Spring Framework 1.1.1 released
Hi,
first of all:
@developer: great work so far with the spring framework!
@rod + @juergen: great "must read by every j2ee developer" book!.
@rod: cool presentation at JAOO. I heard people talking about
spring at breakfast, breaks, lunch, ... people get "spring infected!" :)
and then:
I download this release and try to run the jpetstore example.
Everything seems to work, but running the client (test remote service
access) throws the following exception. Running the 1.1.1 jpetstore with
a 1.1-rc2 client works (?!). Is it my fault?
And by the way, the readme.txt says 'run "client/client.bat 1000"'
but you must be in the directory "client" otherwise the classpath
doesn't fit.
Not very important to me, just to mentioned it ...
--- start ---
...
Calling OrderService 'hessianProxy' with order ID 1000
Got order with order ID 1000 and order date Tue Oct 05 00:00:00 CEST =
2004
Shipping address is: 901 San Antonio Road
LineItem 1: 1 piece(s) of item EST-9
Calling OrderService 'httpInvokerProxy' with order ID 1000
org.springframework.remoting.RemoteAccessException: Cannot access HTTP
invoker remote service at
[http://localhost:8080/jpetstore/remoting/OrderService-httpinvoker];
nested exception is java.io.InvalidClassException:
org.springframework.remoting.support.RemoteInvocationResult; local class
incompatible: stream classdesc serialVersionUID =3D 3460514161585267937,
local class serialVersionUID =3D 2138555143707773549
java.io.InvalidClassException:
org.springframework.remoting.support.RemoteInvocationResult; local class
incompatible: stream classdesc serialVersionUID =3D 3460514161585267937,
local class serialVersionUID =3D 2138555143707773549
at =
java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:463)
at =
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
at =
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)=
at =
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at =
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at
org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecut=
or.readRemoteInvocationResult(AbstractHttpInvokerRequestExecutor.java:126=
)
at
org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor=
.doExecuteRequest(SimpleHttpInvokerRequestExecutor.java:52)
at
org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecut=
or.executeRequest(AbstractHttpInvokerRequestExecutor.java:67)
at
org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.exe=
cuteRequest(HttpInvokerClientInterceptor.java:86)
at
org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.inv=
oke(HttpInvokerClientInterceptor.java:60)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Refl=
ectiveMethodInvocation.java:138)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAop=
Proxy.java:152)
at $Proxy1.getOrder(Unknown Source)
at
org.springframework.samples.jpetstore.service.client.OrderServiceClient.i=
nvokeOrderServices(OrderServiceClient.java:46)
at
org.springframework.samples.jpetstore.service.client.OrderServiceClient.m=
ain(OrderServiceClient.java:84)
Exception in thread "main"
--- end ---
j=FCrgen h=F6ller [werk3AT] wrote:
> Dear Spring community,
>=20
> I'm pleased to announce that Spring Framework 1.1.1 has just been =
released.
> This is a bugfix and minor enhancement release.
>=20
--
Ciao,
Thomas
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give =
us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out =
more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: Thomas B. <sp...@th...> - 2004-10-06 13:04:52
|
Hi Jürgen, it was my mistake. The jpetstore.war version 1.1-rc2 was extracted in the webapps directory and used instead of the new jpetstore.war 1.1.1. A clean deployment and it works :) Thanx jürgen höller [werk3AT] wrote: > Hi Thomas, > > Thanks for your kind words on Spring and the book! :-) > > Regarding class compatibility: Interoperability should be given for for all versions >= 1.1 final, as the remote invocation classes include the serialVersionUID of Spring 1.1 final. If client and server are the exact same version, it should always work anyway; mixing 1.1 final and 1.1.1 should work too. What combination have you tried? > > I'll fix the readme regarding the directory location. > > Juergen > > > ________________________________ > > Von: spr...@li... im Auftrag von Thomas Baustert > Gesendet: Mi 06.10.2004 00:22 > An: spr...@li... > Betreff: Re: [Springframework-developer] Spring Framework 1.1.1 released > > > > Hi, > > first of all: > > @developer: great work so far with the spring framework! > @rod + @juergen: great "must read by every j2ee developer" book!. > @rod: cool presentation at JAOO. I heard people talking about > spring at breakfast, breaks, lunch, ... people get "spring infected!" :) > > and then: > > I download this release and try to run the jpetstore example. > Everything seems to work, but running the client (test remote service > access) throws the following exception. Running the 1.1.1 jpetstore with > a 1.1-rc2 client works (?!). Is it my fault? > > And by the way, the readme.txt says 'run "client/client.bat 1000"' > but you must be in the directory "client" otherwise the classpath > doesn't fit. > > Not very important to me, just to mentioned it ... > > --- start --- > ... > Calling OrderService 'hessianProxy' with order ID 1000 > Got order with order ID 1000 and order date Tue Oct 05 00:00:00 CEST 2004 > Shipping address is: 901 San Antonio Road > LineItem 1: 1 piece(s) of item EST-9 > > Calling OrderService 'httpInvokerProxy' with order ID 1000 > org.springframework.remoting.RemoteAccessException: Cannot access HTTP > invoker remote service at > [http://localhost:8080/jpetstore/remoting/OrderService-httpinvoker]; > nested exception is java.io.InvalidClassException: > org.springframework.remoting.support.RemoteInvocationResult; local class > incompatible: stream classdesc serialVersionUID = 3460514161585267937, > local class serialVersionUID = 2138555143707773549 > java.io.InvalidClassException: > org.springframework.remoting.support.RemoteInvocationResult; local class > incompatible: stream classdesc serialVersionUID = 3460514161585267937, > local class serialVersionUID = 2138555143707773549 > at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:463) > at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521) > at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435) > at > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626) > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) > at > org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.readRemoteInvocationResult(AbstractHttpInvokerRequestExecutor.java:126) > at > org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.doExecuteRequest(SimpleHttpInvokerRequestExecutor.java:52) > at > org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:67) > at > org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:86) > at > org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:60) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138) > at > org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152) > at $Proxy1.getOrder(Unknown Source) > at > org.springframework.samples.jpetstore.service.client.OrderServiceClient.invokeOrderServices(OrderServiceClient.java:46) > at > org.springframework.samples.jpetstore.service.client.OrderServiceClient.main(OrderServiceClient.java:84) > Exception in thread "main" > > --- end --- > > jürgen höller [werk3AT] wrote: > >>Dear Spring community, >> >>I'm pleased to announce that Spring Framework 1.1.1 has just been released. >>This is a bugfix and minor enhancement release. >> > > > -- > Ciao, > Thomas > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > -- Ciao, Thomas |
|
From: Thomas B. <sp...@th...> - 2004-10-07 18:28:27
|
Hi,
I don't know if this is the right list for such points, so give me a tip
if not.
samples/petclinic (using spring 1.1.1, tomcat 5.0):
When activating the Log4jConfigListener in the web.xml to use logging
based on log4j one get a "java.lang.NoClassDefFoundError:
org/apache/log4j/PropertyConfigurator" on start because log4j.jar is not
in WEB-INF/lib (not in petclinic.war).
Adding the jar in the build.xml file fix it:
<target name="build" description="...">
...
<copy todir="${weblib.dir}" preservelastmodified="true">
...
<fileset dir="${spring.root}/lib/log4j">
<include name="log4j-*.jar"/>
</fileset>
</copy>
</target>
--
Ciao,
Thomas
|