[JBoss-user] [EJB/JBoss] - Re: 2 EJBs, implmented same way, only one can be accessed

2006-01-26 Thread philc_jboss
Tony,

I am using struts and ejb in my application. I am using the JBoss bundled 
tomcat servlet container. Tomcat has its own JNDI resource (separate from JBoss 
JNDI). I had to create a reference / link in my webapp for each of my ejbs 
deployed/managed by JBoss. Below is an example of the web.xml file related to 
my other post / descriptors  (note the ejb's are "local" not remote).

Hopefully this helps.

../WEB-INF/web.xml

  | 
  |   
  | ...
  |   
  |   
  | ...
  |   
  |   
  | ...
  |   
  | 
  |   
  |   
  |PersonBeanLocalHome
  |Session
  |org.blah.ejb.PersonBeanLocalHome
  |org.blah.ejb.PersonBeanLocal
  |PersonBean
  |   
  |   
  |MemberBeanLocalHome
  |Session
  |org.blah.ejb.MemberBeanLocalHome
  |org.blah.ejb.MemberBeanLocal
  |MemberBean
  |   
  | 
  | 



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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: 2 EJBs, implmented same way, only one can be accessed

2006-01-25 Thread philc_jboss
Crud, found it, user error of course. It was a long day when I configured the 
second bean. I forgot to add the ejb-ref/link entry for the failing bean in the 
tomcat web-xml. All is good now.

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: JBoss issue? 2 EJBs implemented the same, but only one c

2006-01-25 Thread philc_jboss
Crud, found it, user error of course. It was a long day when I configured the 
second bean. I forgot to add the ejb-ref/link entry for the failing bean in the 
tomcat web-xml. All is good now.

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - 2 EJBs, implmented same way, only one can be accessed

2006-01-24 Thread philc_jboss
Is the issue with the Application Server?

I have two EJB's, MemberBean and PersonBean, implemented the same way. However, 
jndi lookup is successful for one (MemberBean), but not the other (PersonBean - 
javax.naming.NameNotFoundException on the second lookup). See below for the 
detail, I don't get this one:

>From the log file you can see that both beans are bound succesfully

APPSERVER LOG FILE

16:09:34,183 INFO [EjbModule] Deploying MemberBean
16:09:34,208 INFO [EjbModule] Deploying PersonBean
16:09:36,917 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'MemberBean' to 
jndi 'MemberBeanLocalHome'
16:09:37,066 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'PersonBean' to 
jndi 'PersonBeanLocalHome'
...
##However the PersonBean fails the context lookup ##

16:10:22,630 ERROR [PersonDelegate] javax.naming.NameNotFoundException: 
PersonBeanLocalHome not bound
...
2006-01-24 16:10:22,368 DEBUG [org.blah.delegate.MemberDelegate] GOT MEMBER EJB
...
2006-01-24 16:10:22,629 DEBUG [org.blah.delegate.PersonDelegate] 
ENTERED>
2006-01-24 16:10:22,630 ERROR [org.blah.delegate.PersonDelegate] 
javax.naming.NameNotFoundException: PersonBeanLocalHome not bound

Both Beans are found in the jndi view

JMX-Console

+- PersonBeanLocalHome (proxy: $Proxy105 implements interface 
org.blah.ejb.PersonBeanLocalHome)
+- XAConnectionFactory
+- UserTransaction
+- MemberBeanLocalHome (proxy: $Proxy104 implements interface 
org.blah.ejb.MemberBeanLocalHome)

Implmentation Snippets

PersonBean lookup:


  | 
  |   private PersonBeanLocal getLocalSession()
  |   {
  | PersonBeanLocal local = null;
  | 
  | try
  | {
  |   logger.debug("ENTERED>");
  | 
  |   Context ctx = new InitialContext();
  |   Object ref = ctx.lookup("java:comp/env/PersonBeanLocalHome");
  | 
  |   logger.debug("GOT PERSON EJB");
  |   logger.debug("Object ::: " + ref.getClass().getName());
  |   
  |   PersonBeanLocalHome home = (PersonBeanLocalHome)ref;
  |   local = home.create();
  | }
  | catch(Exception e)
  | {
  |logger.error("" + e.toString());
  | }
  | return local;
  |   }
  | 
  | 

MemberBean lookup:


  | 
  |   private MemberBeanLocal getLocalSession()
  |   {
  | MemberBeanLocal local = null;
  | 
  | try
  | {
  |   Context ctx = new InitialContext();
  |   Object ref = ctx.lookup("java:comp/env/MemberBeanLocalHome");
  | 
  |   logger.debug("GOT MEMBER EJB");
  |   logger.debug("Object ::: " + ref.getClass().getName());
  |   
  |   MemberBeanLocalHome home = (MemberBeanLocalHome)ref;
  |   local = home.create();
  | }
  | catch(Exception e)
  | {
  |logger.error("" + e.toString());
  | }
  | return local;
  |   }
  | 
  | 

DESCRIPTORS

  | 
  | ejb-jar.xml
  | 
  | ...
  | 
  |   
  |   
  | 
  |   MemberBean
  |   MemberBean
  |   org.blah.ejb.MemberBeanLocalHome
  |   org.blah.ejb.MemberBeanLocal
  |   org.blah.ejb.MemberBeanLocalEJB
  |   Stateless
  |   Container
  | 
  | 
  |   PersonBean
  |   PersonBean
  |   org.blah.ejb.PersonBeanLocalHome
  |   org.blah.ejb.PersonBeanLocal
  |   org.blah.ejb.PersonBeanLocalEJB
  |   Stateless
  |   Container
  | 
  | 
  | 
  |   
  | 
  | ...
  | 
  | 
  | jboss.xml
  | 
  |   
  |  
  | 
  |   MemberBean
  |   MemberBeanLocalHome
  | 
  | 
  |   PersonBean
  |   PersonBeanLocalHome
  | 
  | false
  |  
  |
  | 

Using JBoss 4.0.3 SP1

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: JBoss issue? 2 EJBs implemented the same, but only one c

2006-01-24 Thread philc_jboss
Sorry, forgot to mention I am using JBoss 4.0.3 SP1.

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - JBoss issue? 2 EJBs implemented the same, but only one can b

2006-01-24 Thread philc_jboss
Is the issue with the ApplicationServer?

I have two EJB's, MemberBean and PersonBean, implemented the same way. However, 
jndi lookup is successful for one (MemberBean), but not the other (PersonBean - 
javax.naming.NameNotFoundException on the second lookup). See below for the 
detail, I don't get this one:

>From the log file you can see that both beans are bound succesfully

APPSERVER LOG FILE

16:09:34,183 INFO  [EjbModule] Deploying MemberBean
16:09:34,208 INFO  [EjbModule] Deploying PersonBean
16:09:36,917 INFO  [BaseLocalProxyFactory] Bound EJB LocalHome 'MemberBean' to 
jndi 'MemberBeanLocalHome'
16:09:37,066 INFO  [BaseLocalProxyFactory] Bound EJB LocalHome 'PersonBean' to 
jndi 'PersonBeanLocalHome'
...
##However the PersonBean fails the context lookup ##

16:10:22,630 ERROR [PersonDelegate] javax.naming.NameNotFoundException: 
PersonBeanLocalHome not bound
...
2006-01-24 16:10:22,368 DEBUG [org.blah.delegate.MemberDelegate] GOT MEMBER EJB
...
2006-01-24 16:10:22,629 DEBUG [org.blah.delegate.PersonDelegate] 
ENTERED>
2006-01-24 16:10:22,630 ERROR [org.blah.delegate.PersonDelegate] 
javax.naming.NameNotFoundException: PersonBeanLocalHome not bound

Both Beans are found in the jndi view

JMX-Console

  +- PersonBeanLocalHome (proxy: $Proxy105 implements interface 
org.blah.ejb.PersonBeanLocalHome)
  +- XAConnectionFactory
  +- UserTransaction
  +- MemberBeanLocalHome (proxy: $Proxy104 implements interface 
org.blah.ejb.MemberBeanLocalHome)

Implmentation Snippets

PersonBean lookup:


  |   private PersonBeanLocal getLocalSession()
  |   {
  | PersonBeanLocal local = null;
  | 
  | try
  | {
  |   logger.debug("ENTERED>");
  | 
  |   Context ctx = new InitialContext();
  |   Object ref = ctx.lookup("java:comp/env/PersonBeanLocalHome");
  | 
  |   logger.debug("GOT PERSON EJB");
  |   logger.debug("Object ::: " + ref.getClass().getName());
  |   
  |   PersonBeanLocalHome home = (PersonBeanLocalHome)ref;
  |   local = home.create();
  | }
  | catch(Exception e)
  | {
  |logger.error("" + e.toString());
  | }
  | return local;
  |   }
  | 

MemberBean lookup:


  |   private MemberBeanLocal getLocalSession()
  |   {
  | MemberBeanLocal local = null;
  | 
  | try
  | {
  |   Context ctx = new InitialContext();
  |   Object ref = ctx.lookup("java:comp/env/MemberBeanLocalHome");
  | 
  |   logger.debug("GOT MEMBER EJB");
  |   logger.debug("Object ::: " + ref.getClass().getName());
  |   
  |   MemberBeanLocalHome home = (MemberBeanLocalHome)ref;
  |   local = home.create();
  | }
  | catch(Exception e)
  | {
  |logger.error("" + e.toString());
  | }
  | return local;
  |   }
  | 


  | DESCRIPTORS
  | 
  | ejb-jar.xml
  | 
  | ...
  | 
  |   
  |   
  | 
  |   MemberBean
  |   MemberBean
  |   org.blah.ejb.MemberBeanLocalHome
  |   org.blah.ejb.MemberBeanLocal
  |   org.blah.ejb.MemberBeanLocalEJB
  |   Stateless
  |   Container
  | 
  | 
  |   PersonBean
  |   PersonBean
  |   org.blah.ejb.PersonBeanLocalHome
  |   org.blah.ejb.PersonBeanLocal
  |   org.blah.ejb.PersonBeanLocalEJB
  |   Stateless
  |   Container
  | 
  | 
  | 
  |   
  | 
  | ...
  | 
  | 
  | jboss.xml
  | 
  |   
  |  
  | 
  |   MemberBean
  |   MemberBeanLocalHome
  | 
  | 
  |   PersonBean
  |   PersonBeanLocalHome
  | 
  | false
  |  
  |
  | 



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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: I know, another JNDI lookup issue - local ejb

2005-12-17 Thread philc_jboss
Thanks for your reply jaikiran!! You were correct. I searched for some time 
through EJB/JBOSS and found another related post. I changed my jboss.xml 
 tag to  and a couple other changes and finally 
got my deployment working :). I still have a class loader issue that I will 
continue to work with (many people have the same issue and have to set a global 
flag to "true"), but I don't have other context apps so this is fine for now. 
Thanks to your reply I was able to head down a path to resolution. 
Now my jmx-console show the bean deployment as:

