Re: [JBoss-user] how to manage the jboss default dbase?

2002-11-20 Thread Andrea Delle Chiaie
SainTiss wrote:


Hi,

it didn't open anything at first, but when looking at the jboss log, I
saw it was due to an X authentication problem...

Executing "xhost +localhost" solved it... Is this a known issue?

Thanks

Hans


This is a very well known issue, but it doesn't matter with JBoss, 
Hypersonic or whatever, it depends on the security settings of your 
machine (at os level); the command xhost let know your system from which 
hosts he's allowed to accept connections to the X server.
Bye
Mr. Andrea




---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] JBoss 2.4.7 + Catalina 4.0.4 - problems deploying expanded directory

2002-07-10 Thread Andrea Delle Chiaie

Jules, you're right, I've found an unwanted jboss-web.xml in my .war that
had the virtualhost tag, after I removed it, everything works correctly.
Thank's for your reply that lead me to solve my mistake...
Bye
Andrea

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jules
Gosnell
Sent: mercoledi 10 luglio 2002 16.06
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JBoss 2.4.7 + Catalina 4.0.4 - problems
deploying expanded directory



I hope that there is some misunderstanding here.

virtual hosts should have NOTHING to do with deploying stuff
packed/unpacked.

Jetty should only deploy to a virtual host IFF a virtual-host tag is
specified in your WEB-INF/jboss-web.xml.

This will work independendantly of however you choose to package your app.

Is anyone experiencing any behaviour that would lead them to believe
otherwise ?


Jules


Andrea Delle Chiaie wrote:
> Hi rp,
> I had the same problem and I've found, looking at the jboss console traces
> that JBoss-Jetty deploys the .war under the virtual host called
> myvirtualhost and so, if you are able to resolve the name myvirtualhost
(if
> is your machine, just add myvirtualhost to your hosts file) try to point
> your browser to http://myvirtualhost:8080/your_context and you'll see it
> working.
> I don't know why Jetty is configured to use the myvirtualhost and I didn't
> find where it is, but I know that this is the situation, please if someone
> knows the solution, post in the list.
> Bye
>
> Mr. Andrea Delle Chiaie
>
> Notio Srl
> Viale Ratto delle Sabine 45/a
> 00133 - ROMA
> tel +39-06-41.29.47.73
> fax +39-06-41.40.44.28
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> [EMAIL PROTECTED]
> Sent: martedi 9 luglio 2002 19.26
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] JBoss 2.4.7 + Catalina 4.0.4 - problems deploying
> expanded directory
>
>
>
> Using JBoss 2.4.4 + Jetty, I can deploy an unpacked, expanded directory by
> pointing the
> autodeployer in the jboss.jcml to that particular directory.  I try the
same
> thing with JBoss 2.4.7
>  + Tomcat (Catalina) 4.0.4 and it doesn't work at all !!
>
> It appears to be deployed - the log file indicates that it is creating a
> module of /
> with a context path of //.  No errors on deployment.  Yet, when
I
> try to hit a particular
> .jsp immediately under that context path, say
> http://localhost// I get
> a 500 error message from Catalina saying that there is no context
configured
> to handle the
> request.
>
> I've tried putting the directory into JBoss' deploy directory.  I've tried
> putting the directory into
> JBoss' deploy directory and then renaming it to .war, etc.  I
get
> the same results
> as above.
>
> The only time I can get it working with Tomcat is to package the directory
> up and deploy it
> as a packaged file.  This ought to work!  Can anyone explain why it isn't?
>
> rp
>
>
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Two, two, TWO treats in one.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This sf.net email is sponsored by:ThinkGeek
Two, two, TWO treats in one.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This sf.net email is sponsored by:ThinkGeek
Two, two, TWO treats in one.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBoss 2.4.7 + Catalina 4.0.4 - problems deploying expanded directory

2002-07-10 Thread Andrea Delle Chiaie

