Re: [JBoss-user] How to deploy webclient in JBoss_Tomcat

2001-11-02 Thread Devraj Mukherjee

Hi Kiran,
I have been working with JBoss for a while and as a matter of fact, I
have written a guide to programming J2EE apps using JBoss. If you want
you can grab it a copy the document and the software (a forum system)
at:
http://devraj.org/projects/freeforums/
I also delivered a lecture on programming with J2EE at Charles Sturt
University Australia and am hoping to make a copy of that online in a few
days.
Hope this helps.
Devraj
At 10:03 AM 11/3/2001 +0530, you wrote:
Hello
Everybody,
I am new to Jboss tomcat server (JBoss-2.4.3_Tomcat3.2.3)...i hv just
executed the given example in the documentation (ie.interest example). i
am facing problems in executing webclient verstion of that..can u please
tell me the deployment procedure, how to deploy a war/ear file in
the server.
I am very thank full to you if any one can help me in this...
I am also strugling a lot to understand build.xml in the
example..is there any easy way to understand how to use Ant (like
writing build.xml, jaws.xml and ejb-jar.xml etc) ? 
Thanks in advance
Kiran.



[JBoss-user] CORBA

2001-10-20 Thread Devraj Mukherjee

Hi All,

I am trying to program in CORBA with jdk 1.3.1, along with VisiBroker 4.5. 
My java compiler does not seem to locate the org.omg classes.

Do these have to be downloaded from somwhere?

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Regarding Jar Interface class file ......

2001-09-17 Thread Devraj Mukherjee

You must have the remote and home interfaces in the jar file as they are 
reqd. by the app server to manage the beans.

If you are deploying the web application on the same server, you can just 
include the EJB jar file classpath of the app server (run.bat) and forget 
about including it into the web-inf/classes directory.

Devraj

At 00:05 17/09/2001 -0400, you wrote:
Hi all,
 If I place only jar file in jboss\deploy folder
 don't keep any home, remote interface or bean class files (except
the client servlet) in the web-inf\classes directory, will my client
servlet run perfectly  In short, what I wanna ask is that r these
remote, home  bean classes necessarily be placed in the
web-inf\classes directory ??
 Pls note that I don't want to use .ear or .war file. I m only
interested in .jar file !!!

Thanks  Regards,
Prashant


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] does JBoss2.4 support SOAP

2001-09-11 Thread Devraj Mukherjee

I know that it does, ZOAP i think is that product listed on the Jboss web
site
At 10:43 12/09/2001 +0530, you wrote:
Hi all,

 Can anyone clarify my
doubt is whether JBoss2.4 support SOAP or not.

 If so, please
give me details how can i implement SOAP on JBoss.

Thanks in advance,

Krishna
*
Disclaimer
This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.
*
Visit us at
http://www.mahindrabt.com



Re: [JBoss-user] need sample run.bat file to run Jboss2.2 in windowsme

2001-08-09 Thread Devraj Mukherjee

Why are you having memory problems?

Devraj

At 17:10 9/08/01 -0700, you wrote:
Hi,

If anyone installed new jboss2.2 on WindowsME without
syntax error, please send me a copy of your
run_with_tomcat.bat and run.bat.

Thanks in advance.


=
PiFen Ellwood

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Classpaths

2001-07-26 Thread Devraj Mukherjee

 From my experience, apart from the normal values in the classpath 
variable. You need to point the JBoss classpath to the packages where the 
JBoss server can find the remote and home interfaces for all classes, as 
this is require by your JSP, JavaBeans.

Devraj

At 15:21 26/07/01 -0700, you wrote:
Hi,

Can anyone please tell me what classpaths to set for
JBoss to start? Every time I do something new and try
to start the server, some class files are not found
and I have to spend quite a time to figure out what
classpath to add.

thanks a lot!

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Custom Finders

2001-07-26 Thread Devraj Mukherjee

I am looking for an example where someone has used a custom finder.

Can any one of you give me snippets of your jaws.xml file to demonstrate 
the use of custom finders.

thanks

devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Custom Finders

2001-07-22 Thread Devraj Mukherjee

Can anyone please send me a copy of their jaws.xml where they have made use 
of Custom Finders?

Thanks for your help.

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] CMP and PK

2001-07-11 Thread Devraj Mukherjee

If you mean you need the number to be generated automatically, then I 
suggest you have a look at my code for a forum system, which uses 
autonumbers. http://csusap.csu.edu.au/~dmukhe01/freeforums/

Devraj

At 17:54 11/07/01 +0500, you wrote:
Hello, jboss-user.

I  have  another  simple  question: when I make a CMP Entity Bean
with the PK of type Integer, do I need to count the value of this
PK in an ejbCreate() methos of the Bean class?
Thanks.

-- Max Krainov Alphanet International R.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Help

