Help installing geronimo

2008-03-26 Thread Kenneth P. Turvey
I'm trying to install Geronimo with Jetty on my VPS.  I'm new to JEE and 
would just like a system to play with, but I'm also replacing an existing 
system so I have a few requirements that I'm trying to meet and I can't 
seem to get it to work.  

There are three names that I would like to have resolved to Geronimo:

www.squeakydolphin.com
kt.squeakydolphin.com
www.evolutionprograms.com

In addition the name www.evolutionaryprograms.com should just redirect to 
www.evolutionprograms.com

I can set these to come in on different IPs if necessary, the current 
nameserver configuration has www.evolutionprograms.com on its own IP with 
www.evolutionaryprograms.com pointing to it.  

I would like to be able to serve static content on these three pages 
directly from Geronimo without running a separate instance of apache or 
anything else.  I'd like to easily make changes to this static content.  
In addition, there are a few stand alone JSP pages I would like served 
and a single .war file I would like to install.  

For now, that's it.  Unfortunately I can't seem to get even the static 
content served correctly or the different domains even answering.  

If someone could point me in the right direction, I would greatly 
appreciate it.  

-- 
Kenneth P. Turvey <[EMAIL PROTECTED]>   



Re: maven2: deployment quickstart?

2008-03-26 Thread David Jencks
[2] ought to be able to deploy to remote servers with no problem..  
That said I haven't tried it.  If it doesn't work it's probably a  
very simple fix.  Basically you just need to specify where the remote  
server is.


From your description it sounds like you are assuming the app server  
is an existing monolithic thing that doesn't really participate in  
this process.  We are trying to develop an alternate viewpoint where  
the  "app server" is something constructed around your application to  
provide the runtime support it needs to operate.  With this point of  
view you would either assemble an app server containing your  
application(s) or construct assembly instructions and ship these to  
the remote servers and then start the preconfigured servers with your  
application already installed.


We have a lot of this working in 2.1.  The "predeployment" of apps  
into geronimo plugins and assembly of servers from geronimo plugins  
work well.  Currently the easiest to use assembly recipe is a maven  
project.  We don't have distribution worked out too well.  If you can  
run the assembly project or some other maven project on the remote  
machine that would work fine.  There's also some remote management  
capabilities using gshell, but I'm not sure how advanced they are.


I'm curious about what kind of remote management you expect to have  
for the remote servers.


In any case I hope you find this interesting and continue to discuss  
how it might fit into what you are trying to do.


thanks
david jencks

On Mar 26, 2008, at 1:51 PM, Kristian Rink wrote:


Folks;

being in the middle of evaluating a bunch of different options (i.o.w.
application servers) to serve as a future platform for most of our  
(both

Spring and, sooner or later, EJB3 based) projects, I am just by now
dealing with Geronimo 2, partly hoping for a pretty decent maven2
support in terms of deploying modules (given they're both apache
projects). So far we're using tomcat 6 and codehaus' tomcat-maven- 
plugin

[1] in order to deploy .war artifacts to remote tomcat installments
(both testing and production systems). And I am curious to see whether
there's something like that for geronimo (2.x), some maven2 plugin  
that
allows for building and remote deployment of war, ear, EJB jars in  
a way
similar to the tomcat approach. So far I just stumbled across [2]  
which

mainly seems to deal with deploying to locally installed geronimo
instances and, asides that, leaves quite a bunch of questions  
unanswered
(including how to actually integrate these plugins with maven2 in  
order

to build and then deploy, say, an arbitrary war artifact to a geronimo
server). [3] unfortunately completely avoids talking about maven2.

Can any of the kind souls on this list enlighten me about this?

Many thanks in advance, kind regards.
Kristian




[1]http://mojo.codehaus.org/tomcat-maven-plugin/deployment.html
[2]http://geronimo.apache.org/maven/server/maven-plugins/geronimo- 
maven-plugin/index.html
[3]http://www.ibm.com/developerworks/library/os-ag-remotedeploy/ 
index.html




Re: data source without trace file specified is unusable

2008-03-26 Thread David Jencks

See https://issues.apache.org/jira/browse/GERONIMO-3440.

I've fixed the source and deployed a 1.2-SNAPSHOT to the codehaus  
snapshot repo so you should be able to pick up the rar from there.   
I'll try to get this released in the next few days.


thanks
david jencks

On Mar 26, 2008, at 12:30 PM, waynej wrote:



I defined a DB2 data source at the Console and found I would have  
fatal
exceptions if I do not fill in the "Trace File" box.  Is this  
supposed to
happen?  I start the server in "C:\ResolverDeployment".  I have DB2  
v9.5 and
Hibernate.  Here's the first exception I get if "Trace File" isn't  
filled

in:

[MCFConnectionInterceptor] Error occurred creating  
ManagedConnection for

[EMAIL PROTECTED]
javax.resource.spi.ResourceAdapterInternalException: Unable to obtain
physical connection to [EMAIL PROTECTED]
at
org.tranql.connector.jdbc.AbstractXADataSourceMCF.getPhysicalConnectio 
n(AbstractXADataSourceMCF.java:76)
	at org.tranql.connector.db2.XAMCF.createManagedConnection 
(XAMCF.java:59)

at
org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getCon 
nection(MCFConnectionInterceptor.java:48)

at
org.apache.geronimo.connector.outbound.LocalXAResourceInsertionInterce 
ptor.getConnection(LocalXAResourceInsertionInterceptor.java:41)