Global JNDI Namespace

+- MyBeanLocalHome (proxy: $Proxy100 implements interface 
org.blah.ejb.MyBeanLocalHome)

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: I know, another JNDI lookup issue - local ejb

2005-12-15 Thread philc_jboss
Reviewing my initial post, I see with the calling code I did not mention that I 
was calling from a struts action / servlet (Tomcat bundled with JBoss). I know 
that Tomcat has its' own JNDI Server and from what I read I have to make a 
global reference. 

I am using the default jndi.properties in my classpath:
### JBossNS properties
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

Thanks for your reply, I am so frustrated I am sure I have overlooked something 
(otherwise I would not be having this issue). Discovering resolution is 
becomming a personal quest. Thanks again.
-Phil

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: I know, another JNDI lookup issue - local ejb

2005-12-15 Thread philc_jboss
Ok, I can't imagine there is not an answer to this issue (nobody else has 
experienced this issue). I guess this is seen as a newbie/configuration 
addressed in configuration documents that I overlooked. Either way I will 
continue to try to get this working somehow otherwise I will have to switch 
back to my previous app server - I was hoping to be able to use JBoss. 


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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: I know, another JNDI lookup issue - local ejb

2005-12-12 Thread philc_jboss
Ok so I finally stumbled across a Wiki entry (still no luck):

