[JBoss-user] [Advanced Documentation] - how roll back is done

2006-04-09 Thread sony3002
hello all
i created database connection pool in jboss and after taking a connection 
from datasource i tried to setAutoCommit(false)
then i get the following error

java.sql.SQLException: You cannot set autocommit during a managed transaction!
  | at 
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.setJdbcAutoCommit(BaseWrapperManagedConnection.java:457)
  | at 
org.jboss.resource.adapter.jdbc.WrappedConnection.setAutoCommit(WrappedConnection.java:322)
  | at com.amlaki.cbmega.ejb.db.DBase.getConnection(DBase.java:133)
  | at com.amlaki.cbmega.ejb.user.UserBean.verifyLogin(UserBean.java:172)
  | 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.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:109)
  | at 
org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:294)
  | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107)
  | at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:660)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:513)
  | at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:290)
  | at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:344)
  | at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:202)
  | 2006-04-07 19:19:20,890 ERROR [com.amlaki.cbmega.ejb.user.UserBean] Error 
in validating user : query used is :null
  | java.sql.SQLException: You cannot set autocommit during a managed 
transaction!
  | at 
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.setJdbcAutoCommit(BaseWrapperManagedConnection.java:457)
  | at 
org.jboss.resource.adapter.jdbc.WrappedConnection.setAutoCommit(WrappedConnection.java:322)
  | at com.amlaki.cbmega.ejb.db.DBase.getConnection(DBase.java:133)
  | at com.amlaki.cbmega.ejb.user.UserBean.verifyLogin(UserBean.java:172)
  | 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.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:109)
  | at 
org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
  | at 
org.jboss.aop.jo

[JBoss-user] [Beginners Corner] - Re: Need to execute method on Shutdown

2006-04-06 Thread sony3002
if you are deploying web application with jboss then you can use 
ServletContextListener for this

Sony

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3935610#3935610

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3935610


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Advanced Documentation] - how to create mail session in JNDI

2006-04-06 Thread sony3002
hello all

in tomcat we can use global naming resource in server.xml
to create mail session in JNDI

   



how to do this in J Boss 

thanks
Sony George 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3935608#3935608

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3935608


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - Re: EJB3 [java.lang.ClassCastException: org.jnp.interfaces.N

2006-04-06 Thread sony3002
Hello Ulrich,
i got the solution,
to solve this problem add "/remote" when requesting remote object
like this
 UserLoginRemote obj = 
(UserLoginRemote)Remote.getRemoteObject("UserLoginBean/remote");

then this will be ok

Sony

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3935594#3935594

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3935594


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - how to configure mail in JBoss

2006-03-29 Thread sony3002
hello all

in tomcat we can use global naming resource in server.xml

  | 

to create mail session in JNDI

how to do this in J Boss 

thanks
Sony George


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933505#3933505

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933505


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC

2006-03-27 Thread sony3002
hello asack,

after adding "/remote"  to my look up,
i got several class not found Exception, and i did manage all it 
by bringing all that jar files visible to my web application

and then i successfully connected from stand alone tomcat to Jboss :) :) :)

now i have a question

i thought that, all the jar files in the D:\jboss-4.0.4RC1\client
was enough for the client application to connect to remote server

but i had to import 
D:\jboss-4.0.4RC1\server\default\deploy\ejb3.deployer\jboss-ejb3.jar
and 
D:\jboss-4.0.4RC1\server\default\deploy\jboss-aop-jdk50.deployer\jboss-aspect-library-jdk50.jar
for my web app that is running in standalone tomcat 5.5.9
to connect to remote Jboss EJB server

and also i saw javax.servlet.jar in D:\jboss-4.0.4RC1\client
and i think it is the implementation of servlet api.
so that must not not imported in to my web apps WEB-INF\lib folder
am i correct ???

if yes i am eager to know what all are the jar files that are needed for 
a stand alone tomcat HTTP WEB server to connect to Jboss Application server



My Env. are 

Java 1.5 Update 6
Jboss 4.0.4 RC1
Tomcat 5.5.9
Struts 1.2.7
Netbeans 5.5 Preview

than you so much for your help

