RE: Java IDE?

2002-03-23 Thread Marc Rabil

I have been following this discussion with much interest since I recently
set out to re-evaluate Java IDEs - particularly for J2EE.  Based on the
recent JDJ poll located here:

http://www.sys-con.com/java/readerschoice2002/liveupdate.cfm?cat=J2EE

it would seem that a lot of folks like JBuilder.  But this may just be a
marketshare estimate and it looks like a lot of folks on this list like
IDEA.

We've been using JBuilder 4 Enterprise with mixed feelings and are looking
at upgrading to JBuilder 6.  Can any of the IDEA proponents out there
summarize the major advantages of IDEA over JBuilder 6 (say professional
edition since the upgrade is a comparable price)?

Thanks in advance,

Marc




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Clay Mitchell
Sent: Friday, March 22, 2002 11:37 PM
To: Orion-Interest
Subject: RE: Java IDE?


Hmm I'm loving idea, but it costs $ - I wonder what happens when the
trial expires... Nag or just doesn't work?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Gottfried
Szing
Sent: Friday, March 22, 2002 6:55 PM
To: Orion-Interest
Subject: Re: Java IDE?


On Fri, 22 Mar 2002, Clay Mitchell wrote:

 Just a question, any suggestions as to what a good IDE is? I've tried
 JBuilder, IDEA (I like IDEA) and a few others... any recommendations?

i like idea. since i have seen idea i was a loyal user of vim and ant.
now i use idea in combination with ant, junits, and orion.










Problem on Netscape Browser - Document Contained No Data

2002-02-14 Thread Marc Rabil

I have an application that uses a custom user manager and form-based
authentication on Orion 1.3.8.  Things work great with Internet Explorer,
but with Netscape 4.7, the browser pops up a Document Contained No Data
error when attempting to login - as if its not getting anything back from
the server.  If I turn security off and request the same URL, I get right
in.

Anybody have any idea what is causing this?  Thanks in advance,

Marc





RE: Username and Password

2002-02-06 Thread Marc Rabil

You can get the user name for the request like this:

request.getRemoteUser()

I think, by design, you are not able to get the password from the container.
You can however, use the request.isUserInRole() method to see what role they
are in.  Otherwise, you'll need to access your DB for the password.

Marc

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Christian,
Joanne
Sent: Wednesday, February 06, 2002 12:30 PM
To: Orion-Interest
Subject: Username and Password


HI All,

I'm new to J2EE and Orion. I have set up form-based authorization using
DataSourceUserManager. Super!

From my initial jsp and/or servlet (not the login page), I would like to
access the username of the person who just logged in.

How can I do this?  I have tried to get attributes from the ServletContext
an the session. I have also tried various other things I'd rather not
mention . . .

So:
How can I access the values of j_username and j_password once the user has
been logged in?

Also, where and what is j_security_check?


Thanks,

Joanne





RE: Retrieving stateful session bean

2002-01-25 Thread Marc Rabil

I tried working through this a couple of weeks ago and found no easy
solution to accessing the session in the User Manager.  

For what you are trying to do, it seems you should be able to use the
isUserInRole() method once the request actually gets to your application to
make the decisions on what to display.

Marc

  -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]  On Behalf Of Mulder, Frans
 Sent: Thursday, January 24, 2002 11:09 AM
 To:   Orion-Interest
 Subject:  Retrieving stateful session bean
 
 Hello list,
 
 Here's the situation: I've implemented a custom user manager in the way
 described in
 http://kb.atlassian.com/content/orionsupport/articles/usermanager.html and
 it works fine to restrict certain areas in my web app to specific groups.
 Authentication is done against an Oracle database using CMP entity beans.
 When the checkPassword method in my user manager is about to return true,
 I create a stateful session bean in which I store the user id of the
 successfully logged in user, so I can later check his rights (in order to
 later make the decision to display buttons, etc.). But how do I access
 this specific instance of the sfsb later on? I cannot store the handle in
 the session object, because I don't have access to the session object from
 my user manager (or do I?). So how can this be done?
 
 Frans



winmail.dat
Description: application/ms-tnef


JAXM Standalone Demo Won't Work

2002-01-11 Thread Marc Rabil

Has anyone had any luck getting the JAXM StandAlone demo (jaxm-simple.war)
to work on Orion?  I am getting the error below from the originating code
(StandAlone.java).

Any help will be appreciated,

Marc

Sending message to URL: http://localhost:8080/jaxm-simple/receiver
java.io.FileNotFoundException: http://localhost:8080/jaxm-simple/receiver
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at
com.sun.xml.messaging.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.
java:198)
at
com.sun.xml.messaging.client.p2p.HttpSOAPConnection$PriviledgedPost.run(Http
SOAPConnection.java:105)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sun.xml.messaging.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.
java:84)
at StandAlone.main(StandAlone.java:70)
javax.xml.soap.SOAPException: java.security.PrivilegedActionException
javax.xml.messaging.JAXMException: Message send
failed
at
com.sun.xml.messaging.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.
java:88)
at StandAlone.main(StandAlone.java:70)





RE: deploying ejb without jar'ing

2002-01-09 Thread Marc Rabil

I'm pretty sure you can not.

Marc

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Morten Wilken
Sent: Wednesday, January 09, 2002 4:10 AM
To: Orion-Interest
Subject: deploying ejb without jar'ing


im sure ive come across this... can i deploy ejb's directly from a
filestructure instead fo jarring them first? and if so how?

sincerely
Morten Wilken





RE: deploying ejb without jar'ing

2002-01-09 Thread Marc Rabil