at
org.apache.geronimo.connector.outbound.SinglePoolConnectionInterceptor 
.internalGetConnection(SinglePoolConnectionInterceptor.java:67)

at
org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInt 
erceptor.getConnection(AbstractSinglePoolConnectionInterceptor.java: 
78)

at
org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor 
.getConnection(TransactionEnlistingInterceptor.java:46)

at
org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.g 
etConnection(TransactionCachingInterceptor.java:88)

at
org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.get 
Connection(ConnectionHandleInterceptor.java:43)

at
org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection 
(TCCLInterceptor.java:39)

at
org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.g 
etConnection(ConnectionTrackingInterceptor.java:66)

at
org.apache.geronimo.connector.outbound.AbstractConnectionManager.alloc 
ateConnection(AbstractConnectionManager.java:87)
	at org.tranql.connector.jdbc.DataSource.getConnection 
(DataSource.java:56)

at
org.hibernate.connection.DatasourceConnectionProvider.getConnection 
(DatasourceConnectionProvider.java:69)

at
org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper. 
prepare(SuppliedConnectionProviderConnectionHelper.java:27)

at
org.hibernate.tool.hbm2ddl.SchemaValidator.validate 
(SchemaValidator.java:107)

at
org.hibernate.impl.SessionFactoryImpl. 
(SessionFactoryImpl.java:317)

at
org.hibernate.cfg.Configuration.buildSessionFactory 
(Configuration.java:1294)

at
com.framework.integration.dao.FrameworkHibernateDAO. 
(FrameworkHibernateDAO.java:37)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native  
Method)

at
sun.reflect.NativeConstructorAccessorImpl.newInstance 
(NativeConstructorAccessorImpl.java:39)

at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance 
(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at java.beans.Beans.instantiate(Beans.java:204)
at java.beans.Beans.instantiate(Beans.java:48)
at
com.framework.common.FrameworkBaseObjectFactory.getObjectHelper 
(FrameworkBaseObjectFactory.java:144)

at
com.framework.common.FrameworkBaseObjectFactory.getObject 
(FrameworkBaseObjectFactory.java:109)

at
com.framework.integration.dao.FrameworkDAOFactory.getFrameworkDAO 
(FrameworkDAOFactory.java:68)

at
com.mycompany.myapp.locator.UserFieldsLocator.createUserFieldsDAO 
(UserFieldsLocator.java:60)

at
com.mycompany.myapp.ejb.UserFieldsSessionBean.getUserFieldsDAO 
(UserFieldsSessionBean.java:242)

at
com.mycompany.myapp.ejb.UserFieldsSessionBean.create 
(UserFieldsSessionBean.java:130)

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:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext 
$Invocation.invoke(ReflectionInvocationContext.java:146)

at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.procee 
d(ReflectionInvocationContext.java:129)

at
org.apache.openejb.core.interceptor.InterceptorStack.invoke 
(Int

maven2: deployment quickstart?

2008-03-26 Thread Kristian Rink
Folks;

being in the middle of evaluating a bunch of different options (i.o.w.
application servers) to serve as a future platform for most of our (both
Spring and, sooner or later, EJB3 based) projects, I am just by now
dealing with Geronimo 2, partly hoping for a pretty decent maven2
support in terms of deploying modules (given they're both apache
projects). So far we're using tomcat 6 and codehaus' tomcat-maven-plugin
[1] in order to deploy .war artifacts to remote tomcat installments
(both testing and production systems). And I am curious to see whether
there's something like that for geronimo (2.x), some maven2 plugin that
allows for building and remote deployment of war, ear, EJB jars in a way
similar to the tomcat approach. So far I just stumbled across [2] which
mainly seems to deal with deploying to locally installed geronimo
instances and, asides that, leaves quite a bunch of questions unanswered
(including how to actually integrate these plugins with maven2 in order
to build and then deploy, say, an arbitrary war artifact to a geronimo
server). [3] unfortunately completely avoids talking about maven2.

Can any of the kind souls on this list enlighten me about this?

Many thanks in advance, kind regards.
Kristian




[1]http://mojo.codehaus.org/tomcat-maven-plugin/deployment.html
[2]http://geronimo.apache.org/maven/server/maven-plugins/geronimo-maven-plugin/index.html
[3]http://www.ibm.com/developerworks/library/os-ag-remotedeploy/index.html


data source without trace file specified is unusable

2008-03-26 Thread waynej

I defined a DB2 data source at the Console and found I would have fatal
exceptions if I do not fill in the "Trace File" box.  Is this supposed to
happen?  I start the server in "C:\ResolverDeployment".  I have DB2 v9.5 and
Hibernate.  Here's the first exception I get if "Trace File" isn't filled
in:

[MCFConnectionInterceptor] Error occurred creating ManagedConnection for
[EMAIL PROTECTED]
javax.resource.spi.ResourceAdapterInternalException: Unable to obtain
physical connection to [EMAIL PROTECTED]
at
org.tranql.connector.jdbc.AbstractXADataSourceMCF.getPhysicalConnection(AbstractXADataSourceMCF.java:76)
at org.tranql.connector.db2.XAMCF.createManagedConnection(XAMCF.java:59)
at
org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getConnection(MCFConnectionInterceptor.java:48)
at
org.apache.geronimo.connector.outbound.LocalXAResourceInsertionInterceptor.getConnection(LocalXAResourceInsertionInterceptor.java:41)
at
org.apache.geronimo.connector.outbound.SinglePoolConnectionInterceptor.internalGetConnection(SinglePoolConnectionInterceptor.java:67)
at
org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInterceptor.getConnection(AbstractSinglePoolConnectionInterceptor.java:78)
at
org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor.getConnection(TransactionEnlistingInterceptor.java:46)
at
org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.getConnection(TransactionCachingInterceptor.java:88)
at
org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.getConnection(ConnectionHandleInterceptor.java:43)
at
org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(TCCLInterceptor.java:39)
at
org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.getConnection(ConnectionTrackingInterceptor.java:66)
at
org.apache.geronimo.connector.outbound.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:87)
at 
org.tranql.connector.jdbc.DataSource.getConnection(DataSource.java:56)
at
org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
at
org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:27)
at
org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:107)
at
org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:317)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
at
com.framework.integration.dao.FrameworkHibernateDAO.(FrameworkHibernateDAO.java:37)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at java.beans.Beans.instantiate(Beans.java:204)
at java.beans.Beans.instantiate(Beans.java:48)
at
com.framework.common.FrameworkBaseObjectFactory.getObjectHelper(FrameworkBaseObjectFactory.java:144)
at
com.framework.common.FrameworkBaseObjectFactory.getObject(FrameworkBaseObjectFactory.java:109)
at
com.framework.integration.dao.FrameworkDAOFactory.getFrameworkDAO(FrameworkDAOFactory.java:68)
at
com.mycompany.myapp.locator.UserFieldsLocator.createUserFieldsDAO(UserFieldsLocator.java:60)
at
com.mycompany.myapp.ejb.UserFieldsSessionBean.getUserFieldsDAO(UserFieldsSessionBean.java:242)
at
com.mycompany.myapp.ejb.UserFieldsSessionBean.create(UserFieldsSessionBean.java:130)
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:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:146)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:129)
at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:67)
at
org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:203)
at
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:165)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:223)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbO

Re: How to use JAAS with JSF , best practice

2008-03-26 Thread David Jencks


On Mar 26, 2008, at 9:00 AM, rbaumhof wrote:



The workflow of the application should be the following:
login.jsp:
 user enters userid and password and presses the login button

then:
 someone (j_security_check) checks that this is a valid user. If  
user and

password are valid the groups of
 the users are loaded. If the user belongs only to one group (i.e.
administrator) then the
 welcome page with (administration) menue is displayed.
 If the user belongs to more then one group (i.e. local- 
administrator and

application-user)
 then:
   selectRole.jsp is displayed.
   Here a listbox should be displayed where he can select the role.

Now, when i describe the workflow, i see that this can not be done by
servlet authentication mechanism. I think we must  write our own  
filter to

watch the requested pages.
Thanks for your help!!



I can't think of any good way to do this within the servlet  
authentication mechanism right now either.  However, what you are  
trying to do is generally a requirement of role-based authorization  
systems with dynamic separation of duty constraints so I'm glad to  
see there is actually some demand for the feature.


I think it may be possible to develop what you want in the (new)  
JASPI spec which may be part of javaee 6 (I don't know one way or the  
other).  It provides for a multi-message conversation between the  
client and server to establish the clients identity.  It should be  
possible to write a jaspi provider that can after initial  
authentication ask for the desired role if there is more than one.


Geronimo doesn't implement jaspi yet but I'm hoping we can get to it  
this year.  If you want to contribute that would be great!  If you  
want to experiment with it I believe glassfish has an implementation:  
I don't know if any other app servers do.


thanks!
david jencks






djencks wrote:


This looks to me like a really useful use case and I hope we can
figure out a good solution quickly and document it.  I hope someone
who knows more about JSF than I can help or the "quickly" part is
unlikely :-)

On Mar 18, 2008, at 11:05 PM, Ralf Baumhof wrote:


I have got an application where after a successful login the user
maybe must select a role (the user may be an administrator and a
standard user). So, a navigation to a role-selection-page must be
performed. We are using JSF pages for the view component, so we
have an easy and powerful navigation mechanism.


I've wondered about how to do stuff like this and have a couple
questions
- Does authenticating the user happen before or after the user
chooses the role they wish to be in?
- Is the user presented with a list of possible roles based on their
identity?
- How many web pages does this process take up?  E.g., is role
selection on the same page or a different page than filling in user/
credential info?



From the web application security example (see http://
cwiki.apache.org/GMOxDOC20/web-application-security-sample.html) we
know a very good and easy way of using JAAS authentication with a
geronimo security realm. This example uses standard servlet
authentication procedure for login at web container. This procedure
requires a simple html page with the j_security_check action. So,
if we are using JSF pages we are loosing a lot of the powerful JSF
navigation features. So my attempt was to use a JSF page with a JSF
backing bean which performs the step by itself using the
LoginContext.login("my-security-realm",myCallBackHandler) method.
This also works fine, but the authentication is only done with the
ejb container. Tomcat is not informed about the user login. So the
secure pages are still restricted.


I think the reason this is tricky is that the javaee security model
has the container making the authentication and  access decisions in
container code that is accessed before the control gets to any user
code.
There is no provision for the user code to either help with container
managed authentication or authorization.  So, by the time control
gets to the code backing the jsf components, both authentication and
authorization should have taken place.