Hi rp,
I had the same problem and I've found, looking at the jboss console traces
that JBoss-Jetty deploys the .war under the virtual host called
myvirtualhost and so, if you are able to resolve the name myvirtualhost (if
is your machine, just add myvirtualhost to your hosts file) try to point
your browser to http://myvirtualhost:8080/your_context and you'll see it
working.
I don't know why Jetty is configured to use the myvirtualhost and I didn't
find where it is, but I know that this is the situation, please if someone
knows the solution, post in the list.
Bye

Mr. Andrea Delle Chiaie

Notio Srl
Viale Ratto delle Sabine 45/a
00133 - ROMA
tel +39-06-41.29.47.73
fax +39-06-41.40.44.28



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: martedi 9 luglio 2002 19.26
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBoss 2.4.7 + Catalina 4.0.4 - problems deploying
expanded directory



Using JBoss 2.4.4 + Jetty, I can deploy an unpacked, expanded directory by
pointing the
autodeployer in the jboss.jcml to that particular directory.  I try the same
thing with JBoss 2.4.7
 + Tomcat (Catalina) 4.0.4 and it doesn't work at all !!

It appears to be deployed - the log file indicates that it is creating a
module of /
with a context path of //.  No errors on deployment.  Yet, when I
try to hit a particular
.jsp immediately under that context path, say
http://localhost// I get
a 500 error message from Catalina saying that there is no context configured
to handle the
request.

I've tried putting the directory into JBoss' deploy directory.  I've tried
putting the directory into
JBoss' deploy directory and then renaming it to .war, etc.  I get
the same results
as above.

The only time I can get it working with Tomcat is to package the directory
up and deploy it
as a packaged file.  This ought to work!  Can anyone explain why it isn't?

rp




---
This sf.net email is sponsored by:ThinkGeek
Two, two, TWO treats in one.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss 2.4.6/3.0 and JMS

2002-05-20 Thread Andrea Delle Chiaie

Hi all,
I noticed some old messages in the list where someone had problem getting
the Connection Factory (Topic or Queue) from a JBoss 3.0 (and I also with
2.4.6) using some code that is working under 2.4.4.
The problem was that when looking for the Connection Factory in the JNDI
context like:

QueueConnectionFactory queueFactory =
(QueueConnectionFactory)context.lookup("java:/ConnectionFactory");

there wasn't an Exception but the queueFactory was null.
I found that the problem is that you must use the right client classes when
compiling the project.
I tried to use the 2.4.6 client classes with the 2.4.6 server (or the 3.0RC2
client classes with the relative server) and I got the right behaviour.
It may look very simple and stupid, but if you, instead of using ant, use an
IDE (I use JBuilder) with the libraries package already created with an
older version of jboss, may be that you can't realize that you're not using
the right classes.

Mr. Andrea Delle Chiaie



___
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/

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



[JBoss-user] Sybase ASE on HP-UX connection problem

2001-10-23 Thread Andrea Delle Chiaie

Hi guys,
I have a system in production running Sybase ASE 11.9.2, 12.0 and 12.5 on
various platforms.
I'm able to configure and connect to all the ASE versions on Windows
NT/2000, Linux, Digital Unix, but I've a problem on connecting to an ASE
running on HP-UX.
I thing that the problem is that under HP-UX the Sybase ASE's default
character set is the HP-ROMAN8 (quite similar to iso_1 or 8859_1) and the
Jconnect 5.2/5.5 documentation says that the HP-ROMAN8 character set isn't
supported because there isn't a corresponding Java character set
implementation.

Another thing I noticed is that if I set in the DB pool configuration
(jboss.jcml) the attribute:

0

JBoss isn't able to do the connection, SAYING NOTHING, I can't see the jboss
user connected to the ASE and the first time a bean is trying to use the db
pool I get an exception; if I set the attribute:

1

JBoss IS able to do the connection and I can see the jboss user connected to
the ASE BUT THE DATABASE IS NOT THE CORRECT ONE, IS THE MASTER DATABASE, and
the first time a bean is trying to use the db pool I get an exception.