Sony George

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932952#3932952

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932952


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC

2006-03-27 Thread sony3002
hello 

do i miss any jar file in my client web application ???

i have added all the jar files that are in Jboss\client 

to my web applications WEB-INF\lib folder

is any more i need ???

these are the jar files which are in my WEB-INF\lib folder

activation.jar
  | antlr.jar
  | avalon-framework.jar
  | axis-ws4ee.jar
  | commons-beanutils.jar
  | commons-digester.jar
  | commons-discovery.jar
  | commons-fileupload.jar
  | commons-httpclient.jar
  | commons-validator.jar
  | concurrent.jar
  | EJBModule.jar
  | getopt.jar
  | jacorb.jar
  | jakarta-oro.jar
  | jboss-aop-jdk50-client.jar
  | jboss-client.jar
  | jboss-common-client.jar
  | jboss-deployment.jar
  | jboss-iiop-client.jar
  | jboss-j2ee.jar
  | jboss-jaxrpc.jar
  | jboss-jsr77-client.jar
  | jboss-remoting.jar
  | jboss-saaj.jar
  | jboss-serialization.jar
  | jboss-srp-client.jar
  | jboss-system-client.jar
  | jboss-transaction-client.jar
  | jboss-ws4ee-client.jar
  | jboss-xml-binding.jar
  | jbossall-client.jar
  | jbosscx-client.jar
  | jbossha-client.jar
  | jbossjmx-ant.jar
  | jbossmq-client.jar
  | jbosssx-client.jar
  | jmx-client.jar
  | jmx-invoker-adaptor-client.jar
  | jnp-client.jar
  | juddisaaj.jar
  | log4j-1.2.13.jar
  | logkit.jar
  | mail.jar
  | namespace.jar
  | ojdbc14.jar
  | orai18n.jar
  | scout.jar
  | struts.jar
  | wsdl4j.jar
  | 

is any more needed ???


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932904#3932904

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932904


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC

2006-03-27 Thread sony3002
hello

now i am getting a new Error

  | javax.naming.CommunicationException [Root exception is 
java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security 
manager: RMI class loader disabled)]
  | 

this is how i called the remote server

UserLoginRemote obj = 
(UserLoginRemote)Remote.getRemoteObject("UserLoginBean/remote"); //<--- this 
line is line 160 of User.java
  | 

where Remote.getRemoteObject() is

  | public static synchronized Object getRemoteObject(String 
remoteObjectName)throws Exception
  | {
  | Properties prop = new Properties();
  | 
  | 
prop.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
  | prop.setProperty(Context.PROVIDER_URL,"jnp://192.168.0.21:1099");
  | 
prop.setProperty(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
  | 
  | javax.naming.Context context = new 
javax.naming.InitialContext(prop);
  | NamingEnumeration ne = context.list("");
  | while(ne.hasMore())
  | {
  | log.info("Bind Objects :"+ne.next());
  | }
  | log.info("the name of the remote object to look up is 
:"+remoteObjectName);
  | Object remoteObj = context.lookup(remoteObjectName);//<--- this 
line is 58 of Remote.java
  | 
  | return remoteObj;
  | }
  | 

and here is the full stack trace of the error

javax.naming.CommunicationException [Root exception is 
java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security 
manager: RMI class loader disabled)]
  | org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
  | org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
  | javax.naming.InitialContext.lookup(InitialContext.java:351)
  | com.amlaki.cbmega.web.settings.Remote.getRemoteObject(Remote.java:58)
  | com.amlaki.cbmega.web.user.User.validate(User.java:160)
  | com.amlaki.cbmega.web.user.LoginAction.execute(LoginAction.java:60)
  | 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
  | 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
  | org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
  | org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  | 
com.amlaki.cbmega.web.filter.compressionFilters.CompressionFilter.doFilter(CompressionFilter.java:223)
  | 
com.amlaki.cbmega.web.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:116)
  | 
  | 

and this is the log in 
Remote.java

  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :XAConnectionFactory: 