2001-07-09 Thread Devraj Mukherjee

Are you sure it is not a lookup error.
Devraj
At 11:48 9/07/01 +0530, you wrote:
Hi
all,
Iam working on an application that uses EJBs
and JSPs.
Im using JDK1.3.Till recently we were using BEA
Weblogic but now want to change over to JBoss.I did as told in
documentation and am able to get the jsp pages which do not call a
bean.
But iam getting an error as soon as the server
has to serve a jsp page which calls an EJB.Please advise to me as to what
all steps should i take for this and why is this error
coming.??
I have deployed an ear file in jboss/deploy
directory.
Awaiting reply,
regards
Sharath


Re: [JBoss-user] Auto-Incr

2001-07-09 Thread Devraj Mukherjee

Hi,

I solved this problem by creating the table with a normal integer as the 
primary key and then writing a AutoNumberBean. The AutoNumberBean is 
another CMP bean which just keeps track of an Integer per table. If you 
want I can send you the code for it as well.

Devraj

At 23:15 8/07/01 -0700, you wrote:
i'm using mysql for my database and created an
auto-incrementing pk on a table. i wrote an entity
bean which creates a row having a pk value of 0
zero. mysql maps the value of 0 zero to the
last-pk-value + 1. however, when i retrieve my data
through ejb, the pk still contains 0 zero. im using
jboss as my ejb-container. any help is gladly
appreciated.

-L. Yeung

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] InitialContext in JSP files to access EJBs in JBoss

2001-07-09 Thread Devraj Mukherjee

As far as I know you do have to do something like this in every page. I 
tend to use intermediate JavaBeans to do the dirty work or calling and 
executing the right methods and the JSP becomes quite clean.

It usually contains one import statement, creation of the JavaBean object 
and then executing the method that does the job or getting the initial 
context and all the other stuff. Also I try and use try catch blocks to 
ensure that the methods in the JavaBeans don't throw any exceptions at all, 
so the JSPs can look neat and clean.

Hope this helps.

Devraj

At 05:23 10/07/01 +0100, you wrote:


 Hello All,

 Whenever I need to use a stateless session bean I have to put the 
 following
in my JSP:

  javax.naming.Context mycontext = new javax.naming.InitialContext();
  java.lang.Object library_ref = mycontext.lookup(acc_library);
  accessprj.acc_libraryHome libraryhome = (accessprj.acc_libraryHome)
javax.rmi.PortableRemoteObject.narrow(library_ref,accessprj.acc_libraryHome.
class);
  accessprj.acc_library library =libraryhome.create();

I made a Class to set the properties as follows:

public class ContextPropertiesFactory {
   public Properties getInitialContextPropertiesFactory() {
 Properties prop = new Properties();

prop.setProperty(Context.INITIAL_CONTEXT_FACTORY,org.jnp.interfaces.NamingC
ontextFactory);
 prop.setProperty(Context.PROVIDER_URL,localhost:1099);
 return prop;
   }
   public void makePropertiesDefault() {
 System.setProperties(getInitialContextPropertiesFactory());
   }
}

Now I call the getInitialContextPropertiesFactory() method and initialize my
context with the Properties that are returned from the method so I can use
JBoss.

Do I have to do something like this in every JSP page I have??

 Thanks in advance,
 Carlos Ferrao


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Official JBoss logo?

2001-07-05 Thread Devraj Mukherjee

What is wrong with the logo on http://www.jboss.org/jboss-server.jsp

Devraj

At 15:53 5/07/01 +0100, you wrote:
Hello,

I had the idea to put something like Powered by JBoss and searched for an
official logo.

May I consider that http://www.jboss.org/pictures/head3.gif as the official
one?

Sorry for this 2% technical question.

Bye,

Jm


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Re: Jboss Performance problems

2001-07-05 Thread Devraj Mukherjee

Hi Saul,

I would like to know more about this, is it possible for you to email me 
one of your entity beans?

Devraj

At 16:00 5/07/01 -0400, you wrote:
Hello all,

I implemented the isModified() method in each of the offending entity
beans, and the speed improvements are dramatic.  A page that used to
take around 30-45 seconds to load now takes around .75-1.25 seconds (the
hardware is pretty slow).  That is a HUGE performance increase.

Thanks for your help!

saul


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JSP XML Styled tags

2001-07-05 Thread Devraj Mukherjee

Hi All,

I am using JSPs under JBoss 2.2.2 and I think that the XML Styled tags are 
being ignored.

Any one else noticed something like that?

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Deployment Question

2001-07-05 Thread Devraj Mukherjee

Hi All,

I am using CMP for my Entity Beans in an application. I was wondering is it 
possible to make a default entry in one of the tables while deploying the 
application.

I am storing my list of users in a table, so if there are no users to start 
with then I can't really administer the system using the web application.