I wrote a lot of other Swing based applications that are able to connect to
the HP-UX ASE just adding on the connection url (or with a property object
during the connection) the following properties:

jdbc:sybase:Tds:SERVERNAME:PORTNAME/DBNAME?user=USERNAME&password=PASSWORD&J
CONNECT_VERSION=5&CHARSET_CONVERTER_CLASS=com.sybase.jdbc2.utils.PureConvert
er

In this way, the client is telling to the server that he wants to use the
class com.sybase.jdbc2.utils.PureConverter as the default charset converter.

If I try to to the same in the jboss.jcml I get the following trace:

[ManageStoredProceduresBean] XAException: tx=XidImpl [FormatId=257,
GlobalId=ADC//14, BranchQual=] errorCode=XA_UNKNOWN(0)
[ManageStoredProceduresBean] javax.transaction.xa.XAException: Rollback
failed: JZ006: Caught IOException: java.io.IOException: JZ0I6: An error
occured converting UNICODE to the charset used by the se
rver.  Error message: java.io.CharConversionException:
java.io.UnsupportedEncodingException: hp-roman8

I also tryed to change the default character set of a HP-UX based ASE and
setting it to iso_1 everything works correctly.

Can someone help me???
Thanks in advance
Mr. Andrea Delle Chiaie


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



[JBoss-user] Unable to compile JSP

2001-06-28 Thread Andrea Delle Chiaie

Hi all,
I have a question that I've seen a lot of answers, but every time was not
the right solution.
If I deploy an application .ear file that contain a web application .war and
some ejbs in one .jar file in a JBoss 2.2.2 with Tomcat 3.2.2 embedded
installation everything is deployed correctly and Tomcat add a new context
/context-name correctly.
The problem is that if I try to access a file .jsp, when Tomcat tries to
compile, I get the following error:

Error: 500
Location: /addressbook-web/list.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for
JSPC:\JBoss-2.2.2_Tomcat-3.2.2\tomcat\work\localhost_8080%2Faddressbook-web\
_0002flist_0002ejsplist_jsp_0.java:13: Package addressbook.ejb not found in
import.
import addressbook.ejb.*;
   ^
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:258)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:268)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

In my classpath there is the tools.jar, in fact the problem isn't that
jasper can't find the compiler javac.class but that the java compiler can't
find the package addressbook.ejb.* that the jsp tries to import.
How can I solve this ???

Thanks in advance
Bye
Mr Andrea Delle Chiaie



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



RE: [JBoss-user] Sybase Datasource problem

2001-06-19 Thread Andrea Delle Chiaie

Instead of using:
dba
sql

use the following attribute:

user=dba;password=sql
this works for me.
Bye
Mr. Andrea Delle Chiaie


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of John
DeStefano
Sent: lunedi 18 giugno 2001 19.25
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Sybase Datasource problem


Hi,

I'm having a problem with creating a Sybase connection pool. I'm using JBoss
2.2.2 and JDK1.3.1. The startup output looks like this:

[JNDIView] Starting
[JNDIView] Started
[Transaction manager] Starting
[Transaction manager] Started
[JAAS Security Manager] Starting
[JAAS Security Manager] JAAS.startService, cachePolicy=null
[JAAS Security Manager] JAAS.startService,
SecurityProxyFactory=org.jboss.security.SubjectSecurityProxyFactory@4b6009
[JAAS Security Manager] Started
[JDBC provider] Starting
[JDBC provider] Started
[Hypersonic] Starting
[Hypersonic] Database started
[Hypersonic] Started
[DefaultDS] Starting
[Hypersonic] Server 1.4 is running
[Hypersonic] Press [Ctrl]+[C] to abort
[DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
[DefaultDS] Started
[CensusDS] Starting
[CensusDS] XA Connection pool CensusDS bound to java:/CensusDS

It hangs at the attempt to bind the Sybase datasource.

The jboss.jcml section for the sysbase database looks like this:


CensusDS
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l
jdbc:sybase:Tds:localhost:2638/census_file_db
dba
2
1
sql

false
false
false
true
12
180
false
false
1.0
  

The sybase driver does load according to the server startup output.

Any help would be appreciated.

Thanks


___
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] PreparedStatement in MySQL (Syntax error!!!)

