[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Peculiar caching problem

2005-10-20 Thread u9707118
While my web application was running, I made a change to the login jsp page in 
the $JBOSS_HOME/server/default/tmp... directory to warn users of a deadline 
that had passed and to disable the login field.

This worked fine by accessing the root dir of the web application i.e. 
http://myserver.com/mywebapplication/

However, I found that some users found a back door.  They had bookmarked the 
login page (http://myserver.com/mywebapplication/Index.jsp).  

This page was still showing the old version and letting users still login.  DOH!

Bit of a strange one I thought.  Anyone know how I could stop this happening 
without having to restart JBOSS or redploy the web app?

Thoughts would be most appreciated!  BTW, I am using JBOSS 4.0.2 on Redhat ES 
3.0.

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - EJB's looking at hypersonic database instead of mysql

2005-09-22 Thread u9707118
This is a very strange problem...I have worked with JBOSS and Oracle many times 
without problem.  However, now I am trying my hand at JBOSS and mySQL with some 
puzzling results.

I have successfully created a Datasource that connects to mySQL and I have a 
class that performs JDBC queries (this class connects to this mySQL datasource 
-- see code below).  


  | System.out.println("Loading underlying JDBC driver.");
  | try {
  |Class.forName("com.mysql.jdbc.Driver");
  | } catch (ClassNotFoundException e) {
  |e.printStackTrace();
  | }
  | System.out.println("Done.");
  | final InitialContext context = new InitialContext();
  | dataSource = (DataSource)context.lookup ("java:/BBIMDB")

However the EJB's seem to be pointing at a different database (I guess 
hypersonic) because when I call a findByPrimaryKey() method on a bean with a 
row I know exists, it can't find it (NotFoundException).  And when I create an 
entity bean - it works without error, however it is nowhere to be seen in the 
mySQL database!

I have created a mySQL datasource (mysql-ds.xml) as follows:

  |  
  |  
  | BBIMDB 
  | jdbc:mysql://localhost:3306/bbimdb 
  | com.mysql.jdbc.Driver 
  | bbimdb 
  | password   
  | 
  | mySQL
  | 
  |  
  |  
With my EJB's, I deploy the following jbosscmp-jdbc.xml file:

  | 
  |
  |  java:/BBIMDB
  |  mySQL
  |  false
  |  false
  |   
  |   
  | ...
and the following jboss.xml file

  | http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd";>
  | 
  | 
  |  jdbc/BBIMDB 
  |  BBIMDB 
  | 
  | ...
  | 
Please can somebody help? I am at a loss :(
I am using jboss-4.0.1sp1 on winXP with mySQL 4.1 and connectorj 3.1.10

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: EJB not committing

2004-06-18 Thread u9707118
I have solved my problem!
In case anyone has the same problem... it is to do with ejb-transactions.

I had to set the ejb transaction for my particular ejb to RequiresNew so that the 
transaction is commited immediately.

Damian

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: EJB not committing

2004-06-17 Thread u9707118
Hi, thanks for the reply.

The reason I am confused is because when using Oracle 9i Application Server...when you 
create an EJB (supplying a unique ID), this is reflected immediately in the database.

However in JBOSS, (as described in the above scenario), this is not true.

Damian

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - EJB not committing

2004-06-16 Thread u9707118
OK, let me first say that I am really new to JBOSS - so I'm probably doing something 
really stupid...

In my code, I have a loop that creates a series of EJB's.
In order to find a unique id, I use an sql statement to find the highest value primary 
key (say 6) and I increment by one (7).

This works for creating the first EJB in the loop - however, on the 2nd iteration of 
the loop, the sql statement returns a high primary key of 6 (again - as if the first 
ejb created is not reflected in the database).  However, when I increment this value 
to 7 and try to create the next EJB, a DuplicateKeyException is thrown.

What is going on?
How can I commit data to the database when the EJB is created?

Thanks

Damian

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

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


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: deployed EJB's on wrong datasource

2004-06-14 Thread u9707118
Thank you very much, my friend.
That was exactly what I was missing.

My fingers are hurting, but at last I now have it working.
Thanks for the tip!

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

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


---
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - deployed EJB's on wrong datasource

2004-06-11 Thread u9707118
I am so close, I can smell it!

I have installed a datasource for oracle9i by adapting the oracle-ds.xml file in the 
examples/jca directory.
I deploy my EJB jar file in the deployment directory - which unpacks and installs 
fine.  I even get my client java app to communicate with my EJB's on the server.

The only problem I have is that my EJB's are not bound to my oracle database - I guess 
they are probably bound to the default Hypersonic database?
...So I can read/write to the DB no problem (through the EJB's) but it is the wrong 
database.

I must have missed something somewhere?
The JNDi relevant parts of my deployment descriptors are below:

ejb-jar.xml:

  | 
  | 
  |   jdbc/OracleDS
  |   javax.sql.DataSource
  |   Container
  |   
  | ...etc
  | 
  | 

jboss.xml:

  | 
  | 
  |  jdbc/OracleDS 
  |  java:/OracleDS 
  | 
  | ...etc
  | 
  | 

What could I be missing?

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

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


---
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: install/run JBOSS 3.2.4 problem - ConnectionFactoryDeplo

2004-06-11 Thread u9707118
For any-one who has the same problem,

I tried upgrading to jdk1.4.2_04 and this seems to have solved the
problem...what ever it was.

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

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


---
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - install/run JBOSS 3.2.4 problem - ConnectionFactoryDeployer

2004-06-11 Thread u9707118
Hi,

I am not quite sure why, but I am getting some errors when I try to install/run JBOSS 
3.2.4 on my w2k workstation.  
I have j2sdk1.4.2 installed and have JAVA_HOME set to this directory.

I see Xalan in the error message, is it possible that j2sdk1.4.2 has a version of this 
lib that is incompatible with JBOSS?

Would appreciate an expert opinion.

NB. I have other errors, but have posted a snippet of the very first because they 
probably result from this first error.


2004-06-11 09:33:41,843 DEBUG [org.jboss.deployment.XSLSubDeployer] Creating 
jboss.jca:service=ConnectionFactoryDeployer
  | 2004-06-11 09:33:42,375 ERROR [org.jboss.deployment.XSLSubDeployer] Initialization 
failed jboss.jca:service=ConnectionFactoryDeployer
  | javax.xml.transform.TransformerConfigurationException: 
javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: 
Failed calling setMethod method
  | at 
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:984)
  | at org.jboss.deployment.XSLSubDeployer.createService(XSLSubDeployer.java:165)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:237)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:219)
  | at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  | 
  | etc...
  | 

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

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


---
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user