Also is there a way of looking at the tables that were created by when the 
EJBs were deployed.

Thank you for all your time.

Regards,
Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Help with AutoNumber class file

2001-07-04 Thread Devraj Mukherjee

Hi All,

I have been trying to use the JBoss AutoNumber class file that is provided 
in org.jboss.util package. Now the problem is that one of my session bean 
uses that AutoNumber class to generate autonumbers.

The beans deploy all right, but when I try to use the add method which uses 
the AutoNumber Bean to create a new Integer ID, the server console gives an 
error message where it says that it is throwing NoClassDefException

The JBoss startup batch file does not have this package in it's classpath, 
but when I try and include this in the server fails to startup. Any 
Suggestions??

Regards,

Devraj



PS - A dump of my server console error messages are as follows:

[ForumManagerBean] TRANSACTION ROLLBACK 
EXCEPTION:org/jboss/util/AutoNumberHome;
  nested exception is:
 java.lang.NoClassDefFoundError: org/jboss/util/AutoNumberHome
[ForumManagerBean] java.lang.NoClassDefFoundError: 
org/jboss/util/AutoNumberHome

[ForumManagerBean]  at 
freeforums.forum.ForumManagerBean.getAutoNumber(Forum
ManagerBean.java:68)
[ForumManagerBean]  at 
freeforums.forum.ForumManagerBean.addForum(ForumManag
erBean.java:83)
[ForumManagerBean]  at java.lang.reflect.Method.invoke(Native Method)
[ForumManagerBean]  at 
org.jboss.ejb.StatelessSessionContainer$ContainerInte
rceptor.invoke(StatelessSessionContainer.java:472)
[ForumManagerBean]  at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterce
ptor.invoke(StatelessSessionInstanceInterceptor.java:87)
[ForumManagerBean]  at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxI
nterceptorCMT.java:133)
[ForumManagerBean]  at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
tions(TxInterceptorCMT.java:263)
[ForumManagerBean]  at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInter
ceptorCMT.java:99)
[ForumManagerBean]  at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(Secu
rityInterceptor.java:190)
[ForumManagerBean]  at 
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterc
eptor.java:195)
[ForumManagerBean]  at 
org.jboss.ejb.StatelessSessionContainer.invoke(Statel
essSessionContainer.java:271)
[ForumManagerBean]  at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
r.invoke(JRMPContainerInvoker.java:482)
[ForumManagerBean]  at 
org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessio
nProxy.invoke(StatelessSessionProxy.java:152)
[ForumManagerBean]  at $Proxy4.addForum(Unknown Source)
[ForumManagerBean]  at 
freeforums.jspbeans.ForumController.addNewForum(Forum
Controller.java:46)
[ForumManagerBean]  at 
jsp._0002fjsp_0002fsave_0005fforum_0002ejspsave_0005f
forum_jsp_2._jspService(_0002fjsp_0002fsave_0005fforum_0002ejspsave_0005fforum_j
sp_2.java:71)
[ForumManagerBean]  at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJsp
Base.java:119)
[ForumManagerBean]  at 
javax.servlet.http.HttpServlet.service(HttpServlet.ja
va:853)
[ForumManagerBean]  at 
org.apache.jasper.servlet.JspServlet$JspCountedServle
t.service(JspServlet.java:130)
[ForumManagerBean]  at 
javax.servlet.http.HttpServlet.service(HttpServlet.ja
va:853)
[ForumManagerBean]  at 
org.apache.jasper.servlet.JspServlet$JspServletWrappe
r.service(JspServlet.java:282)
[ForumManagerBean]  at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(J
spServlet.java:429)
[ForumManagerBean]  at 
org.apache.jasper.servlet.JspServlet.service(JspServl
et.java:500)
[ForumManagerBean]  at 
javax.servlet.http.HttpServlet.service(HttpServlet.ja
va:853)
[ForumManagerBean]  at 
org.apache.tomcat.core.ServletWrapper.doService(Servl
etWrapper.java:405)
[ForumManagerBean]  at 
org.apache.tomcat.core.Handler.service(Handler.java:2
87)
[ForumManagerBean]  at 
org.apache.tomcat.core.ServletWrapper.service(Servlet
Wrapper.java:372)
[ForumManagerBean]  at 
org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java:797)
[ForumManagerBean]  at 
org.apache.tomcat.core.ContextManager.service(Context
Manager.java:743)
[ForumManagerBean]  at 
org.apache.tomcat.service.http.HttpConnectionHandler.
processConnection(HttpConnectionHandler.java:213)
[ForumManagerBean]  at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolT
cpEndpoint.java:416)
[ForumManagerBean]  at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java:501)
[ForumManagerBean]  at java.lang.Thread.run(Unknown Source)
[EmbeddedTomcatSX] Exception occured
javax.transaction.TransactionRolledbackException: 
org/jboss/util/AutoNumberHome;
  nested exception is:
 java.lang.NoClassDefFoundError: org/jboss/util/AutoNumberHome


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] How to deploy