>>
Why do I get NameNotFoundException??

By default JBoss binds ConnectionFactorys/DataSources in the java: namespace. 
This is only visible inside the same virtual machine and only when using a 
naming context that is not configured to use a transport.

Mistake 1 - Not using the java: namespace

 
GenericDS 
[jdbc: url for use with Driver class] 
[fully qualified class name of java.sql.Driver 
implementation] 
x 
y 


WRONG!

new InitialContext().lookup("GenericDS");

CORRECT

new InitialContext().lookup("java:/GenericDS");

Mistake 2 - Going over a transport

By using a provider url, you are effectively make your jndi access remote, 
meaning the java: namespace is not visible.

Properties props = new Properties();
...
props.put(javax.naming.Context.PROVIDER_URL,"jnp://localhost:1099");
IntialContext context = new InitialContext(props)
<

I updated my code to not make mistake 2 (props provider url), and used the 
"correct" example in mistake 1 - still no luck. This is driving me crazy. 

Please if anyone has overcome the same type of issue please let me know. 
Thanks. 

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: No apparent activity on port 1099

2005-12-12 Thread philc_jboss
did you check using netstat?

Linux / Unix / or Windows command window:
At the command prompt, type netstat -a 
i.e.
c:\>netstat -a -n
or 
myserver# netstat -a -n