As a wild and unlikely idea, could some of the JSF component code
forward an appropriately munged request to the j_security_check  
stuff?


You might try the geronimo-specific ContextManager.login method which
will at least engage geronimo's security framework.  I don't think it
will work though for repeated requests as I don't see any way for
tomcat to recognize that the next request is from the same user.

It might also be possible to fish around inside tomcat to get the
Authenticator and use that instead of ContextManager.login.  Since
this is what tomcat does anyway this should install the stuff tomcat
uses to track the user.

It might also be possible to do something elegant in the new and not-
in-geronimo-yet jaspi spec.

Does the jsf spec have anything to say about this?

thanks
david jencks



Does anybody know a better way of integrating JAAS with JSF w

Re: How to use JAAS with JSF , best practice

2008-03-26 Thread rbaumhof

The workflow of the application should be the following:
login.jsp:
 user enters userid and password and presses the login button

then:
 someone (j_security_check) checks that this is a valid user. If user and
password are valid the groups of
 the users are loaded. If the user belongs only to one group (i.e.
administrator) then the
 welcome page with (administration) menue is displayed.
 If the user belongs to more then one group (i.e. local-administrator and
application-user) 
 then:
   selectRole.jsp is displayed. 
   Here a listbox should be displayed where he can select the role. 

Now, when i describe the workflow, i see that this can not be done by
servlet authentication mechanism. I think we must  write our own filter to
watch the requested pages.
Thanks for your help!!





djencks wrote:
> 
> This looks to me like a really useful use case and I hope we can  
> figure out a good solution quickly and document it.  I hope someone  
> who knows more about JSF than I can help or the "quickly" part is  
> unlikely :-)
> 
> On Mar 18, 2008, at 11:05 PM, Ralf Baumhof wrote:
> 
>> I have got an application where after a successful login the user  
>> maybe must select a role (the user may be an administrator and a  
>> standard user). So, a navigation to a role-selection-page must be  
>> performed. We are using JSF pages for the view component, so we  
>> have an easy and powerful navigation mechanism.
> 
> I've wondered about how to do stuff like this and have a couple  
> questions
> - Does authenticating the user happen before or after the user  
> chooses the role they wish to be in?
> - Is the user presented with a list of possible roles based on their  
> identity?
> - How many web pages does this process take up?  E.g., is role  
> selection on the same page or a different page than filling in user/  
> credential info?
> 
>>
>> From the web application security example (see http:// 
>> cwiki.apache.org/GMOxDOC20/web-application-security-sample.html) we  
>> know a very good and easy way of using JAAS authentication with a  
>> geronimo security realm. This example uses standard servlet  
>> authentication procedure for login at web container. This procedure  
>> requires a simple html page with the j_security_check action. So,  
>> if we are using JSF pages we are loosing a lot of the powerful JSF  
>> navigation features. So my attempt was to use a JSF page with a JSF  
>> backing bean which performs the step by itself using the  
>> LoginContext.login("my-security-realm",myCallBackHandler) method.  
>> This also works fine, but the authentication is only done with the  
>> ejb container. Tomcat is not informed about the user login. So the  
>> secure pages are still restricted.
> 
> I think the reason this is tricky is that the javaee security model  
> has the container making the authentication and  access decisions in  
> container code that is accessed before the control gets to any user  
> code.
> There is no provision for the user code to either help with container  
> managed authentication or authorization.  So, by the time control  
> gets to the code backing the jsf components, both authentication and  
> authorization should have taken place.
> 
> As a wild and unlikely idea, could some of the JSF component code  
> forward an appropriately munged request to the j_security_check stuff?
> 
> You might try the geronimo-specific ContextManager.login method which  
> will at least engage geronimo's security framework.  I don't think it  
> will work though for repeated requests as I don't see any way for  
> tomcat to recognize that the next request is from the same user.
> 
> It might also be possible to fish around inside tomcat to get the  
> Authenticator and use that instead of ContextManager.login.  Since  
> this is what tomcat does anyway this should install the stuff tomcat  
> uses to track the user.
> 
> It might also be possible to do something elegant in the new and not- 
> in-geronimo-yet jaspi spec.
> 
> Does the jsf spec have anything to say about this?
> 
> thanks
> david jencks
> 
>>
>> Does anybody know a better way of integrating JAAS with JSF with  
>> the purpose of not loosing the JSF navigation features??
>> Thanks in advance!!
>> _
>> Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
>> http://smartsurfer.web.de/?mc=100071&distributionid=0066
>>
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-use-JAAS-with-JSF-%2C-best-practice-tp16137644s134p16304268.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: New tutorials for AG2.1 available

2008-03-26 Thread CG
Thank you very much ! :)