2001-07-03 Thread Devraj Mukherjee

Hi Daljeet,

For deployment of web components I usually package up all the file in a WAR 
file with the deployment descriptor and put it in the deploy directory. The 
JBoss server detects the XML file and does the deployment file. I have 
created a batch file for myself which does the process of packaging the 
files, making the jar and copying it across to the deploy directory.

I was reading that there is another way to do this while you are staging 
your application, if I happen to find the article I will let you know.

Hope this helps.

Devraj

At 19:51 3/07/01 +0200, you wrote:
Hello,

A real starter's question? Here it goes?

Where do I start?

I am using JBoss/Tomcat bundle. If I deploy my JSP/servlets under
tomcat/webapps, than my jboss-web.xml file is being ignored and to deploy
it under jboss/deploy I have to create a ear/war/jar each time I make a
change to a JSP (this time jboss-web.xml is being read by JBoss)

Are we totally down the wrong road??

Thanks
Daljeet Singh
ecExperts India
Ph:- (O) +91-11-4670906
(R) +91-11-7125680
ICQ:- 75129600
Yahoo:- daljeetsinghmaken

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Re: JBoss 2.2.2 - Linux kernel 2.4

2001-07-03 Thread Devraj Mukherjee

I use the same, under Solaris and Windows. I have not tried Linux as yet.

I will today and let you know.

Devraj


At 11:59 3/07/01 -0700, you wrote:
Devraj,
I'm using JDK 1.3.1 - Is that one not supported? I understand this is sort
of an official question, where would be the place to address this?

Thanks, Axel.


  Hi,
  I'm new to JBoss and try to start JBoss by executing run.sh
 
  JBoss 2.2.2 or 2.4.0BETA
  Linux kernel 2.4 - Suse 7.1
 
  This is the error message:
 
  JBOSS_CLASSPATH=:run.jar:../lib/crimson.jar
  Exception in thread main java.lang.NoclassDefFoundError: org/jboss/Main
 
  Any major thing I'm missing here?
 
  Thanks, Axel Muench.



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] EJBDoclet

2001-07-02 Thread Devraj Mukherjee

I have downloaded EJBDoclet as suggested, can some one tell me how to use it ?

Thanks.
Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Security Roles

2001-07-02 Thread Devraj Mukherjee

Do we need security roles to Run an application

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] ANT

2001-07-02 Thread Devraj Mukherjee

Can someone who has used EJBDoclet send me their build.xml file?

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Lookup problem

2001-07-02 Thread Devraj Mukherjee

Hello All,

I have an ejb-jar.xml file in my archive which defines a session bean as 
follows

 session
   descriptionModels User Management/description
   ejb-nameUserManagerBean/ejb-name
   homefreeforums.user.UserManagerHome/home
   remotefreeforums.user.UserManager/remote
   ejb-classfreeforums.user.UserManagerBean/ejb-class
   session-typeStateless/session-type
   transaction-typeContainer/transaction-type
  ejb-ref
 ejb-ref-nameejb/User/ejb-ref-name
 ejb-ref-typeEntity/ejb-ref-type
 homefreeforums.user.UserHome/home
 remotefreeforums.user.User/remote
 ejb-linkUserBean/ejb-link
  /ejb-ref
  ejb-ref
 ejb-ref-nameejb/ForumUser/ejb-ref-name
 ejb-ref-typeEntity/ejb-ref-type
 homefreeforums.user.ForumUserHome/home
 remotefreeforums.user.ForumUser/remote
 ejb-linkForumUserBean/ejb-link
  /ejb-ref

 /session

The Two entity beans it refers are defined as follows

  entity
   display-nameUser/display-name
   ejb-nameUserBean/ejb-name
   homefreeforums.user.UserHome/home
   remotefreeforums.user.User/remote
   ejb-classfreeforums.user.UserBean/ejb-class
   persistence-typeContainer/persistence-type
   prim-key-classjava.lang.String/prim-key-class
   reentrantFalse/reentrant
   cmp-field
field-namepassword/field-name
   /cmp-field
   cmp-field
field-namesuperUser/field-name
   /cmp-field
   cmp-field
field-nameuserName/field-name
   /cmp-field
   cmp-field
field-namerealName/field-name
   /cmp-field
   cmp-field
field-nameemailAddress/field-name
   /cmp-field
   primkey-fielduserName/primkey-field
 /entity