You should see a tcp entry for 1099



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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - I know, another JNDI lookup issue - local ejb

2005-12-09 Thread philc_jboss
Wow, I have spent hours searching and reading a dozen other posts like my issue 
but no resolution. I did not want to ask/post since versions of this issue have 
been asked before, but again I have tried many many variations and have yet to 
communicate with my local EJB object (public interface MyBeanLocal extends 
EJBLocalObject). 

using jboss-4.0.3SP1 and bundled Tomcat

The error gets thrown at context lookup call.

error:
javax.naming.NameNotFoundException: MyBeanLocal not bound

calling code:
...
  | Properties props = null;
  | MyBeanLocal local = null;
  | Object ref = null;
  | try
  | {
  | props = new Properties();
  | props.put(Context.INITIAL_CONTEXT_FACTORY,
  | "org.jnp.interfaces.NamingContextFactory");
  | props.put(Context.URL_PKG_PREFIXES,  
"org.jboss.naming:org.jnp.interface");
  | props.put(Context.PROVIDER_URL, "jnp://localhost:1099");
  | // I have tried "localhost:1099", 127.0.0.1, etc  as well
  | 
  |Context ctx = new InitialContext(props);
  |// *never makes it here, exception NameNotFoundException*
  |   
  |//Object ref = ctx.lookup("MyBeanLocal");
  |MyBeanLocalHome home = (MyBeanLocalHome)ctx.lookup("MyBeanLocal");
  |local = home.create();
  | }
  | catch(Exception e)
  | {
  |logger.error(e.toString());  
  | }

ejb-jar.xml:

  | ...
  | 
  |MyBeanLocal
  |MyBeanLocal
  |org.ejb.MyBeanLocalHome
  |org.ejb.MyBeanLocal
  |org.ejb.MyBeanLocalEJB
  |Stateless
  |Container
  |  
  | ...
  | 

jboss.xml:
 
  | ...
  | 
  |   
  | MyBeanLocal
  | MyBeanLocal
  |   
  |   false
  | 
  | ...
  | 

jmx-console
service=JNDIView:
+- local (class: org.jnp.interfaces.NamingContext)
  |   +- [EMAIL PROTECTED] (proxy: $Proxy149 implements interface 
org.ejb.MyBeanLocalHome)

Any assistance/information is greatly appreciated.

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: 503 Service Temporarily Unavailable - JBoss 4.0.3RC1, Ap

2005-08-16 Thread philc_jboss
Solved the issue. If anyone else has this problem check your values in 
worker.properties. I had to modify from the worker.node.host value. It worked 
with localhost (instead of nodex values).

worker.properties

previous failed attempts
worker.node1.host=node1.servername.com
worker.node1.host=node1
successful (issue resolved)
worker.node1.host=localhost

previous failed attempts
worker.node2.host=node2.servername.com
worker.node2.host=node1
successful (issue resolved)
worker.node2.host=localhost