org.jboss.mq.SpyXAConnectionFactory
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects 
:TopicConnectionFactory: org.jboss.naming.LinkRefPair
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects 
:UIL2ConnectionFactory: javax.naming.LinkRef
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects 
:UserTransactionSessionFactory: $Proxy27
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects 
:UIL2XAConnectionFactory: javax.naming.LinkRef
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects 
:QueueConnectionFactory: org.jboss.naming.LinkRefPair
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :topic: 
org.jnp.interfaces.NamingContext
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :UserLoginBean: 
org.jnp.interfaces.NamingContext
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :queue: 
org.jnp.interfaces.NamingContext
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :ConnectionFactory: 
org.jboss.mq.SpyConnectionFactory
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :UserTransaction: 
org.jboss.tm.usertx.client.ClientUserTransaction
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :jmx: 
org.jnp.interfaces.NamingContext
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects 
:UILXAConnectionFactory: javax.naming.LinkRef
  | 27/Mar/2006 22:15:52 INFO [http-9090-Processor25] 
(com.amlaki.cbmega.web.settings.

[JBoss-user] [EJB 3.0] - Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC

2006-03-27 Thread sony3002
hello,

thank you for the reply
i done as you said and found this

+- UserLoginBean (class: org.jnp.interfaces.NamingContext)
  |   |   +- remote (proxy: $Proxy49 implements interface 
com.amlaki.cbmega.ejb.user.UserLoginRemote,interface 
org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)

when i invoked the list() functionality 
i got the following error in Jboss


  | 2006-03-27 20:41:47,890 ERROR [org.jboss.naming.JNDIView] 
JNDIView.getHAJndiAttributes() failed
  | java.lang.NullPointerException: name cannot be null
  | at javax.management.ObjectName.construct(ObjectName.java:342)
  | at javax.management.ObjectName.(ObjectName.java:1304)
  | at org.jboss.naming.JNDIView.getHAJndiAttributes(JNDIView.java:836)
  | at org.jboss.naming.JNDIView.getHAUrl(JNDIView.java:811)
  | at org.jboss.naming.JNDIView.list(JNDIView.java:193)
  | 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
  | at org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223)
  | at 
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:262)
  | at 
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
  | at 
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)
  | 