And

 entity
   display-nameForumUser/display-name
   ejb-nameForumUserBean/ejb-name
   homefreeforums.user.ForumUserHome/home
   remotefreeforums.user.ForumUser/remote
   ejb-classfreeforums.user.ForumUserBean/ejb-class
   persistence-typeContainer/persistence-type
   prim-key-classfreeforums.user.ForumUserPK/prim-key-class
   reentrantFalse/reentrant
   cmp-field
field-namekey/field-name
   /cmp-field
   cmp-field
field-nameadministrator/field-name
   /cmp-field
   primkey-fieldkey/primkey-field
 /entity

Can some one tell me why I would not be able to make an object of my 
session bean from another class file, this class file is a Java Bean which 
supports my JSP file and belongs to the same package as these EJBs.

Thank you so much for your time

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBoss 2.2.2 - Linux kernel 2.4

2001-07-02 Thread Devraj Mukherjee

What version of JDK are you using. As far as I know JBoss will only run 
with Version 1.3

Devraj

At 18:02 2/07/01 -0700, you wrote:
Hi,
I'm new to JBoss and try to start JBoss by executing run.sh

JBoss 2.2.2 or 2.4.0BETA
Linux kernel 2.4 - Suse 7.1

This is the error message:

JBOSS_CLASSPATH=:run.jar:../lib/crimson.jar
Exception in thread main java.lang.NoclassDefFoundError: org/jboss/Main

Any major thing I'm missing here?

Thanks, Axel Muench.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Help! - Can EJB inherit from normal classes? Packaging with normal classes?

2001-07-02 Thread Devraj Mukherjee

I read an article in Javaworld.com about converting existing classes to 
EJB. You may want to have a look there.

Devraj

At 07:28 3/07/01 +0200, you wrote:
Hello,

I've a question on inheritence in EJB.
As I'm working on the adaption of an existing Java framework, I have to
convert many normal Java classes to EJB. But I'm not sure what to do with
the inheritence. Someone in the list suggested I let the RemoteInterface
inherit from some super interface and let the BeanClass inherit from the
super implementation. This way, if a type of the super interface is
expected, then an EJB RemoteInterface can be returned, which looks quite
reasonable to me, so I was trying to do just that.
But the problem is, I didn't seem to be able to compile because I cann't
have any constructor in the BeanClass (O'Reilly book), which I do have in
the original class that the bean should substitute:-(
I know, normlly the stuff in the constructor is done in the ejbCreate, but
in my case, I have invokation of super() in the constructor, which is of
course bad for EJB. But it didn't work even if I don't use the super() but
move the init code from super class to the bean, compiler simply says it
cann't deal with the constructor in the super class:-(
Now I'm wondering, is it that I've done something wrong or is such thing not
possible by definition? Anyone with experience here, comments are heartily
welcome!
Also, another question would be: If the purpose of an EJB is to substitute
some normal class, should I put it in it's own package, or should I leave it
in the original package? If I put it in a new package, then many protected
access modifier has to be cracked open to public in the original
package, which seems hairy to me. But I don't know whether it's
possible/feasible to package EJBs with the normal classes and make them one
big jar, will the app server have any problem with it?
The problems are quite urgent and I'm looking forward to your reply!
Many thanks in advance!

regards
ZHU Jia


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] EJB Referencing problem

2001-07-01 Thread Devraj Mukherjee

Hello All,

I am having quite some trouble doing a lookup. I understand from the JBoss 
documentation that if the Beans are in the same JAR file, then they should 
refer to each other by java:comp/env/ejb/BeanName and if they are outside 
the package then I should declare a new jboss.xml file which defines the 
external names.

Now my problem uses an EntityBean, a Session Bean a JavaBean to support the 
JSP file and the two JSP files. I have refered to the entity beans from my 
sessions beans using the java:comp/env/ejb/BeanName way, but the JavaBean 
(which belongs to the same package as the Session Bean) seem to have 
problems locating the Session Bean with the java:comp/env/ejb/ name space 
and creating an object of it. Currently I don't have a jboss.xml file in 
the EJB package.

What do you think is the mistake I am making. Any Suggestions

App Server in user JBoss 2.2.2 - Tomcat 3.2

Thank you for your time.

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Tools

2001-07-01 Thread Devraj Mukherjee

Can anyone, tell me what tools are included in JBoss for helping with app 
deployment and generation of the XML descriptors?/

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] EJB Referencing problem

2001-07-01 Thread Devraj Mukherjee

Hi Vijay,

Is there any documentation available online that you know of which I read. 
I think I have messed up my JNDI concepts. I will check what you have 
suggested and send an email if I am still stuck.

Thank you for your help.

Devraj

At 11:50 1/07/01 +0100, you wrote:
Have you set up a ejb ref in your ejb-jar xml file for the session bean you
are trying to refer to?

it should look like

   ejb-ref