Just FYI 

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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: 503 Service Temporarily Unavailable - JBoss 4.0.3RC1, Ap

2005-08-15 Thread philc_jboss
I forgot to post my ../conf/uriworkermap.properties

uriworkermap.properties

# Simple worker configuration file
#

# Mount the Servlet context to the ajp13 worker
/jmx-console=loadbalancer
/jmx-console/*=loadbalancer
/web-console=loadbalancer
/web-console/*=loadbalancer



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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - 503 Service Temporarily Unavailable - JBoss 4.0.3RC1, Apache

2005-08-15 Thread philc_jboss
Ok, before I begin, I have searched many issues in this forum. I found one 
posting with the same issue but the reply suggestion did not fix my issue (I 
already had the configuration solution suggested).

Following the JBoss Mod_jk Wiki (current version), I get 503 Service 
Temporarlily Unavailable when I try to access ../web-console or ../jmx-console

Please, Please, Please if anyone has suggestions, I am going nuts.
If I try xxx:8080/web-console and xxx.com:8080/jmx-console I get the proper 
display. It was my understanding that if I hit xxx.com/web-console (port 80),  
apache would forward the request to JBoss/Tomcat. However my head is telling me 
that xxx.com/web-console and xxx.com/jmx-console context is not defined 
properly (configuration error - apache is looking to handle these requests).

I have triple checked the configurations and ports without luck, all looks as 
the wiki lists.

Environment: Linux (CentOS 4), Apache 2.0.54 (compiled from source), mod_jk 
2.1.14 (compiled from source), JBoss 4.0.3RC1

My mod_jk.log file prints:

[Mon Aug 15 20:11:54 2005][error] service::jk_lb_worker.c (703): All tomcat 
instances failed, no more workers left
[Mon Aug 15 20:11:54 2005]loadbalancer 192.168.0.100 0.000210

[Mon Aug 15 20:11:54 2005][info]  jk_handler::mod_jk.c (1971): Service error=0 
for worker=loadbalancer

http.conf 
Note apache listening on port 80

# Include mod_jk configuration file
Include conf/mod-jk.conf

mod-jk.conf
# Load mod_jk module
# Specify the filename of the mod_jk lib
LoadModule jk_module modules/mod_jk.so

# Where to find workers.properties
JkWorkersFile conf/workers.properties

# Where to put jk logs
JkLogFile logs/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLevel info

# Select the log format
JkLogStampFormat  "[%a %b %d %H:%M:%S %Y]"

# JkOptions indicates to send SSK KEY SIZE
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

# JkRequestLogFormat
JkRequestLogFormat "%w %V %T"

# Mount your applications
JkMount /application/* loadbalancer

# You can use external file for mount points.
# It will be checked for updates each 60 seconds.
# The format of the file is: /url=worker
# /examples/*=loadbalancer
JkMountFile conf/uriworkermap.properties

# Add shared memory.
# This directive is present with 1.2.10 and
# later versions of mod_jk, and is needed for
# for load balancing to work properly
JkShmFile logs/jk.shm

# Add jkstatus for managing runtime data

JkMount status
Order deny,allow
Deny from all
Allow from 127.0.0.1


worker.properties
# Define list of workers that will be used
# for mapping requests
worker.list=loadbalancer,status
# Define Node1
worker.node1.port=8009
worker.node1.host=node1 
#(note I tried node1.servername.com and node1.localhost)
worker.node1.type=ajp13
worker.node1.lbfactor=1
#worker.node1.local_worker=1 (1)
worker.node1.cachesize=10

# Define Node2
worker.node2.port=8009
worker.node2.host= node2
#(note I tried node2.servername.com and node2.localhost)
worker.node2.type=ajp13
worker.node2.lbfactor=1
#worker.node2.local_worker=1 (1)
worker.node2.cachesize=10

# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1, node2
worker.loadbalancer.sticky_session=1
worker.loadbalancer.local_worker_only=1
worker.list=loadbalancer

# Status worker for managing load balancer
worker.status.type=status


server.xml
   

  
  

  
  

  

  
...

jboss-service.xml
 true


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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user