actually i am new to EJB and Jboss
so please tell what should i do next . :(

thanks 
Sony


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932865#3932865

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932865


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_

[JBoss-user] [EJB/JBoss] - java.lang.ClassCastException: org.jnp.interfaces.NamingConte

2006-03-26 Thread sony3002
hello all

i am getting tis error when i connect to remote Jboss 4.0.4RC1
from my stand alone tomcat
java.lang.ClassCastException: org.jnp.interfaces.NamingContext

i am using Jboss 4.0.4RC1 with EJB3
Java 1.5 update 6
Netbeans 5.5 preview
tomcat 5.5.9

i listed all the bind variable in port 1099 and found that my bean is there
and in JMX-console my bean is loaded 

Bind Objects :XAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory
  | Bind Objects :TopicConnectionFactory: org.jboss.naming.LinkRefPair
  | Bind Objects :UIL2ConnectionFactory: javax.naming.LinkRef
  | Bind Objects :UserTransactionSessionFactory:$Proxy27
  | Bind Objects :UIL2XAConnectionFactory: javax.naming.LinkRef
  | Bind Objects :QueueConnectionFactory: org.jboss.naming.LinkRefPair
  | Bind Objects :topic: org.jnp.interfaces.NamingContext
  | Bind Objects :UserLoginBean: org.jnp.interfaces.NamingContext
  | Bind Objects :queue: org.jnp.interfaces.NamingContext
  | Bind Objects :ConnectionFactory: org.jboss.mq.SpyConnectionFactory
  | Bind Objects :UserTransaction: 
org.jboss.tm.usertx.client.ClientUserTransaction
  | Bind Objects :jmx: org.jnp.interfaces.NamingContext
  | Bind Objects :UILXAConnectionFactory: javax.naming.LinkRef
  | Bind Objects :UILConnectionFactory: javax.naming.LinkRef

what is the problem with me ??? my code ???
here is my remote beans

  | package test.ejb.user;
  | 
  | import java.util.Vector;
  | import javax.ejb.*;
  | 
  | /**
  |  * This is the bean class for the UserLoginBean enterprise bean.
  |  * Created Mar 26, 2006 8:56:08 PM
  |  * @author Administrator
  |  */
  | @Stateless()
  | public class UserLoginBean implements 
com.amlaki.cbmega.ejb.user.UserLoginRemote
  | {
  | public boolean doLogin(String userId,String memberId,String 
password)throws Exception
  | {
  | System.out.println("User Id Received from Remot Server is   
:"+userId);
  | System.out.println("Member Id Received from Remot Server is 
:"+memberId);
  | System.out.println("Password Received from Remot Server is  
:"+password);
  | System.out.println("Returning true to the called programme.");
  | return true;
  | }
  | 
  | public Vector getUserRights(String userId)throws Exception
  | {
  | System.out.println("Called getUserRights() method of Jboss");
  | return new Vector();
  | }
  | 
  | }


  | package test.ejb.user;
  | 
  | import java.util.Vector;
  | import javax.ejb.Remote;
  | 
  | 
  | /**
  |  * This is the business interface for UserLogin enterprise bean.
  |  */
  | @Remote()// this line was added by me
  | 
  | public interface UserLoginRemote
  | {
  | public boolean doLogin(String userId,String memberId,String 
password)throws Exception;
  | 
  | public Vector getUserRights(String userId)throws Exception;
  | }
  | 
when this line execute i get .

  | UserLoginRemote obj = 
(UserLoginRemote)Remote.getRemoteObject("UserLoginBean");
  | 
  | 

java.lang.ClassCastException: org.jnp.interfaces.NamingContext

please help

Sony George


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932733#3932733

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932733


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - EJB3 [java.lang.ClassCastException: org.jnp.interfaces.Namin

2006-03-26 Thread sony3002
hello all

i am getting tis error when i connect to remote Jboss 4.0.4RC1
from my stand alone tomcat
java.lang.ClassCastException: org.jnp.interfaces.NamingContext

i am using Jboss 4.0.4RC1 with EJB3
Java 1.5 update 6
Netbeans 5.5 preview
tomcat 5.5.9

i listed all the bind variable in port 1099 and found that my bean is there
looked in the JMX-console and found that my bean is ok

Bind Objects :XAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory
  | Bind Objects :TopicConnectionFactory: org.jboss.naming.LinkRefPair
  | Bind Objects :UIL2ConnectionFactory: javax.naming.LinkRef
  | Bind Objects :UserTransactionSessionFactory:$Proxy27
  | Bind Objects :UIL2XAConnectionFactory: javax.naming.LinkRef
  | Bind Objects :QueueConnectionFactory: org.jboss.naming.LinkRefPair
  | Bind Objects :topic: org.jnp.interfaces.NamingContext
  | Bind Objects :UserLoginBean: org.jnp.interfaces.NamingContext
  | Bind Objects :queue: org.jnp.interfaces.NamingContext
  | Bind Objects :ConnectionFactory: org.jboss.mq.SpyConnectionFactory
  | Bind Objects :UserTransaction: 
org.jboss.tm.usertx.client.ClientUserTransaction
  | Bind Objects :jmx: org.jnp.interfaces.NamingContext
  | Bind Objects :UILXAConnectionFactory: javax.naming.LinkRef
  | Bind Objects :UILConnectionFactory: javax.naming.LinkRef

what is the problem with me ??? my code ???
here is my remote beans

  | package test.ejb.user;
  | 
  | import java.util.Vector;
  | import javax.ejb.*;
  | 
  | /**
  |  * This is the bean class for the UserLoginBean enterprise bean.
  |  * Created Mar 26, 2006 8:56:08 PM
  |  * @author Administrator
  |  */
  | @Stateless()
  | public class UserLoginBean implements 
com.amlaki.cbmega.ejb.user.UserLoginRemote
  | {
  | public boolean doLogin(String userId,String memberId,String 
password)throws Exception
  | {
  | System.out.println("User Id Received from Remot Server is   
:"+userId);
  | System.out.println("Member Id Received from Remot Server is 
:"+memberId);
  | System.out.println("Password Received from Remot Server is  
:"+password);
  | System.out.println("Returning true to the called programme.");
  | return true;
  | }
  | 
  | public Vector getUserRights(String userId)throws Exception
  | {
  | System.out.println("Called getUserRights() method of Jboss");
  | return new Vector();
  | }
  | 
  | }


  | package test.ejb.user;
  | 
  | import java.util.Vector;
  | import javax.ejb.Remote;
  | 
  | 
  | /**
  |  * This is the business interface for UserLogin enterprise bean.
  |  */
  | @Remote()// this line was added by me
  | 
  | public interface UserLoginRemote
  | {
  | public boolean doLogin(String userId,String memberId,String 
password)throws Exception;
  | 
  | public Vector getUserRights(String userId)throws Exception;
  | }
  | 
when this line execute ...

  | UserLoginRemote obj = 
(UserLoginRemote)Remote.getRemoteObject("UserLoginBean");
  | 
  | 
i get this error

java.lang.ClassCastException: org.jnp.interfaces.NamingContext


what is wrong with me ??
please help

Sony George


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932732#3932732

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932732


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - Re: EJB3 [org.jboss.deployment.DeploymentException: ejb-jar.

2006-03-26 Thread sony3002
hello

i upgraded my Jboss with jboss-4.0.4RC1
and then this was fixed

it deployed my EJBModule jar with out any problem

thanks


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932730#3932730

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932730


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC

2006-03-26 Thread sony3002
hello 
i checked my JMX-Console and found this

MBean Name: Domain Name: jboss.j2ee 
 service:  EJB3 
 name:  UserLoginBean 
 jar:  EJBModule.jar 
MBean Java Class: org.jboss.ejb3.ServiceDelegateWrapper 


is this ok ???

i am new to Jboss and EJB3

please help



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932729#3932729

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932729


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - EJB3 [java.lang.ClassCastException: org.jnp.interfaces.Namin

2006-03-26 Thread sony3002
hello all

i am getting tis error when i connect to remote Jboss 4.0.4RC1
from my stand alone tomcat
java.lang.ClassCastException: org.jnp.interfaces.NamingContext

i am using Jboss 4.0.4RC1 with EJB3
Java 1.5 update 6
Netbeans 5.5 preview

i list all the bind variable in port 1099 and found that my bean is there

Bind Objects :XAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory
  | Bind Objects :TopicConnectionFactory: org.jboss.naming.LinkRefPair
  | Bind Objects :UIL2ConnectionFactory: javax.naming.LinkRef
  | Bind Objects :UserTransactionSessionFactory:$Proxy27
  | Bind Objects :UIL2XAConnectionFactory: javax.naming.LinkRef
  | Bind Objects :QueueConnectionFactory: org.jboss.naming.LinkRefPair
  | Bind Objects :topic: org.jnp.interfaces.NamingContext
  | Bind Objects :UserLoginBean: org.jnp.interfaces.NamingContext
  | Bind Objects :queue: org.jnp.interfaces.NamingContext
  | Bind Objects :ConnectionFactory: org.jboss.mq.SpyConnectionFactory
  | Bind Objects :UserTransaction: 
org.jboss.tm.usertx.client.ClientUserTransaction
  | Bind Objects :jmx: org.jnp.interfaces.NamingContext
  | Bind Objects :UILXAConnectionFactory: javax.naming.LinkRef
  | Bind Objects :UILConnectionFactory: javax.naming.LinkRef

what is the problem with me ??? my code ???
here is my remote beans

  | package test.ejb.user;
  | 
  | import java.util.Vector;
  | import javax.ejb.*;
  | 
  | /**
  |  * This is the bean class for the UserLoginBean enterprise bean.
  |  * Created Mar 26, 2006 8:56:08 PM
  |  * @author Administrator
  |  */
  | @Stateless()
  | public class UserLoginBean implements 
com.amlaki.cbmega.ejb.user.UserLoginRemote
  | {
  | public boolean doLogin(String userId,String memberId,String 
password)throws Exception
  | {
  | System.out.println("User Id Received from Remot Server is   
:"+userId);
  | System.out.println("Member Id Received from Remot Server is 
:"+memberId);
  | System.out.println("Password Received from Remot Server is  
:"+password);
  | System.out.println("Returning true to the called programme.");
  | return true;
  | }
  | 
  | public Vector getUserRights(String userId)throws Exception
  | {
  | System.out.println("Called getUserRights() method of Jboss");
  | return new Vector();
  | }
  | 
  | }


  | package test.ejb.user;
  | 
  | import java.util.Vector;
  | import javax.ejb.Remote;
  | 
  | 
  | /**
  |  * This is the business interface for UserLogin enterprise bean.
  |  */
  | @Remote()// this line was added by me
  | 
  | public interface UserLoginRemote
  | {
  | public boolean doLogin(String userId,String memberId,String 
password)throws Exception;
  | 
  | public Vector getUserRights(String userId)throws Exception;
  | }
  | 

  | UserLoginRemote obj = 
(UserLoginRemote)Remote.getRemoteObject("UserLoginBean");
  | 
  | 
please help

Sony George


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932689#3932689

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932689


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - java.lang.ClassCastException: org.jnp.interfaces.NamingConte

2006-03-26 Thread sony3002
hello all

i am getting tis error when i connect to remote Jboss 4.0.4RC1
from my stand alone tomcat
java.lang.ClassCastException: org.jnp.interfaces.NamingContext

i am using Jboss 4.0.4RC1 with EJB3
Java 1.5 update 6
Netbeans 5.5 preview

i list all the bind variable in port 1099 and found that my bean is there

Bind Objects :XAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory
  | Bind Objects :TopicConnectionFactory: org.jboss.naming.LinkRefPair
  | Bind Objects :UIL2ConnectionFactory: javax.naming.LinkRef
  | Bind Objects :UserTransactionSessionFactory:$Proxy27
  | Bind Objects :UIL2XAConnectionFactory: javax.naming.LinkRef
  | Bind Objects :QueueConnectionFactory: org.jboss.naming.LinkRefPair
  | Bind Objects :topic: org.jnp.interfaces.NamingContext
  | Bind Objects :UserLoginBean: org.jnp.interfaces.NamingContext
  | Bind Objects :queue: org.jnp.interfaces.NamingContext
  | Bind Objects :ConnectionFactory: org.jboss.mq.SpyConnectionFactory
  | Bind Objects :UserTransaction: 
org.jboss.tm.usertx.client.ClientUserTransaction
  | Bind Objects :jmx: org.jnp.interfaces.NamingContext
  | Bind Objects :UILXAConnectionFactory: javax.naming.LinkRef
  | Bind Objects :UILConnectionFactory: javax.naming.LinkRef

what is the problem with me ??? my code ???
here is my remote beans

  | package test.ejb.user;
  | 
  | import java.util.Vector;
  | import javax.ejb.*;
  | 
  | /**
  |  * This is the bean class for the UserLoginBean enterprise bean.
  |  * Created Mar 26, 2006 8:56:08 PM
  |  * @author Administrator
  |  */
  | @Stateless()
  | public class UserLoginBean implements 
com.amlaki.cbmega.ejb.user.UserLoginRemote
  | {
  | public boolean doLogin(String userId,String memberId,String 
password)throws Exception
  | {
  | System.out.println("User Id Received from Remot Server is   
:"+userId);
  | System.out.println("Member Id Received from Remot Server is 
:"+memberId);
  | System.out.println("Password Received from Remot Server is  
:"+password);
  | System.out.println("Returning true to the called programme.");
  | return true;
  | }
  | 
  | public Vector getUserRights(String userId)throws Exception
  | {
  | System.out.println("Called getUserRights() method of Jboss");
  | return new Vector();
  | }
  | 
  | }


  | package test.ejb.user;
  | 
  | import java.util.Vector;
  | import javax.ejb.Remote;
  | 
  | 
  | /**
  |  * This is the business interface for UserLogin enterprise bean.
  |  */
  | @Remote()// this line was added by me
  | 
  | public interface UserLoginRemote
  | {
  | public boolean doLogin(String userId,String memberId,String 
password)throws Exception;
  | 
  | public Vector getUserRights(String userId)throws Exception;
  | }
  | 

  | UserLoginRemote obj = 
(UserLoginRemote)Remote.getRemoteObject("UserLoginBean");
  | 
  | 
please help

Sony George


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932688#3932688

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932688


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - EJB3 [org.jboss.deployment.DeploymentException: ejb-jar.xml

2006-03-26 Thread sony3002
hello all

when i deploy my ejbmodule.jar in jboss-4.0.3SP1 with EJB3 i get the following 
error
org.jboss.deployment.DeploymentException: ejb-jar.xml must either obey the 
right xml schema or define a valid DOCTYPE!

first i will tell you my env.
i am using jboss-4.0.3SP1 with EJB3
J2SDK1.5 update 6
netbeans IDE Enterprise Pack 5.5 Preview
--
i configured  jboss-4.0.3SP1 with EJB3 as my application server in netbeans
then i created an EJBModule project
created a stateless session bean named UserLoginBean
here is the code


  | package test.ejb.user;
  | 
  | import java.util.Vector;
  | import javax.ejb.Remote;
  | 
  | 
  | /**
  |  * This is the business interface for UserLogin enterprise bean.
  |  */
  | 
  | 
  | public interface UserLoginRemote
  | {
  | public boolean doLogin(String userId,String memberId,String 
password)throws Exception;
  | 
  | public Vector getUserRights(String userId)throws Exception;
  | }
  | 


  | package test.ejb.user;
  | 
  | import java.util.Vector;
  | import javax.ejb.*;
  | 
  | /**
  |  * This is the bean class for the UserLoginBean enterprise bean.
  |  * Created Mar 26, 2006 8:56:08 PM
  |  * @author Administrator
  |  */
  | @Stateless()
  | public class UserLoginBean implements 
com.amlaki.cbmega.ejb.user.UserLoginRemote
  | {
  | public boolean doLogin(String userId,String memberId,String 
password)throws Exception
  | {
  | System.out.println("User Id Received from Remot Server is   
:"+userId);
  | System.out.println("Member Id Received from Remot Server is 
:"+memberId);
  | System.out.println("Password Received from Remot Server is  
:"+password);
  | System.out.println("Returning true to the called programme.");
  | return true;
  | }
  | 
  | public Vector getUserRights(String userId)throws Exception
  | {
  | System.out.println("Called getUserRights() method of Jboss");
  | return new Vector();
  | }
  | 
  | }
  | 
jboss.xml

  | 
  | 

ejb-jar.xml

  | http://java.sun.com/xml/ns/javaee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd";>
  | 
  | 

i build the ejb module and deployed the EJBModule.jar in

D:\jboss-4.0.3SP1\server\default\deploy directory

and then i get the error

  | 00:15:54,046 ERROR [MainDeployer] Could not create deployment: 
file:/D:/jboss-4.
  | 0.3SP1/server/default/deploy/EJBModule.jar
  | org.jboss.deployment.DeploymentException: ejb-jar.xml must either obey the 
right xml schema or define a valid DOCTYPE!
  | at 
org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMetaData.java:300)
  | at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:151)
  | ...
  | ..



  | 00:15:54,359 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
  | 
  | --- Incompletely deployed packages ---
  | [EMAIL PROTECTED] { 
url=file:/D:/jboss-4.0.3SP1/server/default/deploy/EJBModule.jar }
  |   deployer: MBeanProxyExt[jboss.ejb:service=EJBDeployer]
  |   status: Deployment FAILED reason: ejb-jar.xml must either obey the right 
xml schema or define a valid DOCTYPE!
  |   state: FAILED
  |   watch: file:/D:/jboss-4.0.3SP1/server/default/deploy/EJBModule.jar
  |   altDD: null
  |   lastDeployed: 1143398754046
  |   lastModified: 1143398754031
  |   mbeans:
  | 

what is the problem 

please do help
thanks

Sony

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932685#3932685

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932685


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: How to use Tomcat 5.5.12 as web client and JBoss 4.0.3 E

2006-03-26 Thread sony3002
hello alesj and j2ee_junkie

according to the great help provided by both of you,
i did manage almost 90% of my problems
i connected from stand alone tomcat to Jboss on port 1099 and i listed all the 
objects bind by jboss

then i downloaded netbeans 5.5 J2EE preview and created a sample ejb module in 
it using Jboss as the J2EE server
when i deployed it i got the following error in jboss

21:19:34,046 ERROR [MainDeployer] Could not create deployment: 
file:/D:/jboss-4.0.3SP1/server/default/deploy/EJBModule.jar
org.jboss.deployment.DeploymentException: 
ejb-jar.xml must either obey the right xml schema or define a valid DOCTYPE! 

when i looked in to the ejb-jar.xml i found that it had only schema def.  here 
is the file


  | http://java.sun.com/xml/ns/javaee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd";>
  | 


when i created ejbmodule in EJB 2.1 format using netbeans 5.0 it wrote the 
ejb-jar.xml for me
so i copied that to my ejb-jar.xml and created the 
new ejb-jar.xml file as follows


  | http://java.sun.com/xml/ns/javaee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd";>
  | EJBModule
  | 
  | 
  | UserLoginBeanSB
  | UserLoginBean
  | 
com.mycompany.myproject.ejb.login.UserLoginRemote
  | 
com.mycompany.myproject.ejb.login.UserLoginBean
  | Stateless
  | Container
  | 
  | 
  | 
  | 
  | 
  | UserLoginBean
  | *
  | 
  | Required
  | 
  | 
  | 
  | 
  | 

then also it showed the same error
where will i get the doc to create ejb-jar.xml 
in EJB3 schema 

thank you

Sony

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932678#3932678

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932678


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: How to use Tomcat 5.5.12 as web client and JBoss 4.0.3 E

2006-03-20 Thread sony3002
Thank you for the reply

i am now reading J2EE Tutorial 
has not reached till chapter 24 , but now 
understanding the way to proceed

thank you for the help :)

Sony George

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931336#3931336

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931336


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: How to use Tomcat 5.5.12 as web client and JBoss 4.0.3 E

2006-03-16 Thread sony3002
"alesj" wrote : >> that connect from tomcat to jboss  
  | 
  | That's a simple JNDI lookup to remote app server.
  | 


how to look up remote app server 

i dont know how to connect  (:
please help

Soony



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930640#3930640

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930640


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: How to use Tomcat 5.5.12 as web client and JBoss 4.0.3 E

2006-03-16 Thread sony3002
hello

thank you for your reply

i got JBoss application server guide
from 
http://docs.jboss.org/jbossas/jboss4guide/r4/html/

anf going through it.

can you give , any example or link to example application 
that connect from tomcat to jboss  
so that i can start my work as early

:)

sony

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930621#3930621

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930621


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: How to use Tomcat 5.5.12 as web client and JBoss 4.0.3 E

2006-03-16 Thread sony3002
hello
thank you for your reply

i did as per your instruction and http of jboss didn't work
:) i am happy
no the next problem

how to connect from another tomcat on another mech. to jboss ??? using EJB ?? 
please some info

when i try to search google "jboss + tomcat" +EJB then i am getting info 
of integrated tomcat in Jboss

please help

thanks

Sony George

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930611#3930611

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930611


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - How to use Tomcat 5.5.12 as web client and JBoss 4.0.3 EJB a

2006-03-16 Thread sony3002
Hello all

i am a novice in Ejb and now i have to work on Jboss ,
so when i looked in the docs and also considering my needs i came up with 
a couple of doubts. first i will write down here what i have understood.

Tomcat is HTTP server and JBoss is application server.
Jboss use tomcat as its http server

if this is correct then what i want is

i don't need the http server of Jboss.
i want to disable or stop it or don't want use jboss's http service

i want to use stand alone tomcat5.5.12 from apache for me, to be used as client

in a simple way
i want to connect from tomcat on port 8080 at computer A 
and tomcat on port 8080 at computer B
to
Jboss on port 9090 that is installed on Computer C

what should i do for this ???
please provide your valuable comments

thanking all

Sony George
[EMAIL PROTECTED]


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930602#3930602

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930602


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user