ejb-ref-nameejb/PieParamEB/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type
homeuk.co.isesolutions.biz.pieparam.entity.PieParamEntityHome/home

remoteuk.co.isesolutions.biz.pieparam.entity.PieParamEntityRemote/remote
ejb-linkPieParamEntity/ejb-link
   /ejb-ref

   where ejb-ref-name is what you will be looking up in the java:comp/env
namspace. the ejb-ref-type is the type of the second bean you are trying to
look up, hom and remote are the second bean's home and remote class name.
ejb-link is the ejb-name of the second ejb.

Regards

Vinay
- Original Message -
From: Devraj Mukherjee [EMAIL PROTECTED]
To: JBoss List Serve [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, July 01, 2001 8:29 AM
Subject: [JBoss-user] EJB Referencing problem


  Hello All,
 
  I am having quite some trouble doing a lookup. I understand from the JBoss
  documentation that if the Beans are in the same JAR file, then they should
  refer to each other by java:comp/env/ejb/BeanName and if they are outside
  the package then I should declare a new jboss.xml file which defines the
  external names.
 
  Now my problem uses an EntityBean, a Session Bean a JavaBean to support
the
  JSP file and the two JSP files. I have refered to the entity beans from my
  sessions beans using the java:comp/env/ejb/BeanName way, but the JavaBean
  (which belongs to the same package as the Session Bean) seem to have
  problems locating the Session Bean with the java:comp/env/ejb/ name space
  and creating an object of it. Currently I don't have a jboss.xml file in
  the EJB package.
 
  What do you think is the mistake I am making. Any Suggestions
 
  App Server in user JBoss 2.2.2 - Tomcat 3.2
 
  Thank you for your time.
 
  Devraj
 
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Beans Referencing

2001-06-29 Thread Devraj Mukherjee

Thanks Andreas,

% page import= % works

but when I use xml styled tags such as jsp:directive.page . / does 
not work.

Well the important thing is I got it working. Thank you all.

Devraj

At 03:24 PM 6/28/2001 +0200, you wrote:
Have You included the import statement in Your JSP?

%@ page import=com.freeforums.webbeans.*%

  -Original Message-
  From: Devraj Mukherjee [SMTP:[EMAIL PROTECTED]]
  Sent: 28 June 2001 15:04
  To:   JBoss List Serve
  Cc:   [EMAIL PROTECTED]
  Subject:  [JBoss-user] Beans Referencing
 
  Hi all,
 
  I have managed to create an intermediate class file which now access the
  session beans and my JSP file can successfully call the beans. I only have
 
  one problem, which is I have to reference my class file in the JSP with
  the
  full name (package and class) for example a file Login.class in the
  packages com.freeforums.webbeans
 
  has to be reference in the JSP like com.freeforums.webbeans.Login
  otherwise
  it says it cannot be found. What could be the problem. I have added the
  path to the JBoss server class path as well - no changes.
 
  Any Suggestions??
 
  Thanks.
 
  Devraj
 
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  http://lists.sourceforge.net/lists/listinfo/jboss-user


If you have received this e-mail in error or wish to read our e-mail 
disclaimer statement and monitoring policy, please refer to
http://www.drkw.com/disc/email/ or contact the sender.

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] NullPointer Exception while adding

2001-06-29 Thread Devraj Mukherjee

Hello All,

Problem Scenario:

I have created an entity bean which is called UserBean along with its 
Remote and Home interfaces, I have also created a Session Bean which is 
called UserManagerBean which is supposed to let me add, remove, modify users.

Next I created a JavaBean to support my JSP which allows me to do the 
lookup for the Session Bean and then execute the method for adding the new 
user with the appropriate parameters.

Questions:

1. When the JSP file attempts to call the method I get a NullPointer 
exception on my JBoss Server window. Any ideas why this would be so?
2. Is there an administration tool for having a look at the tables of the 
default database servers (InstantDB and Hypersonic SQL)

Attached are all the files related to this problem, could some one have a 
look and give me some pointers.

Devraj
 FreeForums-Temp.zip


[JBoss-user] Beans Referencing

2001-06-28 Thread Devraj Mukherjee

Hi all,

I have managed to create an intermediate class file which now access the 
session beans and my JSP file can successfully call the beans. I only have 
one problem, which is I have to reference my class file in the JSP with the 
full name (package and class) for example a file Login.class in the 
packages com.freeforums.webbeans

has to be reference in the JSP like com.freeforums.webbeans.Login otherwise 
it says it cannot be found. What could be the problem. I have added the 
path to the JBoss server class path as well - no changes.

Any Suggestions??

Thanks.

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Client code example

2001-06-27 Thread Devraj Mukherjee

Hi Allen,

Just a quick question to you, what is the JNDI name that you have specified 
in your XML descriptors which you are looking up by the name 
java:comp/env/ejb/simpleSession