Sorry for the bad advice - looks like good ole Orion allows you to do all
kinds of things!

Marc

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Renaud
Bruyeron
Sent: Wednesday, January 09, 2002 1:23 PM
To: Orion-Interest
Subject: Re: deploying ejb without jar'ing



I do this all the time.

filestructure:

app/
META-INF/
app-ejb/
META-INF/
com/fullsix/...
app-web/
WEB-INF/

I point orion at app/ (via server.xml), and in the application.xml, instead
of referencing
a .jar, I reference app-ejb/ like this:
application
...
 module
  ejbapp-ejb/ejb
 /module
...
/application

As long as orion finds the META-INF for the ejbs, it does not make
a difference wether it's a jar or not.
it will deploy the app into $ORION_HOME/application-deployments/ as usual.

 - Renaud

- Original Message -
From: Marc Rabil [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, January 09, 2002 2:48 PM
Subject: RE: deploying ejb without jar'ing


 I'm pretty sure you can not.

 Marc

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Morten Wilken
 Sent: Wednesday, January 09, 2002 4:10 AM
 To: Orion-Interest
 Subject: deploying ejb without jar'ing


 im sure ive come across this... can i deploy ejb's directly from a
 filestructure instead fo jarring them first? and if so how?

 sincerely
 Morten Wilken









Support for JCA

2002-01-03 Thread Marc Rabil

Does Orion support the JCA (Java Connector Architecture) 1.0 spec - i.e. can
I deploy a .RAR file with a resource adapter in it?

As always, any help will be greatly appreciated.

Marc





EJB Primary Key of int

2001-10-04 Thread Marc Rabil

I can not figure out how to get Orion's EJB CMP to work when the primary key
is an 'int'.  In the deployment descriptor (ejb-jar.xml), the code is:

prim-key-classint/prim-key-class

When starting up Orion, I get:

Class 'int' not found

Any help will be greatly appreciated,

Marc





EJB 2.0

2001-02-15 Thread Marc Rabil

It's not clear looking through the documentation how much of EJB 2.0 Orion
currently supports.  Specifically, I am interested in using CMP and EJB QL
to do advanced queries of a multi-table database.  Best I can understand the
current technology, I have 2 choices: 1) use findAll() a lot and combine the
results in Java code or 2) bypass CMP and write my own SQL statements.

Any help/insight will be greatly appreciated.

Marc Rabil





Broken Pipe

2001-02-02 Thread Marc Rabil

I am experiencing a sporadic IOException in an application that
has a message of "Broken pipe".  I've included the stack trace below.

I am not sure where to look for possible problems since I don't really
understand what a broken pipe is.  My system is Orion 1.3.8 running on
Redhat 6.2 accessing Interbase 6.0.1 through Interclient 1.6.  There are 2
tiers: a web tier and an EJB tier.

Any help would be greatly appreciated,

Marc

1/31/01 9:42 AM simplica_survey-web: Servlet error
javax.servlet.jsp.JspTagException: Problem accessing the JspWriter in
WrapperTag. IOExecption message was: Broken pipe
at com.simplica.web.taglib.WrapperTag.doStartTag(WrapperTag.java:70)
at /survey_template.jsp._jspService(/survey_template.jsp.java:49) (JSP page
line 4)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.w5(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d1.si(JAX)
at com.evermind.server.http.d1.include(JAX)
at com.simplica.web.JspView.render(JspView.java:45)
at
com.simplica.survey.web.SurveyViewManager.update(SurveyViewManager.java:101)
at com.simplica.web.MainServlet.doPost(MainServlet.java:29)
at com.simplica.web.MainServlet.doGet(MainServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at com.evermind.server.http.d1.si(JAX)
at com.evermind.server.http.d1.forward(JAX)
at com.evermind.server.http.ed.sp(JAX)
at com.evermind.server.http.ed.so(JAX)
at com.evermind.util.f.run(JAX)





Turning off Auto-create Tables

2000-11-15 Thread Marc Rabil

I am trying to deploy an app that uses CMP to connect to an Interbase server
via the Interclient driver.  On deploy, Orion starts auto-creating tables
that I don't need (since the database already exists) and gives me the error
below.  How can I turn auto-create off or point it at the right DB?

java.lang.VerifyError: (class: interbase/interclient/ErrorKey, method: _$372
signature: (Ljava/lang/String;Ljava/lang/String;I)V) Expecting to find
unitialized object on stack
at
interbase.interclient.SQLException.init(SQLException.java:96)...

Thanks,

Marc





Orion as JBuilder Servlet Engine

2000-11-13 Thread Marc Rabil

I have JB4 Enterprise and have figured out (thanks to help from some folks
on this list) how to replace IAS with Orion for running EJBs.  I also would
like to replace Tomcat with Orion as the web server/servlet engine so I can
maintain the integrated JSP and servlet debugging.  These seems to be a bit
more complicated and requires using Borland's OpenTools API.

Has anyone done this or know where I can find some starting code?  Thanks,

Marc






JBuilder as an IDE for Orion - Can this work?

2000-08-20 Thread Marc Rabil



Like many 
participating on this list, we are in the early stages of trying to set-up our 
development and infrastructure platform. We are building apps that use 
both JSPs/Servlets in the web tier and EJB's in the application tier and really 
like Orion for this.We also really like JBuilder as an IDE and 
debugging environment. We are trying to figure out:

1. Is there any way 
to connect the JBuilder debugger to the Orion app server?
2. If so, do you 
need to use the Enterprise edition of JBuilder to accomplish 
this?
3. If not, what are 
folks using out there?

Thanks in advance 
for any assistance,

Marc