[Installation, Configuration & Deployment] - Access Loggin
by chrismalan
I have a web application running on JBoss-4.0.4.GA. It is the ejb3 setup running as all. The OS is CentOS 4 and the JDK is JDK1.5, the latest downloaded about 10 days ago.
The relevant part in server.xml in JBOSS_HOME/server/all/deploy/jbossweb-tomcat55.sar has been uncommented to generate http request logs.
The trouble is that the logs look like this:
69.13.158.140 - - [16/Sep/2006:00:47:21 -0500] "GET /a1b2c3d4e5f6g7h8i9/nonexistentfile.php HTTP/1.0" 404 1069
| 69.13.158.140 - - [16/Sep/2006:00:47:22 -0500] "GET /adxmlrpc.php HTTP/1.0" 404 991
| 69.13.158.140 - - [16/Sep/2006:00:47:22 -0500] "GET /adserver/adxmlrpc.php HTTP/1.0" 404 1018
| 69.13.158.140 - - [16/Sep/2006:00:47:22 -0500] "GET /phpAdsNew/adxmlrpc.php HTTP/1.0" 404 1021
| 69.13.158.140 - - [16/Sep/2006:00:47:22 -0500] "GET /phpadsnew/adxmlrpc.php HTTP/1.0" 404 1021
Once in a while there is a log for a page or image which actually exists on the server, like /, with a return code of 200.
Visits to the site by me and others which I know about are not logged. Just these requests for non-existent pages with return codes of 404.
Is there any setting to be done which will get Tomcat to log all http requests?
On my machine at home everything works fine running the same stuff, albeit on a JBoss installed with the installer and running as default.
I'd appreciate any help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972107#3972107
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972107
19 years, 7 months
[EJB 3.0] - stateful session bean - access works but every time new one,
by stephan.opitz
if i lookup from my application for a stateful session, i get one:
try {
Context context = new InitialContext();
sessionFacade = (SessionFacade) context
.lookup("shale-clay-mailreader/" + SessionBean.Local);
// "shale-clay-mailreader/SessionBean/Local"
} catch (NamingException e) {
e.printStackTrace();
}
problem is after a request the lookup is away and a new one will be created...
i used jsf and saved the reference in a bean which had an applications scope session
so i could have my stateful session bean until i destroy it with @Remove
but why i have to save the reference?
is not the advantage that a stateful session bean knows and saves the depending client
?
or should it be - and while walking from request to request the jndi lookup creates new instead of get the old one, because the client looklike changed
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972100#3972100
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972100
19 years, 7 months
[Beginners Corner] - Migrating to Maven2
by dobbo
Hi
I am currently evaluating Maven2 for use in my project. So far I like what I see, and think that it is worth me switching. I have JBoss working the way I want it (with MySQL as the back end), and Ant does a good job of building my JARs and EARs.
With maven I can create a simple project, and so long as I use only standard J2SE stuff I'm okay. But the moment I start using J2EE stuff it all goes wrong. The compiler complains that it doesn't know about .javax.ejb.EntityBean and the like. With Ant I knew how to extend the class path at build time to find JBoss's JARs that defined all that stuff, but how do I do the same thing in Maven?
I guess what I'm really looking for is a simple "How to get started with Maven2 and JBoss" tutorial. There are some for Maven2 but when it comes to J2EE stuff they assume that you are using geronimo.
Thanks for your help
Steve
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972095#3972095
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972095
19 years, 7 months
[EJB 3.0] - EJB 3.0 Deployment
by g-sus23
Hello all,
i am trying to delevop a small stateful bean, but i think there is something wrong during deployment
here is what i did :
The interface Test.java :
| packckage ejb1;
| import javax.ejb.*;
|
| @Remote
| public interface Test
| {
| public void klick();
| public int zeigeAnzahl();
| }
|
|
and here the bean Testbean :
| package ejb1;
| import javax.ejb.*;
| @Stateful
| @Local (Test.class)
|
| public class TestBean implements Test
| {
| private int anzahlKlicks = 0;
| public void klick()
| {
| anzahlKlicks++;
| }
| public int zeigeAnzahl()
| {
| return anzahlKlicks;
| }
| }
|
Later i want to use the bean in a simple servlet.
When i deploy the bean, i alway get an "No ClassLoaders found for: ejb1.TestBean" Error
my jar (ejbtest.jar) has the following stucture:
WEB-INF/
web.xml
classes/ejb1/
Test.class
TestBean.class
EjbTestServlet.class
Thanks for your help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972086#3972086
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972086
19 years, 7 months