That will help me associate the names for my beans as well.

Thanks heaps.
Devraj

At 19:04 27/06/01 -0400, you wrote:
try {
 InitialContext ctx = new Initialcontext();
 Object o = ctx.lookup(java:comp/env/ejb/simpleSession);
 simpleSessionHome home =
(simpleSessionHome)PortableRemoteObject.narrow(o, simpleSessionHome.class);
 simpleSession bean = home.create();
 .
 .
 .
}
catch(

Al

- Original Message -
From: Devraj Mukherjee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: JBoss List Serve [EMAIL PROTECTED]
Sent: Wednesday, June 27, 2001 6:48 PM
Subject: [JBoss-user] Client code example


  Is someone able to send me a chunk of their client code which creates a
  object of their Session bean after doing a lookup.
 
  Devraj
 
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] ejb-jar.xml DTD?

2001-06-26 Thread Devraj Mukherjee

http://java.sun.com/j2ee/dtds/

Devraj

At 12:22 PM 6/26/2001 +0200, you wrote:
Hi!
 I'm writing the ejb-jar.xml file for an application of mine; I'm trying
to guess the sintax, but it's not the best thing in the world... ;) I'd need
a guide, or at least a list of the fields! The manual says only (isn't it
quite a shame for it?) that the DTD is downloadable from the Sun, but a
search on their site didn't lead to any result. May anyone tell me where to
find it?
 Thanks in advance,
 Mano :)



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problematic deploy of an entity bean

2001-06-26 Thread Devraj Mukherjee

Check if your XML descriptor is correct. 
Do Entity beans have a session-type, I could be wrong here. I am not very
experienced here as well.
Other than that, I think you have to put the XML file in a directory
called, META-INF and then make the jar file.
Devraj
At 12:35 PM 6/26/2001 +0200, you wrote:
Hi all!
:)
 I've realized a jar with
this directory structure:

Fantacalcio.jar
---
[...]
fantacalcio/CalciatoriBean.class
fantacalcio/CalciatoriHome.class
fantacalcio/Calciatori.class
[...]

All of them belong to the package
fantacalcio. The ejb-jar.xml I wrote is:

?xml version=1.0
encoding=UTF-8?

ejb-jar

descriptionFantacalcio/description
 display-nameTest di
Fantacalcio/display-name
 enterprise-beans
 entity

ejb-nameCalciatori/ejb-name

homefantacalcio.CalciatoriHome/home

remotefantacalcio.Calciatori/remote

ejb-classfantacalcio.CalciatoriBean/ejb-class

session-typeStateless/session-type

prim-key-classint/prim-key-class

transaction-typeBean/transaction-type

persistence-typeBean/persistence-type

reentrantFalse/reentrant
 /entity
 /enterprise-beans
/ejb-jar
but the deploy fails:

[J2EE Deployer Default] Starting deploy
failed!
[Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy
file:/usr/local/jboss/tmp/deploy/Default/deploy,
Cause:java.lang.ClassNotFoundException: fantacalcio.CalciatoriHome
I've tried almost everything I can think about... and now I'm begging for
help... please, help me! ;-)
 Thanks in
advance,
 Mano
:)


Re: [JBoss-user] GUI tools for deployment

2001-06-26 Thread Devraj Mukherjee

JBoss, uses auto deployment, if you copy the file across then it does 
deploy the files. I create the XML editor using a normal text editor and 
copy the jar file with the contents across to the deploy directory.

Devraj

At 01:58 PM 6/26/2001 +0200, you wrote:
I notice that Sun has a Deployment GUI tool for its J2EE
implementation. Is this useful in conjunction with JBoss? Or is there
something else I should rather use?

I did try a JBoss GUI tool for editing deployment descriptors (I think
that's what it was supposed to do :-) but it didn't seem to show me
much of interest.

Cheers
 Bent D
--
Bent Dalager - [EMAIL PROTECTED] - http://www.pvv.org/~bcd
 powered by emacs

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Suggested way of calling Session Beans from JSP

2001-06-26 Thread Devraj Mukherjee

Tell me more ... can I find some documentation about Velocity somewhere ??

Devraj

At 23:01 26/06/01 +0200, you wrote:
Why not using Velocity... ? I have been trying it with Jboss. You just have
to write simple servlet that select beans and give references to your pages.
With a good session bean design it's very simple.
I allows to create nice pages without embedding too much code in it and
editable with a simple html editor

François


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] logo

2001-06-26 Thread Devraj Mukherjee

I found that this web site uses a logo

http://wwwswt.informatik.uni-rostock.de/deutsch/Lehre/Seminar/Vortraege/e-commerce0001/HandsOnTour/jboss-xml.html

see if this helps

At 17:45 26/06/01 -0700, you wrote:
Is there a 'Powered By JBOSS' logo. We're running the site on it starting
today.


