|
From: Lars F. <lar...@gm...> - 2003-08-29 20:17:05
|
Forgot that SF sent me a notification ... sorry about that.
There *really* were problems but not with that mail.
In addition to the naming conventions for the jar packages:
Should it be
1a) jürgen.jar or 1b) jürgen-full.jar
or
2a) juergen.jar or 2b) juergen-full.jar
Maybe Spring could provide some kind of converter for developers
with names containing German 'Umlaut' :-)
Regards,
Lars
> Sorry, this was my fault. I just unblocked this email, which had been held
> up because the attachment was too big. Probably should have deleted it.
>
> Please note that I have to intervene for large attachments, and can't
> always
> do so right away. So try to keep the total size of mails down before 40K
> if
> possible.
>
> Regards,
> Rod
>
> ----- Original Message -----
> From: "jürgen höller [werk3AT]" <jue...@we...>
> To: "Lars Fischer" <lar...@gm...>
> Cc: <tri...@tr...>;
> <spr...@li...>
> Sent: Friday, August 29, 2003 7:14 PM
> Subject: Re: [Springframework-developer] Example classes needed
>
>
> > Oops, didn't see that ;-)
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Lars Fischer [mailto:lar...@gm...]
> > Gesendet: Fr 29.08.2003 20:14
> > An: jürgen höller [werk3AT]
> > Cc: tri...@tr...; spr...@li...
> > Betreff: Re: [Springframework-developer] Example classes needed
> >
> >
> >
> > Jürgen,
> >
> > look at the date of this mail (August 25), it's outdated !
> > There were some problems with the mailing lists at SF.
> >
> > Thanks
> > Lars
> >
> > > Lars,
> > >
> > > That seems to be because your Spring version do
> > > esn't contain a ContextLoaderServlet class, as we've intr
> > > oduced that after 0.9.1. As I'm in the process of releasi
> > > ng 1.0 M1 tonight, I suggest waiting for that release and
> > > migrating to it.
> > >
> > > 1.0 M1 contains ContextLoaderServle
> > > t among many other improvements. You'll just need to rena
> > > me all com.interface21 references to org.springframework
> > > then, both in your code and your XML application context
> > > files, as we've finally switched package names.
> > >
> > > Juerg
> > > en
> > >
> > >
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: L
> > > ars Fischer [mailto:lar...@gm...]
> > > Gesendet:
> > > Mo 25.08.2003 11:09
> > > An: tri...@tr...
> > > Cc: spr
> > > ing...@li...
> > > Betreff:
> > > Re: [Springframework-developer] Example classes needed
> > >
> > >
> > >
> > >
> > > Thomas,
> > >
> > > unfortunately I've deleted the worki
> > > ng petclinic.war yesterday and was not
> > > able to
> > > reprod
> > > uce it but I'll try to look into the logs.
> > >
> > > I've depl
> > > oyed the application with the following options in web.xm
> > > l:
> > >
> > > <listener>
> > >
> > > <listener-class>com.interface2
> > > 1.web.context.ContextLoaderListener</listener-class>
> > >
> > > </listener>
> > >
> > > <servlet>
> > > <servlet-name>cwxRootC
> > > ontext</servlet-name>
> > >
> > > <servlet-class>com.interface
> > > 21.web.context.ContextLoaderServlet</servlet-class>
> > >
> > > <load-on-startup>1</load-on-startup>
> > > </servlet>
> > >
> > > <servlet>
> > > <servlet-name>cwx</servlet-name>
> > >
> > >
> > > <servlet-class>com.interface21.web.servlet.DispatcherSe
> > > rvlet</servlet-class>
> > > <load-on-startup>2</load-on-s
> > > tartup>
> > > </servlet>
> > >
> > > Attached is the output from W
> > > ebLogic and TomCat (TomCat works without
> > > problems).
> > >
> > >
> > > WebLogic complains about not finding the requested clas
> > > s in the classpath.
> > >
> > > Hope this helps
> > > Lars
> > >
> > > > La
> > > rs,
> > > >
> > > > Loading ContextLoaderServlet as a servlet wit
> > > h load-on-startup set to 1
> > > > and
> > > > loading Dispatcher
> > > Servlet with load-on-startup set to 2 works for me on
> > > >
> > > WebLogic
> > > > 8.1 SP1. If it does not work, could you se
> > > nd me the web.xml and your log
> > > > output?
> > > >
> > > > Also,
> > > I get the same errors deploying the Petclinic, so it does
> > > not work
> > > > for me.
> > > > Can you send me the petclinic
> > > war file that works with WebLogic 8.1 SP1
> > > > so I
> > > > ca
> > > n try it on my server?
> > > >
> > > > Thomas
> > > >
> > > >
> > > > > Thoma
> > > s,
> > > > >
> > > > > thanks for the suggestion. Tried it but it
> > > doesn't work.
> > > > >
> > > > > This is a serious one:
> > > > >
> > > > > Tested my app with Tomcat 4.1.24 and it works.
> > > > >
> > >
> > > > > I does NOT work with
> > > > >
> > > > > WebLogic 8.1 SP1,
> > > WebLogic Express SP1, WebLogic 7.0 SP3.
> > > > >
> > > > > What
> > > makes me wonder is that Petclinic works with WebLogic 8.
> > > 1 SP1.
> > > > >
> > > > > Regards
> > > > > Lars
> > > > >
> > > > > > Lars,
> > >
> > > > > >
> > > > > > I have looked into this a little bit mor
> > > e. What happens is that
> > > > > > ServletContextListener.c
> > > ontextInitialized() method is called _after_
> > > > the
> > > >
> > > > > HttpServlet.init() method is called on servlets spec
> > > ified with
> > > > <load-on-
> > > > > > startup>. This causes t
> > > he xxx-servlet.xml to be loaded before the
> > > > > > applic
> > > ationContext.xml is loaded, so that is why you can't refe
> > > rence
> > > > > > the 'cwxDao' bean. This behavior is the op
> > > posite of what I see for
> > > > > > Tomcat,
> > > > > > and I'm
> > > sure the same is true for Orion and Resin that Juergen is
> > >
> > > > using.
> > > > > > I
> > > > > > looked in the Servlet 2.3 s
> > > pecification, but I did not see anything
> > > > > > specifyi
> > > ng
> > > > > > which order these methods should be called in.
> > > Maybe Juergen or Rod
> > > > can
> > > > > > shed
> > > > > > some
> > > more light on this issue.
> > > > > >
> > > > > > You should be
> > > able to use the ContextLoaderServlet for now.
> > > > > >
> > > >
> > > > > Thomas
> > > > > >
> > > > > >
> > > > > > > Lars,
> > > > > > >
> > > >
> > > > > > This might be a WebLogic specific issue - I just s
> > > aw similar error
> > > > when
> > > > > > I
> > > > > > > deployed my
> > > app in WebLogic 8.1.
> > > > > > >
> > > > > > > I will try to r
> > > esearch this in more detail later on today or
> > > > tomorro
> > > w.
> > > > > > In
> > > > > > > the
> > > > > > > meantime try this i
> > > n your web.xml
> > > > > > >
> > > > > > > <servlet>
> > > > > > > <s
> > > ervlet-name>cwxRootContext</servlet-name>
> > > > > > >
> > > > >
> > > >
> > > > <servlet-class>com.interface21.web.context.Context
> > > LoaderServlet</servlet-
> > > > > > class>
> > > > > > > <load-on
> > > -startup>1</load-on-startup>
> > > > > > > </servlet>
> > > > > >
> > > >
> > > > > > > <servlet>
> > > > > > > <servlet-name>cwx</servl
> > > et-name>
> > > > > > >
> > > > > >
> > > > >
> > > >
> > > <servlet-class>com
> > > .interface21.web.servlet.DispatcherServlet</servlet-class
> > > >
> > > > > > > <load-on-startup>2</load-on-startup>
> > > > > >
> > > > </servlet>
> > > > > > >
> > > > > > > Thomas
> > > > > > >
> > > > > >
> > > >
> > > > > > >
> > > > > > > > Thomas,
> > > > > > > >
> > > > > > > >
> > > attached is the web.xml.
> > > > > > > >
> > > > > > > > Without
> > > the ContextLoaderListener nothing would happen, not even
> > >
> > > > > > > > the Hibernate stuff in applicationContext.xml
> > > .
> > > > > > > >
> > > > > > > > Thanks
> > > > > > > > Lars
> > > > > >
> > > > >
> > > > > > > > > Lars,
> > > > > > > > >
> > > > > > > > > You
> > > did not include your web.xml, but my guess is you need to
> > >
> > > > add a
> > > > > > > > > ContextLoaderListener. The appl
> > > ication context has to be loaded
> > > > > > first,
> > > > > > >
> > > > > and the
> > > > > > > > > error messages indicates that
> > > the bean 'cwxDao' can't be found,
> > > > so
> > > > > > it
> > > > >
> > > > > > > looks like
> > > > > > > > > that did not happen.
> > >
> > > > > > > > >
> > > > > > > > > web.xml:
> > > > > > > > >
> > > > > >
> > > > > > <web-app>
> > > > > > > > >
> > > > > > > > > <!--
> > > > >
> > > > > > > - Loads the root application context of this we
> > > b app at
> > > > startup,
> > > > > > > > > - by default from "
> > > /WEB-INF/applicationContext.xml".
> > > > > > > > > -->
> > > >
> > > > > > > > <listener>
> > > > > > > > > <listener-
> > > class>
> > > > > > > > > com.interface21.web.context.Co
> > > ntextLoaderListener
> > > > > > > > > </listener-class>
> > > > > > > > > </listener>
> > > > > > > > >
> > > > > > > > >
> > > <!-- more definitions -->
> > > > > > > > >
> > > > > > > > > </
> > > web-app>
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Hope t
> > > his helps.
> > > > > > > > >
> > > > > > > > > Thomas
> > > > > > > >
> > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > Hi all Spr
> > > ing experts,
> > > > > > > > > >
> > > > > > > > > > can anyone p
> > > rovide me the example classes mentioned in several
> > > > >
> > > > > skeletons
> > > > > > > > >
> > > > > > > > > > (e.g. example
> > > Controller, exampleBusinessObject,
> > > > > > > exampleDataA
> > > ccessObject)
> > > > > > > > > ?
> > > > > > > > > >
> > > > > > > >
> > > > > The two provided sample applications don't reflect th
> > > e
> > > > skeletons
> > > > > > very
> > > > > > > > > well.
> > > > > >
> > > > > > > There should be one 'big' application showing all
> > > the stuff
> > > > and
> > > > > > many
> > > > > > > > > small
> > > > >
> > > > > > > > ones to show single options (like in WebWork 1
> > > ).
> > > > > > > > > >
> > > > > > > > > > I've defined the follo
> > > wing in applicationContext.xml (and it
> > > > > > works):
> > >
> > > > > > > > > >
> > > > > > > > > > <bean id="cwxDao" class="ex
> > > ample.dao.CwxDaoHibernate">
> > > > > > > > > > <property n
> > > ame="sessionFactory"><ref
> > > > > > > > > bean="cwxSessionF
> > > actory"/></property>
> > > > > > > > > > </bean>
> > > > > > > >
> > > > >
> > > > > > > > > > When defining
> > > > > > > > > >
> > > > > >
> > > > > > > (cwx-servlet.xml)
> > > > > > > > > >
> > > > > > > > >
> > > > <!-- Controller for the initial "Hello" page -->
> > > > >
> > > > > > > > <bean id="cwxController" class="example.web.Cw
> > > xController">
> > > > > > > > > > <property name="cwxDao"><
> > > ref external="cwxDao"/></property>
> > > > > > > > > > </bean
> > > >
> > > > > > > > > >
> > > > > > > > > > (CwxController)
> > > > > >
> > > > > > >
> > > > > > > > > > private CwxDao cwxDao;
> > > > > >
> > > > > > >
> > > > > > > > > > public void setCwxDao(CwxDao cwxD
> > > ao) {
> > > > > > > > > > this.cwxDao = cwxDao;
> > > > > > >
> > > > > > }
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > I always get
> > > > > > > > > >
> > > > > > > > > > ERROR [com.
> > > interface21.web.servlet.DispatcherServlet] -
> > > > <Servlet
> > >
> > > > > > with
> > > > > > > > > name
> > > > > > > > > > 'cwx' :
> > > initialization error>
> > > > > > > > > > com.interface21.bea
> > > ns.factory.NoSuchBeanDefinitionException:
> > > > No
> > > > > >
> > > bean
> > > > > > > > > named
> > > > > > > > > > [cwxDao] is defi
> > > ned {class
> > > > > > > > > com.interface21.beans.factory.xm
> > > l.XmlBeanFactory:
> > > > > > > > > > defined beans
> > > > > > [
> > > messageSource,viewResolver,urlMapping,cwxController]}
> > > >
> > > > > > > > >
> > > > > > > > > > This is the second time I ge
> > > t almost useless error messages.
> > > > This
> > > > > > is
> > > >
> > > > > > one
> > > > > > > > > > point where EJBs are far ahead
> > > (
> > > > > > > > > > there is almost always an error message
> > > telling you what
> > > > excactly
> > > > > > is
> > > > > > > > > >
> > > wrong).
> > > > > > > > > >
> > > > > > > > > > Another (dumb) q
> > > uestion:
> > > > > > > > > >
> > > > > > > > > > What is the diff
> > > erence between a DAO *implementation* and a
> > > > > > busin
> > > ess
> > > > > > > > > object
> > > > > > > > > > and where does
> > > > > > > > > > e. g. Petclinic reflect this ? I'm asking
> > > this because of the
> > > > > > > diiference
> > > > > > > > > >
> > > between the skeletons and the
> > > > > > > > > > sample appl
> > > ications. The skeletons provide a DAO and a
> > > > Business
> > >
> > > > > > Object
> > > > > > > > > using
> > > > > > > > > > the DA
> > > O definition,
> > > > > > > > > > Petclinic does not. The sam
> > > ples should be as close as possible
> > > > to
> > > > > > the
> > >
> > > > > > > > > > skeletons or the skeletons should
> > > > > > >
> > > > > > at least provide the java classes (shouldn't be to
> > > o hard).
> > > > > > > > > >
> > > > > > > > > > Thanks in advanc
> > > e
> > > > > > > > > > Lars
> > > > > > > > > >
> > > > > > > > > >
> > >
> > > > > > > > > >
> > > > > > > > > > ---------------------------
> > > ----------------------------
> > > > > > > > > > This SF.net
> > > email is sponsored by: VM Ware
> > > > > > > > > > With VMwar
> > > e you can run multiple operating systems on a single
> > > >
> > > > > > machine.
> > > > > > > > > > WITHOUT REBOOTING! Mix Lin
> > > ux / Windows / Novell virtual
> > > > machines
> > > > > > > > >
> > > > at the same time. Free trial click
> > > > > > > > > here:h
> > > ttp://www.vmware.com/wl/offer/358/0
> > > > > > > > > > _____
> > > __________________________________________
> > > > > > > > >
> > > > Springframework-developer mailing list
> > > > > > > > > >
> > > Spr...@li...
> > > > > > >
> > > > > >
> > > > > > https://lists.sourceforge.net/lists/listin
> > > fo/springframework-developer
> > > > > > > > > >
> > > > > > > >
> > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > >
> > > > > > >
> > > > > > >
> > > > > > > ------------------------
> > > -------------------------------
> > > > > > > This SF.net ema
> > > il is sponsored by: VM Ware
> > > > > > > With VMware you can
> > > run multiple operating systems on a single
> > > > machine.
> > >
> > > > > > > WITHOUT REBOOTING! Mix Linux / Windows / Novell
> > > virtual machines
> > > > > > > at the same time. Free trial
> > > click
> > > > > > here:http://www.vmware.com/wl/offer/358/0
> > > > > > > _______________________________________________
> > >
> > > > > > > Springframework-developer mailing list
> > > > > >
> > > > Spr...@li...
> > > > > >
> > > >
> > > > https://lists.sourceforge.net/lists/listinfo/sprin
> > > gframework-developer
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > >
> > > > > >
> > > > > >
> > > > > > -----------------------------------
> > > --------------------
> > > > > > This SF.net email is sponsor
> > > ed by: VM Ware
> > > > > > With VMware you can run multiple o
> > > perating systems on a single
> > > > machine.
> > > > > > WITHOUT
> > > REBOOTING! Mix Linux / Windows / Novell virtual machines
> > >
> > > > > > at the same time. Free trial click
> > > > > > here:
> > > http://www.vmware.com/wl/offer/358/0
> > > > > > ____________
> > > ___________________________________
> > > > > > Springframewo
> > > rk-developer mailing list
> > > > > > Springframework-develop
> > > er...@li...
> > > > > > https://lists.sourceforg
> > > e.net/lists/listinfo/springframework-developer
> > > > > >
> > >
> > > > >
> > > > >
> > > > >
> > > > > -----------------------------------
> > > --------------------
> > > > > This SF.net email is sponsored
> > > by: VM Ware
> > > > > With VMware you can run multiple opera
> > > ting systems on a single machine.
> > > > > WITHOUT REBOOTING
> > > ! Mix Linux / Windows / Novell virtual machines
> > > > > at
> > > the same time. Free trial click
> > > > here:http://www.vmwar
> > > e.com/wl/offer/358/0
> > > > > ______________________________
> > > _________________
> > > > > Springframework-developer mailing
> > > list
> > > > > Spr...@li....n
> > > et
> > > > > https://lists.sourceforge.net/lists/listinfo/spr
> > > ingframework-developer
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ----
> > > ---------------------------------------------------
> > > > T
> > > his SF.net email is sponsored by: VM Ware
> > > > With VMware
> > > you can run multiple operating systems on a single machi
> > > ne.
> > > > WITHOUT REBOOTING! Mix Linux / Windows / Novell v
> > > irtual machines
> > > > at the same time. Free trial click
> > >
> > > > here:http://www.vmware.com/wl/offer/358/0
> > > > _________
> > > ______________________________________
> > > > Springframewor
> > > k-developer mailing list
> > > > Springframework-developer@li
> > > sts.sourceforge.net
> > > > https://lists.sourceforge.net/lis
> > > ts/listinfo/springframework-developer
> > > >
> > >
> >
> >
> >
> >
> >
> > N éX'uÞ¼) Y\gé¢ bØHzG(J jgë°¢zí½í²x%R˦ (G^쮽h lq
> zmض?X (~zw X bË?
> jgë°¢zí½í²
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>
|