Is it possible to show/load the index.html file with the standalone server?




Now i load the standalone snapshot server and the trunk example you used and
it works.

So I think I have done a missconfiguration of the server.

Thank you for your time.



Von: Romain Manni-Bucau [via OpenEJB]
[mailto:[email protected]]
Gesendet: Donnerstag, 11. Juli 2013 16:10
An: Can Eskikaya
Betreff: Re: openEJB standalone rest singlton

Hmm,

on trunk i get:


INFO: Setting the server's publish address to be
http://127.0.0.1:4204/rest-example-with-application-1.1.0-SNAPSHOT/rest-prefix
11 juil. 2013 16:05:59 org.apache.openejb.server.cxf.rs.CxfRsHttpListener
logEndpoints
INFO: REST Application:
http://127.0.0.1:4204/rest-example-with-application-1.1.0-SNAPSHOT/rest-prefix
     -> org.superbiz.rest.application.ApplicationConfig
11 juil. 2013 16:05:59 org.apache.openejb.server.cxf.rs.CxfRsHttpListener
logEndpoints
INFO:      Service URI:
http://127.0.0.1:4204/rest-example-with-application-1.1.0-SNAPSHOT/rest-prefix/ejb
 ->  EJB org.superbiz.rest.application.SimpleRESTEJB
11 juil. 2013 16:05:59 org.apache.openejb.server.cxf.rs.CxfRsHttpListener
logEndpoints
INFO:               GET
http://127.0.0.1:4204/rest-example-with-application-1.1.0-SNAPSHOT/rest-prefix/ejb/
->      String ejb()
11 juil. 2013 16:05:59 org.apache.openejb.server.cxf.rs.CxfRsHttpListener
logEndpoints
INFO:      Service URI:
http://127.0.0.1:4204/rest-example-with-application-1.1.0-SNAPSHOT/rest-prefix/pojo
-> Pojo org.superbiz.rest.application.SimpleRESTPojo
11 juil. 2013 16:05:59 org.apache.openejb.server.cxf.rs.CxfRsHttpListener
logEndpoints
INFO:               GET
http://127.0.0.1:4204/rest-example-with-application-1.1.0-SNAPSHOT/rest-prefix/pojo/->
     String pojo()

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog:
**http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/7/11 Can Eskikaya <[hidden
email]&lt;/user/SendEmail.jtp?type=node&amp;node=4664228&amp;i=0&gt;>

> So i used the maven project from the example site.
>
> And all running on openejb-standalone-4.6.0<
> https://repository.apache.org/content/groups/snapshots/org/apache/openejb/openejb-standalone/4.6.0-SNAPSHOT/openejb-standalone-4.6.0-20130711.040837-129.zip>
> snapshot server.
>
> Von: Romain Manni-Bucau [via OpenEJB] [mailto:
> [hidden
> email]&lt;/user/SendEmail.jtp?type=node&amp;node=4664228&amp;i=1&gt;]
> Gesendet: Donnerstag, 11. Juli 2013 14:57
> An: Can Eskikaya
> Betreff: Re: openEJB standalone rest singlton
>
> hmm,
>
> do you have a setup to reproduce it? (mvn project with tomee mvn plugin
> for
> instance)
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau &lt;https://twitter.com/rmannibucau&gt;*
> *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/7/11 Can Eskikaya <[hidden
> email]&lt;/user/SendEmail.jtp?type=node&amp;node=4664225&amp;i=0&gt;>
>
> > I thought my package is corrupted so i have build
> > the "openejb-examples-4.5.2\rest-example-with-application"
> > (rest-example-with-application-1.0.war)
> >
> > Unfortunately I have no success here.
> >
> > No service present.
> >
> > Regards
> > Can
> >
> >
> > Can Eskikaya wrote
> > > It just doesn´t work. The war package is unpacked, but no service
> > > provided.
> > >
> > > structure of "SERVICE".war
> > >
> > > service.war
> > >   |____ index.html
> > >   |____ WEB-INF
> > >               |___ classes
> > >               |          |____ xy.xxxx.yyyy.*
> > >               |___ web.xml
> > >
> > >
> > > Regards
> > > Can
> > > Romain Manni-Bucau wrote
> > >> Hi,
> > >>
> > >> in a war you don't need it, in a jar that's normal
> > >>
> > >> *Romain Manni-Bucau*
> > >> *Twitter: @rmannibucau
> &lt;https://twitter.com/rmannibucau&gt;*&lt;https://twitter.com/rmannibucau%3e*&gt;<
> https://twitter.com/rmannibucau%3e*>
> > >> *Blog:
> > >> **
> >
> http://rmannibucau.wordpress.com/*&lt;http://rmannibucau.wordpress.com/&gt&lt;http://rmannibucau.wordpress.com/*%3chttp:/rmannibucau.wordpress.com/%3e&gt;
> &lt;http://rmannibucau.wordpress.com/*%3chttp:/rmannibucau.wordpress.com/%3e&gt;
> > ;
> > >> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > >> *Github: https://github.com/rmannibucau*
> > >>
> > >>
> > >>
> > >> 2013/7/10 Can Eskikaya &lt;
> >
> > >> can.eskikaya@
> >
> > >> &gt;
> > >>
> > >>> Hey,
> > >>>
> > >>> i am using the standalone server and i want to implement a rest
> > service.
> > >>>
> > >>> I try out the examples and the only way to get a service is then i
> > >>> annotate
> > >>> the service class
> > >>> as singlton. Is that the normal way? Or is there a configuration
> file?
> > >>>
> > >>> Regards
> > >>> Can
> > >>>





--
View this message in context: 
http://openejb.979440.n4.nabble.com/openEJB-standalone-rest-singlton-tp4664204p4664230.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to