2001-06-01 Thread Andrea Delle Chiaie

When you're using a prepared statement and you have a String parameter like
your number 2 and 3:
ps.setString(2,"'"+name+"'");
you don't need to add the "'" because he handles for you, try this, hope
helps
Ciao
Mr Andrea Delle Chiaie


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: venerdì 1 giugno 2001 16.22
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] PreparedStatement in MySQL (Syntax error!!!)


Here it comes!

 String query = 
   "select distinct Bookmark.id "+
   "from Bookmark,Role,RoleMapper,User "+
   "where Bookmark.inFolder = ? "+
   " and RoleMapper.userName = ? "+
   "and RoleMapper.roleName=Role.roleName "+
   "and (Role.level = 5 "+
   "or Bookmark.visibility = 2 "+
   "or (Bookmark.visibility = 0 "+
   "and Bookmark.owner = ? ) "+
   "or (Bookmark.visibility = 1 "+
   "and User.userName = Bookmark.owner "+
   "and User.unit = ? )) "+
   "order by Bookmark.name";
 ps = con.prepareStatement(query);
 ps.setInt(1,inFolder.intValue());
 ps.setString(2,"'"+name+"'");
 ps.setString(3,"'"+name+"'");
 ps.setInt(4,group);
 ResultSet rs = ps.executeQuery(query);

Regards,
Pelle Poluha

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Paul D Austin
Sent: den 1 juni 2001 15:54
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] PreparedStatement in MySQL (Syntax error!!!)


Can you post a copy of the code? 
-Original Message- 
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Pelle Poluha 
Sent: 01 June 2001 14:32 
To: [EMAIL PROTECTED] 
Subject: [JBoss-user] PreparedStatement in MySQL (Syntax error!!!) 


Hello! 
So far I haven't been able to use any PreparedStatements from my entity 
beans finder methods. All I get is an SQLException. I've used Statements 
instead. But I really want to use PreparedStatements. Now I've inserted a 
few println:s in the driver's PreparedStatement class to see what's actually

happening when I prepare a statement. This is what I get: 
[Bookmark] select distinct Bookmark.id from Bookmark,Role,RoleMapper,User 
where 
Bookmark.inFolder = ?  and RoleMapper.userName = ? and 
RoleMapper.roleName=Role. 
roleName and (Role.level = 5 or Bookmark.visibility = 2 or 
(Bookmark.visibility 
= 0 and Bookmark.owner = ? ) or (Bookmark.visibility = 1 and User.userName =

Boo 
kmark.owner and User.unit = ? )) order by Bookmark.name 
[Bookmark] java.sql.SQLException: Syntax error or access violation: You have

an 
error in your SQL syntax near '?  and RoleMapper.userName = ? and 
RoleMapper.rol 
eName=Role.roleName and (Role.l' at line 1 
[Bookmark]  at org.gjt.mm.mysql.MysqlIO.sendCommand(MysqlIO.java:497) 
[Bookmark]  at org.gjt.mm.mysql.MysqlIO.sqlQueryDirect(MysqlIO.java:550)

[Bookmark]  at org.gjt.mm.mysql.MysqlIO.sqlQuery(MysqlIO.java:635) 
[Bookmark]  at org.gjt.mm.mysql.Connection.execSQL(Connection.java:882) 
[Bookmark]  at org.gjt.mm.mysql.Connection.execSQL(Connection.java:815) 
[Bookmark]  at 
org.gjt.mm.mysql.Statement.executeQuery(Statement.java:169) 
I've tested the SQL separetely and it works perfectly. To me it looks like 
the query gets executed before the parameters get inserted. 
Any ideas? 
I'm using JBoss 2.2.1 on Win2K. 
Regards, 
Pelle Poluha 


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


 winmail.dat