On Wed, Mar 26, 2008 at 3:24 PM, Ashish Jain <[EMAIL PROTECTED]> wrote:
> Hi CG,
> I have taken a note of it and will add a tutorial soon.
>
> Thanks
> Ashish
>
>
>
> On Tue, Mar 25, 2008 at 5:36 PM, CG <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > Yes , there is database updating in the StatelessSessionBean and I
> > have learned a lot from that.
> > I understand that there is another way , that is , using EntityBean to
> > do the updating , which make the application more modular and
> > multitier.
> >  Therefore, if possible , I hope can see a  tutorial on that .
> >
> > Thanks.
> >
> > CG
> >
> >
> >
> >
> >
> >
> > On Sun, Mar 23, 2008 at 11:40 PM, Ashish Jain <[EMAIL PROTECTED]> wrote:
> > > Hi CG,
> > > Thanks for your comments!
> > >
> > > We are still to add tutorials for Stateful Session Bean. Regarding the
> > > database updation the existing Stateless Session Tutorial uses quite a
> bit
> > > of it.
> > >
> > > You can also have a look at the other tutorials as well like Java Server
> > > Faces, Application Clients, Web Services. Also go through the basics
> section
> > > before going through the tutorial section. This will give u a basic
> > > understanding of architecture for the technology involved.
> > >
> > > Thanks
> > > Ashish
> > >
> > >
> > >
> > > On Sun, Mar 23, 2008 at 8:54 PM, CG <[EMAIL PROTECTED]> wrote:
> > > > Hi Ashish,
> > > >  First of all , thanks for the tutorial, as a newbie , I really
> > > > appreciate and learn a lot from those tutorial.
> > > >
> > > > I have a tutorial request , would you mind spend some time to make a
> > > > tutorial , with combining EntityBean , Stateless SessionBean ,
> > > > Stateful SessionBean with Web as UI , to show how to add a record into
> > > > a table, to retrieve a few records and populate on the UI .
> > > >
> > > > I believe a lot of us will be very appreciate if you can do so. If you
> > > > need my help to test the tutorial , just let me know.
> > > >
> > > > Thanks
> > > > Rgds,
> > > >  CG
> > > >
> > > >
> > > >
> > > >
> > > > On Sat, Mar 22, 2008 at 12:37 AM, Ashish Jain <[EMAIL PROTECTED]>
> wrote:
> > > > > Hi Tim,
> > > > > Thanks for your valuable comments!
> > > > >  For your information all the tutorials use GEP 2.1(unstable). You
> can
> > > have
> > > > > a look at the other tutorials and provide your comments. This will
> help
> > > us
> > > > > to further improve the tutorials .
> > > > >
> > > > > Regarding 1. I guess it is not a critical issue. for 2. There were
> some
> > > > > problems with the jaxws-tools.bat in AG 2.1, It was throwing class
> not
> > > found
> > > > > exception. I contacted Jarek for the same and he provided a
> workaround
> > > for
> > > > > the same using gshell. I will soon update the tutorials with the
> steps
> > > for
> > > > > WSDL generation and changes therein to be made in the WSDL file.
> > > > >
> > > > > Hope to receive more comments from you as we move through tutorial
> > > section.
> > > > >
> > > > > Thanks
> > > > > Ashish
> > > > >
> > > > >
> > > > >
> > > > > On Thu, Mar 20, 2008 at 11:26 PM, Tim McConnell
> <[EMAIL PROTECTED]>
> > > > > wrote:
> > > > >
> > > > > > Hi Ashish, great job of documenting these tutorial. Very well
> done. I
> > > > > haven't
> > > > > > been through all of them yet but have spent some time on the last
> one
> > > > > since it
> > > > > > involves the GEP, and have just a couple comments:
> > > > > >
> > > > > > 1. I noticed that when defining the Axis2 Runtime by pointing to
> the
> > > > > Apache
> > > > > > Geronimo installation directory an error occurs. Do you think this
> is
> > > a
> > > > > problem
> > > > > > with the version of the GEP that you're using ?? It doesn't seem
> to
> > > > > adversely
> > > > > > impact the tutorial so just wondering if its something that needs
> to
> > > be
> > > > > > addressed or not.
> > > > > >
> > > > > > 2. A sentence or two explaining what you changed in the generated
> > > > > > CalculatorService.wsdl file might be beneficial.
> > > > > >
> > > > > > Other than that it's very thorough, clear, and easy to understand.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > Ashish Jain wrote:
> > > > > > > Hi,
> > > > > > > There are few new tutorials available in AG wiki. Try your hands
> out
> > > and
> > > > > > > provide comments.
> > > > > > >
> > > > > > > http://cwiki.apache.org/GMOxDOC21/java-server-faces.html-
> *Basics of
> > > JSF
> > > > > > >
> > > > > > >
> > > > >
> > >
> *http://cwiki.apache.org/GMOxDOC21/developing-a-simple-java-server-faces-application.html-
> > > > > > > *JSF Sample Application
> > > > > > >
> > > > > > >
> > > > >
> > >
> *http://cwiki.apache.org/GMOxDOC21/developing-an-application-client-to-access-ejb.html-
> > > > > > > *AppClient accessing EJB
> > > > > > >
> > > > > > > *http://cwiki.apache.org/GMOxDOC21/ejb-applications.html-
> *Basics of
> > > EJB
> > > > > > > and Stateless session EJB
> > > > > > >
> > > > > 

Re: How to purge a queue in geronimo?