Thanks,
r.b.





___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Suggested way of calling Session Beans from JSP

2001-06-26 Thread Devraj Mukherjee

Hi

Does one need to install the Turbine modules to run Velocity ??

Devraj

At 19:32 26/06/01 -0400, you wrote:
http://jakarta.apache.org/velocity/index.html

-- Mike


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] startup

2001-06-26 Thread Devraj Mukherjee

Try going to rc.local

Devraj

At 18:57 26/06/01 -0700, you wrote:
Anybody running JBoss at startup on their Linux server?

I've tried getting it to go from an /etc/rc.d/rc3.d link to an init.d file.
I can start the server if I do it manually, but it doesn't work during the
startup process.


r.b.





___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] How to define JSP files in web.xml

2001-06-25 Thread Devraj Mukherjee

Hi All JBoss users,

I was wondering how do we have to declare the JSP files in a WAR package's 
web.xml file.

Thanks
Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] How to define JSP files in web.xml

2001-06-25 Thread Devraj Mukherjee

I did not have a definition, the browser is prompting me to download the 
file instead of executing it.

I am a jboss user. Please help.

Thanks.
Devraj

At 02:28 PM 6/25/2001 +0100, you wrote:
You don't need to declare them.

Devraj Mukherjee [EMAIL PROTECTED] wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi All JBoss users,
 
  I was wondering how do we have to declare the JSP files in a WAR package's
  web.xml file.
 
  Thanks
  Devraj
 
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  http://lists.sourceforge.net/lists/listinfo/jboss-user
 



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Precompiling JSP ??

2001-06-25 Thread Devraj Mukherjee

How do I precompile JSP files?

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Precompiling JSP ??

2001-06-25 Thread Devraj Mukherjee

Thanks. I am a tomcat user

Devraj

At 00:41 26/06/01 -0400, you wrote:
Depends which jsp engine you use.  With Tomcat it's jspc.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] How to publish JSP, Servlets, HTML in JBOSS

2001-06-24 Thread Devraj Mukherjee

Hello all JBoss users,

I am a new JBoss user and was wondering if you can tell me what is the 
right way of publishing JSPs, Servlets, and HTML files in JBoss. Should one 
make WAR files with deployment descriptors ??

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Help with running JBoss on Solaris, Sparc

2001-06-24 Thread Devraj Mukherjee

Hi All,

I am trying to Run JBoss on Solaris, everything works fine except the JSPs. 
Try out the JSP examples at http://farrer.csu.edu.au:8080/examples/jsp/ and 
see if you can give me any pointers.

Thank you.

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Help with running JBoss on Solaris, Sparc

2001-06-24 Thread Devraj Mukherjee

Thanks all for the solution

Devraj

At 23:08 24/06/01 -0400, you wrote:
 Hi,
You have to add tools.jar from {JDK.HOME}/lib into your JBOSS_CLASSPATH
variable. It should fix your problem


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss, CMP, AutoNumber problem

2001-06-23 Thread Devraj Mukherjee

I was searching on the Internet with regard to my problem which is using 
AutoNumbers with Container Managed Persistence. I found this URL which gave 
me some pointers http://groups.yahoo.com/group/jboss-docs/message/103 
however as I am quite new to the whole J2EE programming environment, I 
could not make much out of it, could any one give me some pointers with 
regard to what has been discussed in that web page and help me solve this 
problem.

Thank you.

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss XML Composite Primary Key and CMP.

2001-06-22 Thread Devraj Mukherjee

Hi all,

I am trying to create a CMP Entity Bean where I need to define a 
combination of more than one field as the primary key for the table, I was 
wanting to know how do we define this in the deployment descriptors.

I am a JBOSS 2.2.2 user with the default installation with Tomcat. Sorry I 
didn't mention this in my last email.

Thank you. Regards,

Devraj 


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Composite Primary Key and CMP.

2001-06-22 Thread Devraj Mukherjee

Hi all,

I am trying to create a CMP Entity Bean where I need to define a 
combination of more than one field as the primary key for the table, I was 
wanting to know how do we define this in the deployment descriptors.

Thank you. Regards,

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] CMP and AutoNumbers

2001-06-20 Thread Devraj Mukherjee

Hello all,

I am new to this list serve, as I am very new JBoss user. I am student in 
Australia (Charles Sturt University www.csu.edu.au) using this for an 
university project.

I was wondering if some one can guide me as to how I can use CMP and 
AutoNumbers ?? If you happen to have any examples that you can share it 
will be great.

Also can you all let me know what you think about JBoss, so far I have 
tried to deploy some sample applications and think it is quite good. Are 
there any tools for administering Hypersonic SQL and Instant DB.

Thank you for your time.

Regards,

Devraj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user