2008-03-26 Thread anish pathadan
Hi Ashish,
   You can purge messages using JConsole (JMX url:
service:jmx:rmi:///jndi/rmi://localhost:1099/JMXConnector). Expand
org.apache.activemq/localhost/Queue/ under JMX tree.
Use purge() in the operations tab.


On Wed, Mar 26, 2008 at 5:59 PM, Ashish Jain <[EMAIL PROTECTED]> wrote:
> Hi,
> Is it possible to purge a queue in geronimo?
>
> Thanks
> Ashish
>



-- 
Best Regards,
Anish Pathadan


Jetty Deployment....

2008-03-26 Thread nuffink

Hi, 

I am a newbie (to a point) at J2EE and a defo newbie at Geronimo so please
be constructive and patient...

I have an old war file from something that was developed using IBM WSAD ages
back and so far have managed to get it all str8 in Eclipse J2EE distro via
importation (nothing fancy so far). i have created my DB2 databse pool and
that works fine too BUT when I importied the war into Eclipse in creating
the project and EAR project and web-inf stuff etc it also imported some
struts stuff too in the form of tlds. I have read a number of articles on
tlds and understand their use and the references that have been made in the
jsps to them,  again no probs. On deploying to the Geronimo Jetty server
v2.1 it is here that I am having issues that I don't fully understand. the
consiole comes back with the following warnings:

 13:49:15, 015 WARN (JspModuleBuilderExtension) JspModuleBuilderExtension:
Could not load tag class: org.apache.struts.taglib.bean.WriteTag mentioned
in TLD file at file:/D:/<..my geronimo server
path..>/geronimo-jetty6-javaee5-2.1/repository/com/gyr/EAR/1.0/EAR-1.0.car/.war/
WEB-INF/struts-bean.tld

but thats all it says no reason why...the struts jar and named classes are
in the lib directory under WEB-INF...so any help or pointers would be good.

Thanks
-- 
View this message in context: 
http://www.nabble.com/Jetty-Deployment-tp16301414s134p16301414.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Deployment error when i deploy my EJB program in Geronimo

2008-03-26 Thread Ashish Jain
Hi,
You can have a look at the samples available with G documentation.
http://cwiki.apache.org/GMOxDOC20/sample-applications.html- G 2.0.x
http://cwiki.apache.org/GMOxDOC21/sample-applications.html- G 2.1

Thanks
Ashish

On Wed, Mar 26, 2008 at 6:24 PM, newbie-gero <[EMAIL PROTECTED]> wrote:

>
> Hi,
> Thanks for the reply.
> I have read the documentation. I think i require the
> geronimo-application.xml to replace my existing application.xml file.
> However in the documentation, the writing of geronimo-application.xml is
> not
> available.
>
> Where can i get an example of this file?
>
> Thanks
>
>
> manucet wrote:
> >
> > Hi,
> >I believe that your application.xml does not conform to the
> > schema. The error message you get is exactly that i.e. you cannot have
> > a resource-ref element inside the application.xml
> > The documentation for Geronimo is at the URL
> > http://geronimo.apache.org/documentation.html. I advise you to read it
> > first .It has examples on many types of j2ee/jee applications. You may
> > need to create geronimo specific deployment plans too in addition to
> > correcting your application.xml
> >
> > Regards
> > Manu
> >
> > On Tue, Mar 25, 2008 at 3:12 PM, newbie-gero <[EMAIL PROTECTED]>
> wrote:
> >>
> >>  Hi lists,
> >>  I have deploy my EJB on Geronimo but it gives out errors. My program
> has
> >>  been tested on other application server and it is working fine.
> >>
> >>  I have upload my codes here
> >>  http://www.nabble.com/file/p16272291/MusicApp.ear MusicApp.ear
> >>
> >>  This is the error it displays:
> >>  Error: Unable to distribute MusicApp.ear: Could not parse
> >> application.xml
> >>
> >> Invalid deployment descriptor: errors:
> >>
> >> error: cvc-complex-type.2.4a: Expected element
> >> '[EMAIL PROTECTED]://java.sun.com/xml/ns/javaee' instead of
> >> '[EMAIL PROTECTED]://java.sun.com/xml/ns/javaee' here in element
> >> [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee
> >>
> >>
> >> Descriptor:
> >>
> >> http://java.sun.com/xml/ns/javaee
> >> http://java.sun.com/xml/ns/javaee/application_5.xsd"; version="5"
> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >> xmlns="http://java.sun.com/xml/ns/javaee";>
> >>
> >>   Application description
> >>
> >>   MusicDAOApp
> >>
> >>   
> >>
> >> jdbc/MusicDB
> >>
> >> java:/jdbc/MusicDB
> >>
> >>   
> >>
> >>   
> >>
> >> 
> >>
> >>   war-ic.war
> >>
> >>   music
> >>
> >> 
> >>
> >>   
> >>
> >>   
> >>
> >> ejb-jar-ic.jar
> >>
> >>   
> >>
> >>   
> >>
> >> 
> >>
> >>  Thanks
> >>
> >>  --
> >>  View this message in context:
> >>
> http://www.nabble.com/Deployment-error-when-i-deploy-my-EJB-program-in-Geronimo-tp16272291s134p16272291.html
> >>  Sent from the Apache Geronimo - Users mailing list archive at
> >> Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Deployment-error-when-i-deploy-my-EJB-program-in-Geronimo-tp16272291s134p16300799.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Deployment error when i deploy my EJB program in Geronimo

2008-03-26 Thread newbie-gero

Hi,
Thanks for the reply.
I have read the documentation. I think i require the
geronimo-application.xml to replace my existing application.xml file.
However in the documentation, the writing of geronimo-application.xml is not
available.

Where can i get an example of this file?

Thanks


manucet wrote:
> 
> Hi,
>I believe that your application.xml does not conform to the
> schema. The error message you get is exactly that i.e. you cannot have
> a resource-ref element inside the application.xml
> The documentation for Geronimo is at the URL
> http://geronimo.apache.org/documentation.html. I advise you to read it
> first .It has examples on many types of j2ee/jee applications. You may
> need to create geronimo specific deployment plans too in addition to
> correcting your application.xml
> 
> Regards
> Manu
> 
> On Tue, Mar 25, 2008 at 3:12 PM, newbie-gero <[EMAIL PROTECTED]> wrote:
>>
>>  Hi lists,
>>  I have deploy my EJB on Geronimo but it gives out errors. My program has
>>  been tested on other application server and it is working fine.
>>
>>  I have upload my codes here
>>  http://www.nabble.com/file/p16272291/MusicApp.ear MusicApp.ear
>>
>>  This is the error it displays:
>>  Error: Unable to distribute MusicApp.ear: Could not parse
>> application.xml
>>
>> Invalid deployment descriptor: errors:
>>
>> error: cvc-complex-type.2.4a: Expected element
>> '[EMAIL PROTECTED]://java.sun.com/xml/ns/javaee' instead of
>> '[EMAIL PROTECTED]://java.sun.com/xml/ns/javaee' here in element
>> [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee
>>
>>
>> Descriptor:
>>
>> http://java.sun.com/xml/ns/javaee
>> http://java.sun.com/xml/ns/javaee/application_5.xsd"; version="5"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> xmlns="http://java.sun.com/xml/ns/javaee";>
>>
>>   Application description
>>
>>   MusicDAOApp
>>
>>   
>>
>> jdbc/MusicDB
>>
>> java:/jdbc/MusicDB
>>
>>   
>>
>>   
>>
>> 
>>
>>   war-ic.war
>>
>>   music
>>
>> 
>>
>>   
>>
>>   
>>
>> ejb-jar-ic.jar
>>
>>   
>>
>>   
>>
>> 
>>
>>  Thanks
>>
>>  --
>>  View this message in context:
>> http://www.nabble.com/Deployment-error-when-i-deploy-my-EJB-program-in-Geronimo-tp16272291s134p16272291.html
>>  Sent from the Apache Geronimo - Users mailing list archive at
>> Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Deployment-error-when-i-deploy-my-EJB-program-in-Geronimo-tp16272291s134p16300799.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



How to purge a queue in geronimo?

2008-03-26 Thread Ashish Jain
Hi,
Is it possible to purge a queue in geronimo?

Thanks
Ashish


Re: Deployment error when i deploy my EJB program in Geronimo

2008-03-26 Thread Manu George
Hi,
   I believe that your application.xml does not conform to the
schema. The error message you get is exactly that i.e. you cannot have
a resource-ref element inside the application.xml
The documentation for Geronimo is at the URL
http://geronimo.apache.org/documentation.html. I advise you to read it
first .It has examples on many types of j2ee/jee applications. You may
need to create geronimo specific deployment plans too in addition to
correcting your application.xml

Regards
Manu

On Tue, Mar 25, 2008 at 3:12 PM, newbie-gero <[EMAIL PROTECTED]> wrote:
>
>  Hi lists,
>  I have deploy my EJB on Geronimo but it gives out errors. My program has
>  been tested on other application server and it is working fine.
>
>  I have upload my codes here
>  http://www.nabble.com/file/p16272291/MusicApp.ear MusicApp.ear
>
>  This is the error it displays:
>  Error: Unable to distribute MusicApp.ear: Could not parse
> application.xml
>
> Invalid deployment descriptor: errors:
>
> error: cvc-complex-type.2.4a: Expected element
> '[EMAIL PROTECTED]://java.sun.com/xml/ns/javaee' instead of
> '[EMAIL PROTECTED]://java.sun.com/xml/ns/javaee' here in element
> [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee
>
>
> Descriptor:
>
> http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/application_5.xsd"; version="5"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns="http://java.sun.com/xml/ns/javaee";>
>
>   Application description
>
>   MusicDAOApp
>
>   
>
> jdbc/MusicDB
>
> java:/jdbc/MusicDB
>
>   
>
>   
>
> 
>
>   war-ic.war
>
>   music
>
> 
>
>   
>
>   
>
> ejb-jar-ic.jar
>
>   
>
>   
>
> 
>
>  Thanks
>
>  --
>  View this message in context: 
> http://www.nabble.com/Deployment-error-when-i-deploy-my-EJB-program-in-Geronimo-tp16272291s134p16272291.html
>  Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Geronimo 2.1 and Seam

2008-03-26 Thread Jacek Laskowski
On Mon, Mar 17, 2008 at 10:17 PM, Burt Prior <[EMAIL PROTECTED]> wrote:

>  >  we use JPA to run your CMPs.  I'm not familiar with why Jacek had you add
>  > that, so I'm not sure what to advise.  We generate the cmp peristence unit
>  > for you as well, so I'm not too sure on any reason you'd need to
>  > explicitly create it.
>
>  Ok.  We are using EJB 3 JPA Entities, so I don't think we are running any
>  CMP's at all.  Also, I don't think this is a Seam issue at all.
>
>  When I take out that 'duplicate' 'cmp' PU, it generates an error, so for
>  some reason it's needed.  I guess its because we are using the latest JEE5
>  stack to develop our Seam app on G2.1.

I remember I've been having issues with the double processing entities
by openjpa. Without it the issue vanished so not much thinking here
just letting the issue go away so I could go on.

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl


Re: New tutorials for AG2.1 available

2008-03-26 Thread Ashish Jain
Hi CG,
I have taken a note of it and will add a tutorial soon.

Thanks
Ashish

On Tue, Mar 25, 2008 at 5:36 PM, CG <[EMAIL PROTECTED]> wrote:

> Hi,
> Yes , there is database updating in the StatelessSessionBean and I
> have learned a lot from that.
> I understand that there is another way , that is , using EntityBean to
> do the updating , which make the application more modular and
> multitier.
>  Therefore, if possible , I hope can see a  tutorial on that .
>
> Thanks.
>
> CG
>
>
>
> On Sun, Mar 23, 2008 at 11:40 PM, Ashish Jain <[EMAIL PROTECTED]> wrote:
> > Hi CG,
> > Thanks for your comments!
> >
> > We are still to add tutorials for Stateful Session Bean. Regarding the
> > database updation the existing Stateless Session Tutorial uses quite a
> bit
> > of it.
> >
> > You can also have a look at the other tutorials as well like Java Server
> > Faces, Application Clients, Web Services. Also go through the basics
> section
> > before going through the tutorial section. This will give u a basic
> > understanding of architecture for the technology involved.
> >
> > Thanks
> > Ashish
> >
> >
> >
> > On Sun, Mar 23, 2008 at 8:54 PM, CG <[EMAIL PROTECTED]> wrote:
> > > Hi Ashish,
> > >  First of all , thanks for the tutorial, as a newbie , I really
> > > appreciate and learn a lot from those tutorial.
> > >
> > > I have a tutorial request , would you mind spend some time to make a
> > > tutorial , with combining EntityBean , Stateless SessionBean ,
> > > Stateful SessionBean with Web as UI , to show how to add a record into
> > > a table, to retrieve a few records and populate on the UI .
> > >
> > > I believe a lot of us will be very appreciate if you can do so. If you
> > > need my help to test the tutorial , just let me know.
> > >
> > > Thanks
> > > Rgds,
> > >  CG
> > >
> > >
> > >
> > >
> > > On Sat, Mar 22, 2008 at 12:37 AM, Ashish Jain <[EMAIL PROTECTED]>
> wrote:
> > > > Hi Tim,
> > > > Thanks for your valuable comments!
> > > >  For your information all the tutorials use GEP 2.1(unstable). You
> can
> > have
> > > > a look at the other tutorials and provide your comments. This will
> help
> > us
> > > > to further improve the tutorials .
> > > >
> > > > Regarding 1. I guess it is not a critical issue. for 2. There were
> some
> > > > problems with the jaxws-tools.bat in AG 2.1, It was throwing class
> not
> > found
> > > > exception. I contacted Jarek for the same and he provided a
> workaround
> > for
> > > > the same using gshell. I will soon update the tutorials with the
> steps
> > for
> > > > WSDL generation and changes therein to be made in the WSDL file.
> > > >
> > > > Hope to receive more comments from you as we move through tutorial
> > section.
> > > >
> > > > Thanks
> > > > Ashish
> > > >
> > > >
> > > >
> > > > On Thu, Mar 20, 2008 at 11:26 PM, Tim McConnell <
> [EMAIL PROTECTED]>
> > > > wrote:
> > > >
> > > > > Hi Ashish, great job of documenting these tutorial. Very well
> done. I
> > > > haven't
> > > > > been through all of them yet but have spent some time on the last
> one
> > > > since it
> > > > > involves the GEP, and have just a couple comments:
> > > > >
> > > > > 1. I noticed that when defining the Axis2 Runtime by pointing to
> the
> > > > Apache
> > > > > Geronimo installation directory an error occurs. Do you think this
> is
> > a
> > > > problem
> > > > > with the version of the GEP that you're using ?? It doesn't seem
> to
> > > > adversely
> > > > > impact the tutorial so just wondering if its something that needs
> to
> > be
> > > > > addressed or not.
> > > > >
> > > > > 2. A sentence or two explaining what you changed in the generated
> > > > > CalculatorService.wsdl file might be beneficial.
> > > > >
> > > > > Other than that it's very thorough, clear, and easy to understand.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Ashish Jain wrote:
> > > > > > Hi,
> > > > > > There are few new tutorials available in AG wiki. Try your hands
> out
> > and
> > > > > > provide comments.
> > > > > >
> > > > > > http://cwiki.apache.org/GMOxDOC21/java-server-faces.html-*Basics of
> > JSF
> > > > > >
> > > > > >
> > > >
> > *
> http://cwiki.apache.org/GMOxDOC21/developing-a-simple-java-server-faces-application.html-
> > > > > > *JSF Sample Application
> > > > > >
> > > > > >
> > > >
> > *
> http://cwiki.apache.org/GMOxDOC21/developing-an-application-client-to-access-ejb.html-
> > > > > > *AppClient accessing EJB
> > > > > >
> > > > > > *http://cwiki.apache.org/GMOxDOC21/ejb-applications.html-*Basics of
> > EJB
> > > > > > and Stateless session EJB
> > > > > >
> > > > > > *http://cwiki.apache.org/GMOxDOC21/stateless-session-bean.html-*A
> > > > > > Simple stateless session EJB application
> > > > > >
> > > > > > *http://cwiki.apache.org/GMOxDOC21/web-services.html- *Basics of
> Web
> > > > > > Services
> > > > > >
> > > > > >
> > > >
> > *
> http://cwiki.apache.org/GMOxDOC21/developing-a-simple-calculator-web-service.html-
> > > > > > *A Simple web servic