[jboss-user] [JBoss Seam] - Re: Problem injecting the value of a context component expre

2006-09-20 Thread [EMAIL PROTECTED]
http://docs.jboss.com/seam/latest/reference/en/html/concepts.html#d0e2152

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973161
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Blocking direct access to .xhtml files

2006-09-20 Thread CptnKirk
You could also try setting your Faces Servlet to match on *.xhtml instead of 
*.seam.  I'm not sure if that causes a problem or not.  I wish I were closer to 
a dev environment.  These are all quick tests.

For some reason I thought that facelets was still like JSP in that if you screw 
up and don't go through the JSF servlet things will crash.  Not pretty, but 
secure.  I also tend to use a JSP 2.0 jspx like syntax with my facelet pages to 
get tag JSF completion.  That also helps things explode rather than render if 
someone attempts to access the .jspx file directly.

Let me know what you find.  If nothing works, I should be more helpful tomorrow.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973160
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Mapping of inheritance with several generic superclasses fai

2006-09-20 Thread balchev
Please read this in the Hibernate forum:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-416

and tell me when this will be fixed in the JBOSS EJB3.0 or if it is already - 
in which release?
10x

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973158
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Re: Publish on internet

2006-09-20 Thread jwenting
You'll have to get it running on a machine that can be seen outside your own 
network, that's all there is to it.

Of course the devil is in the details, like security, probably getting a DNS 
name for it, where to host the server, etc. etc. etc.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973157
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: JBoss Portal + LDAP

2006-09-20 Thread bdaw
Please look here:
http://wiki.jboss.org/wiki/Wiki.jsp?page=LdapLoginModule
http://wiki.jboss.org/wiki/Wiki.jsp?page=LdapExtLoginModule

There are example ldifs and configurations

One thing you need to know is that portal servlet is secured using 
"Authenticated" role that is assosiated with users dynamicly in current 
IdentityLoginModule. So all your users in ldap need to belong to this role to 
access portal.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973156
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Blocking direct access to .xhtml files

2006-09-20 Thread jazir1979
Thanks CptnKirk, I'll give it a go and post the results.  This is the direction 
I was headed in, but wanted a sanity check to see if anybody else has dealt 
with this some other way, or if anybody else even sees it as an issue.

cheers!


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973155
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Timer event is always handled by a new instance?

2006-09-20 Thread galaxoid
@Resource 
private SessionContext ctx;
@Resource(mappedName="java:/DefaultDS")
private DataSource defaultDs;

public void createTimer() throws CustomException {
   try {
   Connection conn = defaultDs.getConnection();
   Statement stmt = conn.createStatement();
   stmt.execute("delete from TIMERS");
   TimerService timerService = ctx.getTimerService();
   timerService.createTimer(2, 30, "I'm a chinese, english is not 
good.");
   } catch (Throwable ex) {
   LogHome.getLog().error("", ex);
   throw new CustomException(ex);
   } 
}


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973154
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Blocking direct access to .xhtml files

2006-09-20 Thread CptnKirk
Writing a filter that blocks direct .xhtml access shouldn't be too hard.  I 
wouldn't expect facelets to perform a web request to access the .xhtml files, 
so you should be able to 404 any direct HTTP access.

I'm not 100%, but this should be easy enough to test.  Either just write the 
filter, or look at the HTTP request log during expected usage.  Even if 
facelets makes a web request for some reason, it should come from localhost or 
your local IP.  You can adjust your filter to permit that access.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973153
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: how to stop unknown user from seeing a page

2006-09-20 Thread CptnKirk
You could also look into using a dedicated security framework like Acegi that 
would have richer options.

http://acegisecurity.org/

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973152
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Blocking direct access to .xhtml files

2006-09-20 Thread jazir1979
I realise it's just serving up the files, but this never happens with things 
like JSPs, because the server would intercept those requests and run the 
servlet that it has compiled from the JSP instead.

You don't have to put your JSPs under WEB-INF, what a kludge that would be!

I think Seam by default should be configured to not allow direct access to your 
xhtml facelet code.  Does anybody agree, or have I got something wrong?


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973151
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Jboss 4.0.4 as a window service

2006-09-20 Thread mishra_rajneesh
hi experts,

how to implement JBoss Application Server 4.0.4 as a window service. I tried 
with JavaService-2.0.10, but it is not working..

Any help will be appreciated..

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973150
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: TreeCache put causes

2006-09-20 Thread [EMAIL PROTECTED]
The PartitionName attribute in cluster-service.xml and the ClusterName 
attribute in tc5-cluster-service.xml end up doing the same thing -- they are 
passed to the JGroups channel each service creates to give that channel it's 
name.

Each service needs its own JGroups channel (that will change in JBoss 5.0, but 
its definitely true in 3.2.x and 4.0.x).  The channel name is one of the things 
that gives a channel its identity.  So, yes, for each TreeCache you deploy, 
you'll want to give it a different ClusterName.

A good approach with a TreeCache used in the appserver is to do something like 
this:

MyCache-${jboss.partition.name:DefaultPartition}

The first part is a unique name for the cache; different from other caches you 
deploy.  The second part is whatever you pass to a -g switch at the command 
line, or "DefaultPartition" if you don't pass anything.

Then start jboss with the -g switch

run -g MyPartition -c all

The ClusterName for your cache would then be MyCache-MyPartition.  For the 
tc5-cluster-service cache it would be Tomcat-MyPartition.  The PartitionName in 
cluster-service.xml would be MyPartition. All unique, but \having a common bit 
of info.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973148
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Re: Beginner with JBoss getting a command line error

2006-09-20 Thread visolvejboss
Hello,

 Follow the steps for executing the JBoss AS.

 1. Set the PATH and JAVA_HOME environment variables as given below.

For Windows,

  |   >set JAVA_HOME=
  |   >set PATH=%PATH%;/bin
  | 

For Unix or Linux,

  |#export JAVA_HOME=
  |#export PATH=/bin
  | 

2. Run the JBoss AS as follows.

For Windows,

  | /bin>run.bat  
  |  


For Unix or Linux,

  |/bin#./run.sh
  | 


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973147
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Marshalling problem

2006-09-20 Thread [EMAIL PROTECTED]
Most likely incompatible client-side and server-side Remoting libraries. Are 
you using jboss-messaging-client.jar in your client's classpath, and nothing 
else?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973146
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: WAN Support

2006-09-20 Thread [EMAIL PROTECTED]
Could you please describe your use case for this, so I can understand exactly 
what do you mean by "WAN cluster support"?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973145
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Problem with callbackURI

2006-09-20 Thread [EMAIL PROTECTED]
A couple of observations:

* This type of content should go to the Development list.


* Use the same path naming schema as everywhere else in the document, in 
situations like this:

anonymous wrote : 
  | You can look at remoting configuration under:
  | 
  | /server//deploy/jboss-messaging.sar/remoting-service.xml
  | 



* Add a few words about how to configure a custom port 
(http://jira.jboss.org/jira/browse/JBMESSAGING-431)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973144
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Messaging client can't create connection

2006-09-20 Thread [EMAIL PROTECTED]
Three completely different issues:

1. A friendly advice: do not post the same problem on more than one discussion 
thread. Doing so makes the forum difficult to read and answer to. I noticed 
that you posted the same issue on 
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=90275

2. I answered there how to debug this kind of problems. Use TRACE logging. In 
your case, enable TRACE logging for Remoting too.

3. I remember that I've seen this kind of lock-ups when the client and the 
server use two different (incompatible) versions of remoting. That tells me 
that you probably did something wrong while installing Messaging. Make sure 
that on the client side you use the jboss-messaging-client.jar that comes with 
the Messaging insatllation bundle, and only that.



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973142
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS & JBossMQ] - Create Queue connection factories

2006-09-20 Thread tharinduj
Hi All,

I'm new to JBoss and Im leaning JBoss these days.

 I need to create a Queue connection factory called "HelloConnectionFactory  " 
with jndi name "  jms/HelloConnectionFactory " and queue called 
"HelloRequestQueue "  with JNDI name "jms/HelloRequestQueue " . 
Is there a way to bind the "HelloRequestQueue" to "HelloConnectionFactory ".
 

I want to know which XML files have to be edited to do the above tasks. 


Thank you,
Tharindu Jayasuriya.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973143
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Blocking direct access to .xhtml files

2006-09-20 Thread raja05
Well, its just behaving as a WebServer. Can you locate your xhtml files within 
the WEB-INF so they cant be rendered directly and have your navigation rules 
point to the locations within WEB-INF?

Also look at the dvdstore example for some snippets that are loaded from the 
WEB-INF directory.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973141
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Blocking direct access to .xhtml files

2006-09-20 Thread jazir1979
Hi all,

I've noticed in my own app and in the booking example that if you know the name 
of the underlying .xhtml files, you can hit them directly in your browser and 
download the source.

eg: http://localhost:8080/seam-booking/home.xhtml

What is the recommended way of blocking this so that only .seam actions are 
handled?  Should I have a servlet mapping for *.xhtml that returns a 404, or 
will this interfere with the workings of Seam?

I think it's a bit of a hole in a webapp to have the template files directly 
accessible like this.

cheers,
Daniel.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973140
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JBoss Messaging locked up

2006-09-20 Thread [EMAIL PROTECTED]
Regarding your initial issue, the fact that you're getting JBossMQ instead of 
Messaging, your startup log shows clearly you're running a clustered 
configuration:

anonymous wrote : 15:01:18,212 INFO [STDOUT]
  | ---
  | GMS: address is as4:49654 (additional data: 18 bytes)
  | ---
  | 15:01:20,260 INFO [com] Number of cluster members: 1
  | 15:01:20,260 INFO [com] Other members: 0 


What probably happens is that your "default" configuration is modified and the 
messaging istallation script gets confused.

If you want to see Messaging running, do this:

1. Dowload a fresh JBoss 4.0.3 (or newer) installation bundle
2. Perform Messaging installation on that
3. run.sh -c messaging

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973139
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: I have some problems with an exeption, I need help!!!!

2006-09-20 Thread raja05
Looks like the bean has been passivated but the persisted file is removed.
Can you check if your JBOSS_HOME/server/default/tmp/sessions/ exists and is not 
getting deleted by any of your code ? This is a remote chance but just in case. 
Also turn up your log level to DEBUG and you should see more information about 
which file its trying to read to restore the Session Bean's state from.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973138
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Problems at Startup with MySQL 5 and XAConnection

2006-09-20 Thread felipeal
"VAkuthota" wrote : I created the xa-datasource for my sql
Could you please post it here, so I can test it in my application? (last time I 
tried, I could not log in using Acegi/Spring due to a XA enlistment error...

TIA

-- Felipe

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973137
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Problems at Startup with MySQL 5 and XAConnection

2006-09-20 Thread [EMAIL PROTECTED]
More details, please? Test case? Logs?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973136
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: how to stop unknown user from seeing a page

2006-09-20 Thread raja05
"jazir1979" wrote : 
  | ie- the pattern really should be "all pages except login.xhtml" rather than 
"*"

I dont think there is a way to do this currently except mentioning the pages 
individually. But there is an enhancement request for this
http://jira.jboss.com/jira/browse/JBSEAM-341


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973135
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Replacing persistence database - Hibernate to Postgres

2006-09-20 Thread [EMAIL PROTECTED]
Enable TRACE logging on the client (for an idea how, use 
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMessagingUser_Enabling_TRACE_logging_on_server
  as source of inspiration) and send me the log file.

DO NOT post it here, it is usually huge, zip it and send it to me by e-mail 
instead. Include this thread's URL somewhere in the message.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973134
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: Embedding MySQL as an MBean with Connector/MXJ

2006-09-20 Thread swany
Dan,

I'd be interested in what needed to be changed to pass in a defaults file.  I 
am working on embedding MySQL into JBoss as well, and I need to ensure it (and 
JBoss) runs on a non-default port, to peacefully co-exist with another 
potential MySQL installation.  A defaults file is the only way I can think of 
to do this.  I'll be attempting your other code change to fix the "basedir" and 
"datadir" issue (I've seen the same thing).  Can you share your source changes?

As an aside, I was able to get MySQL to start by omitting the "datadir" MBean 
attribute entirely and letting it automatically select my temporary directory.  
But I'm sure you already knew that.  And it's not what either of us are looking 
for.

Sorry I have more questions than answers.

Mark


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973133
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - AOP Instrumentor failed to transform class

2006-09-20 Thread fabiocsilva
I don't  running the AOP application because error writed more below. This 
problem occurs in moment of interception.

I want execute this example in JBoss Application Server:
http://www.informit.com/articles/article.asp?p=174533&seqNum=2&rl=1

resources: 

- JBoss AS 4.04
- JBossAOP 1.5.1
- Ubuntu linux Operating System(kernel 2.6.15)

Excuse me the bad english. 

3:43:04,374 ERROR [STDERR] javassist.CannotCompileException: [source error] 
Method getInterceptors not found in org.jboss.aop.MethodInfo
23:43:04,387 ERROR [STDERR] at 
javassist.CtBehavior.setBody(CtBehavior.java:288)
23:43:04,387 ERROR [STDERR] at 
javassist.CtBehavior.setBody(CtBehavior.java:257)
23:43:04,388 ERROR [STDERR] at 
org.jboss.aop.instrument.MethodExecutionTransformer$MethodTransformation.setWMethodBody(MethodExecutionTransformer.java:330)
23:43:04,388 ERROR [STDERR] at 
org.jboss.aop.instrument.OptimizedMethodExecutionTransformer.setWrapperBody(OptimizedMethodExecutionTransformer.java:136)
23:43:04,388 ERROR [STDERR] at 
org.jboss.aop.instrument.OptimizedMethodExecutionTransformer.transformMethod(OptimizedMethodExecutionTransformer.java:72)
23:43:04,388 ERROR [STDERR] at 
org.jboss.aop.instrument.MethodExecutionTransformer.instrument(MethodExecutionTransformer.java:145)
23:43:04,388 ERROR [STDERR] at 
org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:657)
23:43:04,388 ERROR [STDERR] at 
org.jboss.aop.AspectManager.translate(AspectManager.java:970)
23:43:04,388 ERROR [STDERR] at 
org.jboss.aop.AspectManager.transform(AspectManager.java:882)
23:43:04,389 ERROR [STDERR] at 
org.jboss.aop.standalone.AOPTransformer.aspectTransform(AOPTransformer.java:88)
23:43:04,389 ERROR [STDERR] at 
org.jboss.aop.standalone.AOPTransformer.transform(AOPTransformer.java:75)
23:43:04,389 ERROR [STDERR] at 
sun.instrument.TransformerManager.transform(TransformerManager.java:122)
23:43:04,389 ERROR [STDERR] at 
sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:155)
23:43:04,390 ERROR [STDERR] at java.lang.ClassLoader.defineClass1(Native 
Method)
23:43:04,390 ERROR [STDERR] at 
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
23:43:04,390 ERROR [STDERR] at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
23:43:04,390 ERROR [STDERR] at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
23:43:04,390 ERROR [STDERR] at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
23:43:04,390 ERROR [STDERR] at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
23:43:04,390 ERROR [STDERR] at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
23:43:04,390 ERROR [STDERR] at 
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:127)
23:43:04,391 ERROR [STDERR] at 
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
23:43:04,391 ERROR [STDERR] at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
23:43:04,391 ERROR [STDERR] at 
org.apache.jsp.index_jsp._jspService(index_jsp.java:57)
23:43:04,391 ERROR [STDERR] at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
23:43:04,391 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
23:43:04,391 ERROR [STDERR] at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
23:43:04,391 ERROR [STDERR] at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
23:43:04,391 ERROR [STDERR] at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
23:43:04,392 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
23:43:04,392 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
23:43:04,392 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
23:43:04,392 ERROR [STDERR] at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
23:43:04,392 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
23:43:04,392 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
23:43:04,392 ERROR [STDERR] at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
23:43:04,393 ERROR [STDERR] at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
23:43:04,393 ERROR [STDERR] at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
23:43:04,393 ERROR [STDERR] at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
23:43:04,393 ERROR [STDERR]  

[jboss-user] [JBoss Messaging] - Re: Programmaticaly create queue

2006-09-20 Thread [EMAIL PROTECTED]
You can create a queue programmatically by invoking the "createQueue" JMX 
method on the ServerPeer MBean. Upon the method completion, your new queue will 
be accessible in JNDI and also through the JMX interface, similarly to any 
regular ("deployed") queue.

The queue is handled like any other regular queue, so if the server crashes, 
the queue's state can be recovered from the database, but your program will 
have to somehow remember that it created the queue dynamically, and re-create 
it programmatically after recovery. The messaging server doesn't handle this 
for you. It is, however, something relatively simply to implement at 
application level.

To see an example of how this works, take a look at 
DestinationManagerTest.testCreateQueueProgramatically()

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973130
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Marshalling problem

2006-09-20 Thread argenisleon
Greetings
I am using Jboss 4.0.4 and JBoss Messaging 1.0.1.CR4. I am getting this error 
when  i try connection = (Connection)factory.createConnection()


  | 21:52:59,859 ERROR @main [SocketClientInvoker] Got marshalling exception, 
exiting
  | java.io.EOFException
  | at java.io.DataInputStream.readByte(DataInputStream.java:243)
  | at 
org.jboss.serial.io.JBossObjectInputStream.readByte(JBossObjectInputStream.java:227)
  | at 
org.jboss.jms.server.remoting.JMSWireFormat.read(JMSWireFormat.java:411)
  | at 
org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279)
  | at 
org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
  | at org.jboss.remoting.Client.invoke(Client.java:525)
  | at org.jboss.remoting.Client.invoke(Client.java:488)
  | at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.invoke(ClientConnectionFactoryDelegate.java:198)
  | at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.invokeNext(ClientConnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.java)
  | at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPConfig(ClientConnectionFactoryDelegate.java)
  | at 
org.jboss.jms.client.JBossConnectionFactory.ensureAOPConfigLoaded(JBossConnectionFactory.java:233)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:196)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:96)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:91)
  | at JBMService.JBMServiceImpl.(JBMServiceImpl.java:46)
  | java.lang.RuntimeException: Failed to config client side AOP
  | at 
org.jboss.jms.client.JBossConnectionFactory.ensureAOPConfigLoaded(JBossConnectionFactory.java:251)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:196)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:96)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:91)
  | at JBMService.Main.start(Main.java:41)
  | at JBMService.JBMServiceImpl.(JBMServiceImpl.java:46)
  | at JBMService.Main.main(Main.java:29)
  | at JBMService.Main.start(Main.java:41)
  | 21:52:59,890 ERROR @main [JBossConnectionFactory] Failed to config client 
side AOP
  | at JBMService.Main.main(Main.java:29)
  | java.rmi.MarshalException: Failed to communicate.  Problem during 
marshalling/unmarshalling; nested exception is: 
  | Caused by: java.rmi.MarshalException: Failed to communicate.  Problem 
during marshalling/unmarshalling; nested exception is: 
  | java.io.EOFException
  | java.io.EOFException
  | at 
org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:306)
  | at 
org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:306)
  | at 
org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
  | at 
org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
  | at org.jboss.remoting.Client.invoke(Client.java:525)
  | at org.jboss.remoting.Client.invoke(Client.java:488)
  | at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.invoke(ClientConnectionFactoryDelegate.java:198)
  | at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.invokeNext(ClientConnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.java)
  | at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPConfig(ClientConnectionFactoryDelegate.java)
  | at 
org.jboss.jms.client.JBossConnectionFactory.ensureAOPConfigLoaded(JBossConnectionFactory.java:233)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:196)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:96)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:91)
  | at JBMService.JBMServiceImpl.(JBMServiceImpl.java:46)
  | at JBMService.Main.start(Main.java:41)
  | at JBMService.Main.main(Main.java:29)
  | Caused by: java.io.EOFException
  | at java.io.DataInputStream.readByte(DataInputStream.java:243)
  | at 
org.jboss.serial.io.JBossObjectInputStream.readByte(JBossObjectInputStream.java:227)
  | at 
org.jboss.jms.server.remoting.JMSWireFormat.read(JMSWireFormat.java:411)
  | at 
org.jboss.remoting.tra

[jboss-user] [Installation, Configuration & Deployment] - Beginner with JBoss getting a command line error

2006-09-20 Thread iturnthepage
I Greatly appreciate any help with this problem. I understand that a 
professional is taking time out of his/her busy schedule to help a student. 
Thanks for your time !!

JDK: 1.5.0_07  *can compile and run successfully

Environment Variables:

CLASSPATH :   c:\java_ee_sdk-5-windows\bin;c:\Program
Files\Java\jdk1.5.0_07\bin;c:\Program Files;C:\Program Files\jboss-4.0.3SP1\bin

JAVA_HOME:  %PATH%;c:\Program Files\Java\jdk1.5.0_07\bin;C:

JBOSS_HOME: C:\JBoss\jboss-4.0.3SP1\bin

PATH:  %PATH%;C:\Sun\AppServer\bin;c:\java_ee_sdk-5-windows\bin;c:\Program 
Files\Java\jdk1.5.0_07\bin;C:\JBoss\jboss-4.0.3SP1\bin

** When I try to test the JBoss installation and start the server using

C:\Jboss\jboss-4.0.3SP1\bin>run -c all
** I get the following error message over and over until I stop the command 
line output.
"The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect."  **etc.

or using this command line statement

C:\>%JBOSS_HOME%\bin\run -c all
The system cannot find the path specified.

The run.bat file

@echo off
rem -
rem JBoss Bootstrap Script for Win32
rem -

rem $Id: run.bat,v 1.13.4.2 2005/05/04 23:05:42 starksm Exp $

@if not "%ECHO%" == ""  echo %ECHO%
@if "%OS%" == "Windows_NT"  setlocal

set DIRNAME=.\
if "%OS%" == "Windows_NT" set DIRNAME=%~dp0%
set PROGNAME=run.bat
if "%OS%" == "Windows_NT" set PROGNAME=%~nx0%

rem Read all command line arguments

REM
REM The %ARGS% env variable commented out in favor of using %* to include
REM all args in java command line. See bug #840239. [jpl]
REM
REM set ARGS=
REM :loop
REM if [%1] == [] goto endloop
REM set ARGS=%ARGS% %1
REM shift
REM goto loop
REM :endloop

rem Find run.jar, or we can't continue

set RUNJAR=%DIRNAME%\run.jar
if exist "%RUNJAR%" goto FOUND_RUN_JAR
echo Could not locate %RUNJAR%. Please check that you are in the
echo bin directory when running this script.
goto END

:FOUND_RUN_JAR

if not "%JAVA_HOME%" == "" goto ADD_TOOLS


* If there is any more info needed to help me solve this problem Please let 
me know...Thanks so very much!!!


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973126
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - Re: how to configure the default database DefaultDS to oracl

2006-09-20 Thread sumtraveller
How do I persist this change? I don't want to have to make that change each and 
every time I start the application?

Thanks!!!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973124
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: how to stop unknown user from seeing a page

2006-09-20 Thread jazir1979

Is it using the FacesContext?

ie- getViewRoot().getViewId()

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973121
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: how to stop unknown user from seeing a page

2006-09-20 Thread jazir1979
How do you do this with a view-id="*"?


   


How do you put logic in the "forceLogin" action to return null if the user is 
not logged in but they are accessing your login page?

ie- the pattern really should be "all pages except login.xhtml" rather than "*"

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973119
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: SLSB Local Interface Exception - EjB 3.0 with jboss-4.0.

2006-09-20 Thread vashistvishal
anonymous wrote :  So unless your EJBs are being invoked by something that's 
also within 
  | the container, it's a separate process and will need to be remote. :)
  | 
Thats is what is a happening. Thanks for yr help. 
 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973118
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Could not find Stateful bean

2006-09-20 Thread carojas
This is the JSP 


  | <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>
  | <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>
  | 
  | http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
  | http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
  | 
  | 
  |  
  |   
  | 
  |   
  | @import "style/default/screen.css";
  |   
  |  
  |  
  |  
  |  
  |  
  |  
  |  
  |  
  |  
  |
  |  
  | 
  |  
  |   
  | Beneficiarios
  | Convocatorias
  | Portafolios
  | Casos de éxito
  | Evaluaciones
  | Salir
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |   
  |  
  |  
  |  
  | 
  |   
  | 
  | 
  | 
  |
  |  
  | 
  | 
  | 
  |
  |   
  | 
  |
  |   
  |   
  |   
  |
  | 
  |  
  |  

  |   
  |   
  |  
  | 
  |   
  |  
   
  | 
  |
  |  
  | 
  |  
  | 
  |  
  |  

  |   
  |   
  | 
  |  
  |   
  |   
  | 
  | 
  | 
  |  
  | 
  |  
  |  

  |   
  |   
  |
  |   
  |   
  |   
  |
  | 
  |
  |   
  | 
  | 
  |  
  | 
  |  
  |  

  |   
  |   
  |
  |
  |  
  |   
  |   
  |
  |   
  | 
  | 
  | 
  |   
  | 
  |  
  |  
  |   
  |   
  |
  |  
  |  
  |   
  |   
  |
  |   
  | 
  | 
  |  
  | 
  |  
  |  

  |   
  |   
  |
  |   
  |   
  |   
  |   
  |   
  | 
  | 
  |   
  | 
  | 
  |   
  | 
  |   
  | 
  |  
  |  

  |   
  |   
  |
  |   
  |   
  |   
  |   
  |   
  | 
  | 
  |   
  |
  | 
  | 
  |   
  | 
  |  
  |  
  |   
  |   
  |  
  | 
  |   
  |   
  |   
  |   
  | 
  | 
  | 
  |
  | 
  |   
  |   
  |   
  |   
  |   
  | 
  |   
  |   
  |  
  | 
  | 
  | 
  |   
  |   
  |   
  |   
  |   
  |   

[jboss-user] [JBoss Seam] - Re: I have some problems with an exeption, I need help!!!!

2006-09-20 Thread carojas
May be!  
How can I repair this?


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973116
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem injecting the value of a context component expre

2006-09-20 Thread zzzz8
Thanks Gavin.  That then leads me to ask the question - what happens if there 
are two variables with the same name but in different contexts?  For example, a 
testString1 in the sessionContext and a testString1 in the conversationContext. 
 How is this resolved and how should I invoke it in EL?  Or is this even 
possible (i.e. the two names of these variables in the different contexts must 
be defined with different names?)  Thanks.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973115
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: TreeCache put causes

2006-09-20 Thread jyoonyang
Brian,

Thanks.  I got it to work.  

My UDP configs for cluster-service.xml and jboss-service.xml weren't 
conflicting.  However, my TreeCache configuration was colliding with 
cluster-server.xml.  Thank you.

You also mentioned making the ParitionName different from ClusterName.  Could 
you explain how they are used?  I thought Partition and Cluster were used 
almost interchangeably.  

If I add another TreeCache configuration, should that have another unique 
PartitionName?  Does this mean that different components in JBoss node can be 
part of different JBoss clusters?

Thanks again,
Jennifer


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973114
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Re: multiple wars dont load

2006-09-20 Thread gforam
i found out the problem. I had the webwork related jars in a shared/lib. so 
when i copied them over in each war, the screens come on fine for both the 
applications.
Thanx

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973113
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Using Seam for porlet communication

2006-09-20 Thread [EMAIL PROTECTED]
Hmm. In org.jboss.seam.portlet.PortletSessionImpl.java it says
 
  | public Object getAttribute(String key)
  |{
  |   return session.getAttribute(key);
  |}
  | 
  | public void setAttribute(String key, Object value)
  |{
  |   session.setAttribute(key, value);
  |}
  | 
  | 
which according to the Javadoc 
http://docs.jboss.org/jbportal/spec/docs/javax/portlet/PortletSession.html#getAttribute(java.lang.String)
   gets/puts the attributes in PORTLET_SCOPE which is defined to be portlet 
private only. And the APPLICATION_SCOPE is portal "wide" scope.

Maybe in Seam we need new context APPLICATION_PORTLET_SCOPE (or PORTAL_SCOPE) 
that uses the Portlet APPLICATION_SCOPE for storage. ( 
http://docs.jboss.org/jbportal/spec/docs/javax/portlet/PortletSession.html#APPLICATION_SCOPE
 ). IMHO the portlet APPLICATION_SCOPE name is causing some naming conflits and 
should be renamed to PORTAL_SCOPE in the spec.

Or just simply hard code and change the PortletSessionImpl to always use the 
(portlet) APPLICATION_SCOPE.



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973112
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - How to remove a Timer using JMX Console

2006-09-20 Thread icordoba
Hi there,
I have repeated timers for the same service due to a error in an application 
which code cannot be modified now. How can I remove duplicated timers from JMX 
Console?

I don't know which parameters I must introduce in the removeTimerService() 
MBean Operation

I can list them invoking listTimers() MBean operation:

   handle: 
[id=22,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],first=07-Sep-2006
 23:48:52.340,periode=90]
  
[id=22,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],remaining=-1127458982,periode=90,active]
   handle: 
[id=18,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],first=20-Sep-2006
 17:23:44.770,periode=90]
  
[id=18,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],remaining=-27366552,periode=90,active]
   handle: 
[id=16,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],first=11-Sep-2006
 02:36:22.746,periode=90]
  
[id=16,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],remaining=-858208576,periode=90,active]
   handle: 
[id=21,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],first=20-Sep-2006
 23:10:03.332,periode=90]
  
[id=21,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],remaining=-6587991,periode=90,active]
   handle: 
[id=17,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],first=12-Sep-2006
 13:24:20.531,periode=90]
  
[id=17,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],remaining=-732930792,periode=90,active]
   handle: 
[id=23,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],first=07-Sep-2006
 23:53:44.519,periode=90]
  
[id=23,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],remaining=-1127166804,periode=90,active]
   handle: 
[id=25,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],first=21-Sep-2006
 01:11:36.854,periode=90]
  
[id=25,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],remaining=705531,periode=90,active]
   handle: 
[id=19,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],first=20-Sep-2006
 17:45:04.447,periode=90]
  
[id=19,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],remaining=-26086876,periode=90,active]
   handle: 
[id=20,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],first=20-Sep-2006
 18:05:33.801,periode=90]
  
[id=20,target=[target=jboss.j2ee:jndiName=tuportal/MailPlusManager,service=EJB],remaining=-24857522,periode=90,active]
 

Thanks for any help.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973110
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Using Seam for portlet communication

2006-09-20 Thread [EMAIL PROTECTED]
According to http://wiki.java.net/bin/view/Portlet/JSR168FAQ " How do I achieve 
inter-portlet communication ?" one can use the Application Scope for intra 
portlet communication. 

If in action2.java i change the scope to APPLICATION it works as "expected".

  | @Stateful
  | @Name("action2")
  | @Scope(ScopeType.APPLICATION)
  | 

But does this mean that the action2 and it's state is now shared with all the 
users? If so changing the scope to application is some kind of dissolution.

This is what Seam docs say about the application scope: 
http://docs.jboss.com/seam/1.0.0.GA/reference/en/html/concepts.html#d0e2123

Would it be possible to use the Business process context to transfer data 
between portlets? Or maybe add new context which is shared between portlets for 
one user. It's pretty weird that the Session context is not already shared 
between the portlets.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973109
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - WAN Support

2006-09-20 Thread wernsman
Will JBoss messaging support WAN cluster support in 2.0?  I see where LAN 
cluster support will be available but I don't see if WAN support is in plan for 
2.0.

Regards,
Bob Wernsman

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973107
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Messaging client can't create connection

2006-09-20 Thread anshah1
here's my stack trace

Full thread dump Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode):
  | 
  | "Timer-4" daemon prio=6 tid=0x28221018 nid=0x1030 in Object.wait() 
[0x29a7f000..
  | 0x29a7fae8]
  | at java.lang.Object.wait(Native Method)
  | - waiting on <0x02fa31f8> (a java.util.TaskQueue)
  | at java.util.TimerThread.mainLoop(Timer.java:509)
  | - locked <0x02fa31f8> (a java.util.TaskQueue)
  | at java.util.TimerThread.run(Timer.java:462)
  | 
  | "SocketServerInvokerThread-130.20.106.144-0" prio=6 tid=0x27093008 
nid=0x1258 ru
  | nnable [0x29a3f000..0x29a3fb68]
  | at java.net.SocketInputStream.socketRead0(Native Method)
  | at java.net.SocketInputStream.read(SocketInputStream.java:129)
  | at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
  | at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
  | - locked <0x02d9b280> (a java.io.BufferedInputStream)
  | at java.io.FilterInputStream.read(FilterInputStream.java:66)
  | at 
org.jboss.serial.io.JBossObjectInputStream.read(JBossObjectInputStrea
  | m.java:193)
  | at 
org.jboss.remoting.transport.socket.ServerThread.readVersion(ServerTh
  | read.java:497)
  | at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(Se
  | rverThread.java:414)
  | at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.j
  | ava:534)
  | at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.jav
  | a:257)
  | 
  | "RMI TCP Connection(2)-130.20.106.144" daemon prio=6 tid=0x27094118 
nid=0x1280 r
  | unnable [0x299ff000..0x299ffbe8]
  | at java.net.SocketInputStream.socketRead0(Native Method)
  | at java.net.SocketInputStream.read(SocketInputStream.java:129)
  | at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
  | at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
  | - locked <0x02d49bb0> (a java.io.BufferedInputStream)
  | at java.io.FilterInputStream.read(FilterInputStream.java:66)
  | at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
  | 42)
  | at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
  | .java:701)
  | at java.lang.Thread.run(Thread.java:595)
  | 
  | "RMI LeaseChecker" daemon prio=6 tid=0x27bd6668 nid=0x1220 waiting on 
condition
  | [0x299bf000..0x299bfc68]
  | at java.lang.Thread.sleep(Native Method)
  | at sun.rmi.transport.DGCImpl$LeaseChecker.run(DGCImpl.java:310)
  | at java.lang.Thread.run(Thread.java:595)
  | 
  | "RMI TCP Connection(1)-130.20.106.144" daemon prio=6 tid=0x27279120 
nid=0x12d8 r
  | unnable [0x2997f000..0x2997fce8]
  | at java.net.SocketInputStream.socketRead0(Native Method)
  | at java.net.SocketInputStream.read(SocketInputStream.java:129)
  | at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
  | at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
  | - locked <0x02cbd3b8> (a java.io.BufferedInputStream)
  | at java.io.FilterInputStream.read(FilterInputStream.java:66)
  | at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
  | 42)
  | at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
  | .java:701)
  | at java.lang.Thread.run(Thread.java:595)
  | 
  | "JBoss System Threads(1)-3" daemon prio=6 tid=0x00aafc00 nid=0xf0c in 
Object.wai
  | t() [0x2717f000..0x2717fd68]
  | at java.lang.Object.wait(Native Method)
  | - waiting on <0x054a37b0> (a java.lang.Object)
  | at 
EDU.oswego.cs.dl.util.concurrent.BoundedLinkedQueue.poll(BoundedLinke
  | dQueue.java:253)
  | - locked <0x054a37b0> (a java.lang.Object)
  | at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor.getTask(PooledExecuto
  | r.java:723)
  | at 
org.jboss.util.threadpool.MinPooledExecutor.getTask(MinPooledExecutor
  | .java:91)
  | at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
  | utor.java:747)
  | at java.lang.Thread.run(Thread.java:595)
  | 
  | "TP-Monitor" daemon prio=6 tid=0x27bfae58 nid=0xa44 in Object.wait() 
[0x2993f000
  | ..0x2993f9e8]
  | at java.lang.Object.wait(Native Method)
  | - waiting on <0x07165160> (a 
org.apache.tomcat.util.threads.ThreadPool$M
  | onitorRunnable)
  | at 
org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadP
  | ool.java:559)
  | - locked <0x07165160> (a 
org.apache.tomcat.util.threads.ThreadPool$Monit
  | orRunnable)
  | at java.lang.Thread.run(Thread.java:595)
  | 
  | "TP-Processor4" daemon prio=6 tid=0x27bfa138 nid=0x1098 runnable 
[0x298ff000..0x
  | 298ffa68]
  | at java.net.PlainSocketImpl.socketAccept(Native Method)
  | at java.net.PlainSocketImpl.

[jboss-user] [JBoss Seam] - Using Seam for porlet communication

2006-09-20 Thread [EMAIL PROTECTED]
Hello,
 I'd like to use Seam to help JSR-168 portlets to  communicate between each 
others (e.g. portlet1.jsp, portlet2.jsp). My first very naive approach (using 
Statefull Session Beans) didn't seem to work. Maybe it didn't work because 
somebody (JSF,Seam?) sees the two portlets as two different "clients", so 
different SFSBs are created for two different portlets.

Portlet1.jsp uses action1 (SFSB) to get a list of organizations, action2 is 
different SFSB.

action1.java

  | @DataModel
  | List organizations;
  | 

portlet1.jsp

  | 
  | 
  | 
  | 


action2.java

  | @RequestParameter("organizationId")
  | private String organizationId;
  | 
  | @DataModel(value = "orgEvents")
  | List orgEvents;
  | 

portlet2.jsp

  | 
  |   
  | 
  |   
  | 
  | 
  |   
  | 
  | 


pages.xml

  | 
  |   
  | 
  | 


However, it seems that two different instances of action2 are created, one for 
the portlet1.jsp (action="#{action2.getEventsForOrg}" and other one for 
portlet2.jsp accesses. It doesn't matter if i use the pages.xml above or call 
action2 inside the portlet2.jsp. 

Is this Seam abuse ;) or misconfiguration? 





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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973105
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam magic on non-seam-components?

2006-09-20 Thread CptnKirk
You can also define components, including JavaBeans, in components.xml.  If you 
define them here, you don't need the @Name annotation.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973104
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Problem with callbackURI

2006-09-20 Thread [EMAIL PROTECTED]
I'm adding this to the end of Chapter 6. If anyone wants to review it:

6.5. Configuring the remoting connector

JBoss Messaging uses JBoss Remoting for all client to server communication. For 
full details of what JBoss Remoting is capable of and how it is configured 
please consult the JBoss Remoting documentation.

The default configuration includes a single remoting connector which is used by 
the single default connection factory. Each connection factory can be 
configured to use its own connector.

The default connector is configured to use the remoting socket transport.

This transport opens TCP connections from client to server for client to server 
communications (e.g. sending messages) and TCP connections from server to 
client for server to client communications (e.g. receiving messages). The 
transport can be configured to use SSL where a higher level of security is 
required.

Future releases JBoss Messaging will support a bidirectional socket transport 
(similar to UIL2 in JBoss MQ) and an HTTP transport, both of which are useful 
in network environments where TCP connections from server to client are not 
possible. This means, for example, that you could deploy one connection factory 
that uses the HTTP transport for all the connections created from it, and 
another connection factory that uses the socket transport for all connections 
created from it.

You can look at remoting configuration under:

/server//deploy/jboss-messaging.sar/remoting-service.xml

By default JBoss Messaging binds to ${jboss.bind.address} which can be defined 
by: ./run.sh -c  -b yourIP.

You can change remoting-service.xml if you want for example use a different 
communication port, or any other network behavior.


6.6. Configuring the callback

JBoss Messaging uses a callback mechanism from Remoting that needs a Socket for 
callback operations. These socket properties are passed to the server by a 
remote call when the connection is being estabilished. As we said before we 
will support bidirectional protocols in future releases.

By default JBoss Messaging will execute 
InetAddress.getLocalHost().getHostAddress() to access your local host IP, but 
in case you need to setup a different IP, you can define a system property in 
your java arguments:

Use java -Djboss.messaging.callback.bind.address=YourHost - That will determine 
the callBack host in your client. 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973103
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: JBoss Portal + LDAP

2006-09-20 Thread portalgeek
LdapLoginModule is in java 6, which is still a beta-version. Correct me if i am 
wrong.

 But i guess there is some documentation @ sun's 
website.http://java.sun.com/products/jndi/tutorial/ldap/index.html
 tell how to integrate.

I was thinking, UserPortlet provided in the JBoss source is the right place to 
put this validation code.

 Please correct me, if i am wrong. Someone who has done this before, please 
share your experience.

thanks

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973102
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Messaging client can't create connection

2006-09-20 Thread PeterJ
When it hangs, take a thread dump of the client.  Perhaps than might give some 
clue as to what it is hanging on.  Is there any activity in the server log or 
on the server console?

Thread dump info:  http://www.jboss.org/wiki/Wiki.jsp?page=StackTrace

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973101
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Group By Error

2006-09-20 Thread jgilbert
Thanks!

I changed the having to a where and everything is good.


  | select p.agency.name, p.customer.name, sum(p.amount) 
  | from Payment p 
  | where p.date between :startDate and :endDate
  | group by p.agency.name, p.customer.name 
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973100
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - Re: NameNotFoundException while looking up MySqlDs DataSourc

2006-09-20 Thread smix007
Hello, 

"[EMAIL PROTECTED]" wrote : Read the FAQ and stop wasting peoples time.

I have the same problem, is what you can say to me of which FAQ it acts.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973099
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Messaging client can't create connection

2006-09-20 Thread anshah1
I have a simple client.. here's the crux of it..


public void initialize() throws Exception {
  | // lookup the queue and topic objects
  | System.out.println("Starting init");
  | Destination queue = (Destination) mCtx.lookup("/queue/myQueue");
  | System.out.println("q look up done   " + queue);
  | // lookup a connection factory
  | ConnectionFactory factory = (ConnectionFactory) mCtx
  | .lookup("/ConnectionFactory");
  | System.out.println("factory done ");
  | // create a connection
  | javax.jms.Connection connection = factory.createConnection();
  | System.out.println("created connection ");
  | // create a  session
  | Session session = connection.createSession(true,
  | Session.AUTO_ACKNOWLEDGE);
  | System.out.println("created session");
  | // create a message consumer for the topic
  | MessageConsumer subscriber = session.createConsumer(queue);
  | System.out.println("created consumer");
  | // set this class as message listener for the topic
  | subscriber.setMessageListener(this);
  | System.out.println("finished init");
  | connection.start(); // start connection
  | }   
  | 

This is the output I get.

: 
  |  [java] You are connecting to server wd55237
  |  [java] Threads available 4
  |  [java] datasource look up done
  |  [java] Starting init
  |  [java] q look up done   JBossQueue[myQueue]
  |  [java] factory done 
  | 


I am running this example with the following class path...

C:\Documents and 
  |  
Settings\d3m293\workspace\NCBIOfflineRetrieval\build\lib\ncbiretrieval.jar
  | -C:\Documents and 
Settings\d3m293\workspace\NCBIOfflineRetrieval\lib\blueprint-commons-db-3.8.jar
  | -C:\Documents and 
Settings\d3m293\workspace\NCBIOfflineRetrieval\lib\brm-server.jar
  | -C:\Documents and 
Settings\d3m293\workspace\NCBIOfflineRetrieval\lib\brm-util.jar
  | -C:\Documents and 
Settings\d3m293\workspace\NCBIOfflineRetrieval\lib\jboss-messaging-client.jar
  | -C:\Documents and 
Settings\d3m293\workspace\NCBIOfflineRetrieval\lib\seqhound-4.0.jar
  | -C:\Documents and 
Settings\d3m293\workspace\NCBIOfflineRetrieval\lib\axis\axis.jar
  | -C:\Documents and 
Settings\d3m293\workspace\NCBIOfflineRetrieval\lib\axis\commons-discovery-0.2.jar
  | 
  | -C:\Documents and 
Settings\d3m293\workspace\NCBIOfflineRetrieval\lib\axis\commons-logging.jar
  | -C:\Documents and 
Settings\d3m293\workspace\NCBIOfflineRetrieval\lib\axis\jaxrpc.jar
  | -C:\Documents and 
Settings\d3m293\workspace\NCBIOfflineRetrieval\lib\axis\saaj.jar
  | -C:\Documents and 
Settings\d3m293\workspace\NCBIOfflineRetrieval\lib\axis\wsdl4j-1.5.1.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\activation.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\antlr-2.7.5H3.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\asm-attrs.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\asm.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\autonumber-plugin.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\axis.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\bcel.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\bindingservice-plugin.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\blueprint-commons-db-3.8.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\bsf.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\bsh-1.3.0.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\bsh-deployer.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\cglib-2.1_2jboss.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\commons-collections.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\commons-httpclient.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\commons-logging.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\ejb3-persistence.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\hibernate-annotations.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\hibernate-entitymanager.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\hibernate3.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\hsqldb-plugin.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\hsqldb.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\javax.servlet.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\javax.servlet.jsp.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\jboss-common-jdbc-wrapper.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\jboss-hibernate.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\jboss-j2ee.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\jboss-jaxrpc.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\jboss-jca.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\jboss-jsr77.jar
  | -C:\jboss-4.0.3SP1\server\messaging\lib\jboss-jsr88.jar

[jboss-user] [EJB 3.0] - Re: RC9: @EJB Injection not working?

2006-09-20 Thread holmes.j
Do you know if you can use injection in an older EJB2.1 bean?  

I can't inject an EJB3 session bean into my EJB2.1 session bean.  Haven't tried 
the other way yet.

It'd be really nice if it works.

-Jason



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973093
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: I can't see the tabs in my new portal.

2006-09-20 Thread [EMAIL PROTECTED]
"mmontoni" wrote : what do you mean by "checked out in to truck"?

checked in to trunk... as in committed to the subversion trunk. :)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973090
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: jsp exception shuts down jboss

2006-09-20 Thread kistler59
hrm.. ok, thanks peter - thas where I put it.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973088
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: jsp exception shuts down jboss

2006-09-20 Thread PeterJ
The mysql jdbc jar file goes in jboss_home/server/default/lib.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973087
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Performance Tuning] - Re: JBoss always at 100% CPU but not doing anything!

2006-09-20 Thread [EMAIL PROTECTED]
Hi Scott, Peter, and Taylor,

I switched back to the Sun JVM and redirected stderr, and it works now. Now for 
the fun part: waiting for everything to blow up.

I'll post more details as they come.

thanks so much,
JLS

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973086
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: ejb entity beans need implements

2006-09-20 Thread epbernard
context?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973085
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Problem with callbackURI

2006-09-20 Thread CoyoteSqrl
Ah. Like I said, I thought I might have just missed it. 

Clearly, that would be a preferable solution. Thanks for pointing out to me.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973084
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: EJb 3.0 primary key loose ?

2006-09-20 Thread epbernard
save method impl?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973083
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - jsp exception shuts down jboss

2006-09-20 Thread kistler59
Yup, just like the subject said.

Here's what I was trying to do and what happened.

I'm using jboss-4.0.3SP1

I need to configure a security domain to authenticate using a mysql database - 
this is another beast by itself that I am having some trouble with.

So first I want to make sure I have our datasource setup properly - so as many 
other examples do - I try to make a servlet to do so.  However, this exception 
is not datasource related - it occurs before we even try to establish a 
connection.  

So i wrote a little servlet that contained:

anonymous wrote : <%
  | javax.naming.InitialContext ctxt = new javax.naming.InitialContext();
  | javax.sql.DataSource ds = (javax.sql.DataSource) 
ctxt.lookup("java:MySqlDS");
  | java.sql.Connection con = ds.getConnection();
  | %>
  | 

I was getting this message with the exception:

javax.servlet.ServletException: Could not create connection; - nested 
throwable: (org.jboss.resource.JBossResourceException: Failed to register 
driver for: com.mysql.jdbc.Driver; - nested throwable: 
(java.lang.ClassNotFoundException: com.mysql.jdbc.Driver)); - nested throwable: 
(org.jboss.resource.JBossResourceException: Could not create connection; - 
nested throwable: (org.jboss.resource.JBossResourceException: Failed to 
register driver for: com.mysql.jdbc.Driver; - nested throwable: 
(java.lang.ClassNotFoundException: com.mysql.jdbc.Driver)))


so I tried adding:

try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
} catch (ClassNotFoundException cnfe) {
out.println("Couldn't find the driver!");
out.println("Let's print a stack trace, and exit.");
cnfe.printStackTrace();
System.exit(1);
} catch(Exception e){
e.printStackTrace();
}

before trying to create the initialcontext

This is where the fun starts!

Now, when I try to load the servlet (through tomcat) when Class.forName is 
called - this happens...
anonymous wrote : 
  | 2006-09-20 14:24:46,524 DEBUG [org.jboss.deployment.MainDeployer] Deployed 
package: file:/usr/local/jboss-4.0.3SP1/server/default/deploy/test.war
  | 2006-09-20 14:26:03,089 INFO  [STDOUT] java.lang.ClassNotFoundException: 
com.mysql.jdbc.Driver
  | 2006-09-20 14:26:03,090 INFO  [STDOUT]  at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1332)
  | 2006-09-20 14:26:03,090 INFO  [STDOUT]  at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
  | 2006-09-20 14:26:03,090 INFO  [STDOUT]  at 
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:150)
  | 2006-09-20 14:26:03,090 INFO  [STDOUT]  at 
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71)
  | 2006-09-20 14:26:03,090 INFO  [STDOUT]  at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
  | 2006-09-20 14:26:03,090 INFO  [STDOUT]  at java.lang.Class.forName0(Native 
Method)
  | 2006-09-20 14:26:03,090 INFO  [STDOUT]  at 
java.lang.Class.forName(Class.java:164)
  | 2006-09-20 14:26:03,091 INFO  [STDOUT]  at 
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:62)
  | 2006-09-20 14:26:03,091 INFO  [STDOUT]  at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  | 2006-09-20 14:26:03,091 INFO  [STDOUT]  at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 2006-09-20 14:26:03,091 INFO  [STDOUT]  at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
  | 2006-09-20 14:26:03,091 INFO  [STDOUT]  at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | 2006-09-20 14:26:03,091 INFO  [STDOUT]  at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | 2006-09-20 14:26:03,091 INFO  [STDOUT]  at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | 2006-09-20 14:26:03,091 INFO  [STDOUT]  at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 2006-09-20 14:26:03,092 INFO  [STDOUT]  at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 2006-09-20 14:26:03,092 INFO  [STDOUT]  at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
  | 2006-09-20 14:26:03,092 INFO  [STDOUT]  at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | 2006-09-20 14:26:03,092 INFO  [STDOUT]  at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 2006-09-20 14:26:03,092 INFO  [STDOUT]  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | 2006-09-20 14:26:03,092 INFO  [STDOUT]  at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | 2006-09-20 14:26:03,092 INFO  [STDOUT]  at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
  | 2006-09-20 14:26:03,092 INFO  [STDOUT]  at 
o

[jboss-user] [JBoss Portal] - NEW: Forums Portlet Forums!

2006-09-20 Thread [EMAIL PROTECTED]
Questions/Comments about the forums portlet, belong here: 
http://jboss.org/index.html?module=bb&op=viewforum&f=242

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973080
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - ClassCastException on Stateless Remote Bean

2006-09-20 Thread holmes.j
Howdy,
Just started with the new EJB 3 stuff, so I'm guessing I've done something 
wrong.  I just can't see what it is.

I'm getting ClassCastExceptions when trying to get the a Remote Session Bean in 
a JNDI lookup.  It's failing on the cast to the GeoFeatureManager.  

try {
  | String geoFeatureManagerName = 
"motionbased/GeoFeatureManagerBean/remote";
  | 
  | InitialContext ctx = new InitialContext();
  | Object object = ctx.lookup(geoFeatureManagerName);
  | GeoFeatureManager geoFeatureManager = 
(GeoFeatureManagerBean) object;
  | 
  | this.geoFeature = 
geoFeatureManager.findGeoFeature(getGeoFeaturePk());
  | } catch (NamingException e1) {
  | e1.printStackTrace();
  | throw new SQLException(e1.getMessage());
  | }

The Remote Interface 

  | @Remote
  | public interface GeoFeatureManager extends Serializable {
  | ...
  | }
  | 

The Implementation of it ...

@Stateless(name = "GeoFeatureManagerBean")
  | @Remote( { GeoFeatureManager.class })
  | @RemoteBinding(jndiBinding = "motionbased/GeoFeatureManagerBean/remote")
  | public class GeoFeatureManagerBean implements GeoFeatureManager {
  | private static final long serialVersionUID = 6211376611083502502L;
  | 

I read this 
http://wiki.jboss.org/wiki/Wiki.jsp?page=CommonHurdlesAndDifficultiesYouMayEncounterDuringEJB3Development
 that says to make sure you don't have the class in more than one jar.  I've 
checked, and it only appears in one of my jars.

When I step through the code, it returns a $Proxy, which contains h, a 
StatelessRemoteProxy.  Within the proxy it sees the appropriate jar.  And in 
the EJBMetaData, it has the appropriate interface, GeoFeatureManager.

So, I don't really see what I'm doing wrong.  Hopefully somebody else can point 
out my mistake.

Thanks!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973079
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Problem with callbackURI

2006-09-20 Thread [EMAIL PROTECTED]
I'm updating the documentation..

But I just wonder why you didn't just use ./run.sh -b ?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973077
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: How to cause related entities to update when base entity

2006-09-20 Thread epbernard
do a query that load the associated object and remove them

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973076
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Problem with callbackURI (Repost)

2006-09-20 Thread [EMAIL PROTECTED]
I'm updating the documentation..

But I just wonder why you didn't just use ./run.sh -b YourIP?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973077
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem injecting the value of a context component expre

2006-09-20 Thread [EMAIL PROTECTED]
sessionContext does not implement Map.

But you can just use:

@In("#{testString1}")
  | String string1;
  | 
  | @In("#{testInteger1}")
  | Integer integer1;

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973078
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Problem injecting the value of a context component expressio

2006-09-20 Thread zzzz8
I'm having problems injecting the value of an EL expression, in this case with 
a session context component.  For example, I'd like to inject the following:

@In("#{sessionContext.testString1}")
  | String string1;
  | 
  | @In("#{sessionContext.testInteger1}")
  | Integer integer1;

Unfortunately, both of these injections don't seem to work.  What am I doing 
wrong?  Thanks!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973075
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Performance Tuning] - Re: JBoss always at 100% CPU but not doing anything!

2006-09-20 Thread Scott.Marlow.Novell
Try redirecting standard error to the file as well:

-Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
-classpath "$JBOSS_CLASSPATH" \
org.jboss.Main "$@" > /tmp/jboss.trace 2>&1

And check that you are sending "kill -3" to the correct java process.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973074
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Performance Tuning] - Re: JBoss always at 100% CPU but not doing anything!

2006-09-20 Thread PeterJ
Taking a thread dump is a function of the JVM, not of JBoss.  Perhaps JRockit 
is placing the threadump somewhere else, like the IBM JVM does.  You would have 
the check the JRockit documentation for details.  Or it might not even support 
a thread dump, in which case I suggest trying the Sun JVM just long enough to 
track down this problem.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973072
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Performance Tuning] - Re: JBoss always at 100% CPU but not doing anything!

2006-09-20 Thread otaylor
The method using JMX linked to at the top of the page is likely easier; note
the note further down the page of doing the dump via twiddle.sh from the
command line.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973071
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Performance Tuning] - Re: JBoss always at 100% CPU but not doing anything!

2006-09-20 Thread [EMAIL PROTECTED]
Hi Peter,

I'm trying to get that thread dump now, actually. I've changed the line in my 
run.sh to read:

-Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
  -classpath "$JBOSS_CLASSPATH" \
  org.jboss.Main "$@" > /tmp/jboss.trace


All of the chatter is going to this file, however, when I do a kill -3 to the 
process, nothing happens and no thread dump is emmited. Any ideas?

Thanks,
JLS

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973070
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: RC9 is out

2006-09-20 Thread Wolfgang Knauf
Some changes from 4.0.4 with installer for RC8 to 4.0.5CR1/RC9 that I noticed 
(I hope someone can comment on them):

Libraries:
\client\jboss-ejb3-client.jar was before split to jboss-ejb3-client.jar and 
jboss-ejb3x.jar
\client\jboss-aop-jdk50-client.jar and \client\jboss-aspect-jdk50-client.jar 
are no longer installed (now only in deploy\ejb3.deployer)

Will those JAR changes also take place in the installer for 4.0.5 ? This is 
quite important to me because I modified a Eclipse WTP JBoss plugin to work 
with 4.0.4 and now my JAR file references need to be changed)



Installing to "deploy" configuration:
If I deploy an EJB3 application (EAR file with EJB and AppClient project 
referencing application_5.xsd, ejb-jar_3_0.xsd, persistence_1_0.xsd and 
application-client_5.xsd) the server loads javaee_web_services_client_1_2.xsd 
from the internet. If there is no internet connection this message can be found 
in the log:

21:58:57,718 WARN  [JBossEntityResolver] Cannot load systemId from resource: 
javaee_web_services_client_1_2.xsd
21:58:57,734 WARN  [SaxJBossXBParser] schema_reference.4: Failed to read schema 
document 'javaee_web_services_client_1_2.xsd', because 1) could not find the 
document; 2) the document could not be read; 3) the root element of the 
document is not . @ 
http://java.sun.com/xml/ns/javaee/javaee_5.xsd[78,69]
21:58:57,750 WARN  [ServiceController] Problem creating service 
jboss.j2ee:service=EJB3,module=KuchenSimpleEJB.jar
org.jboss.xb.binding.JBossXBException: Failed to parse source: src-resolve: 
Cannot resolve the name 'javaee:service-refGroup' to a(n) 'group' component. @ 
http://java.sun.com/xml/ns/javaee/javaee_5.xsd[798,49]
at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:156)
at 
org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:169)
at 
org.jboss.ejb3.metamodel.EjbJarDDObjectFactory.parse(EjbJarDDObjectFactory.java:87)
at 
org.jboss.ejb3.Ejb3HandlerFactory$DDFactory.(Ejb3HandlerFactory.java:44)
at 
org.jboss.ejb3.Ejb3HandlerFactory.getInstance(Ejb3HandlerFactory.java:83)
...

With an internet connection the file is loaded.
This worked with 4.0.4.


Removing a detached entity worked with 4.0.4/RC8 (I did not know I did 
something wrong ;-) ), now it throws this exception:

Caused by: java.lang.IllegalArgumentException: Removing a detached instance 
de.fhw.swtvertiefung.knauf.kuchen.KuchenSimpleBean#1
at 
org.hibernate.ejb.event.EJB3DeleteEventListener.performDetachedEntityDeletionCheck(EJB3DeleteEventListener.java:47)
at 
org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:75)
at 
org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:49)
at org.hibernate.impl.SessionImpl.fireDelete(SessionImpl.java:766)
at org.hibernate.impl.SessionImpl.delete(SessionImpl.java:744)
at 
org.hibernate.ejb.AbstractEntityManagerImpl.remove(AbstractEntityManagerImpl.java:245)
at 
org.jboss.ejb3.entity.TransactionScopedEntityManager.remove(TransactionScopedEntityManager.java:187)
at 
de.fhw.swtvertiefung.knauf.kuchen.KuchenWorkerBean.deleteKuchen(KuchenWorkerBean.java:32)


I did not find anything about such a change in the release notes. 
Will have to modify my code a bit ;-)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973069
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Performance Tuning] - Re: JBoss always at 100% CPU but not doing anything!

2006-09-20 Thread [EMAIL PROTECTED]
Hi Joachim,

Actually, I don't have the caching service active. (I don't have a 
ejb3-caching-service.xml (or whatever it is)) in my deploy directory.

 I am willing to buy that GC might be slamming the CPU, but the used ram is 
always around 500MB, and I've allocated 2.25 GB of ram. 

Is there something that I'm missing? Perhaps the cache IS on even without the 
deployment file?

Thanks,
JLS

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973068
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: I can't see the tabs in my new portal.

2006-09-20 Thread mmontoni
Hi Roy,

what do you mean by "checked out in to truck"?

--Mariella.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973067
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - GWT & Seam

2006-09-20 Thread robinemig
Anyone have a design for how to integrate google Web Tookit, GWT with Seam?
The idea would be basically replace some of the "web template" pages with a 
fuller featured, more responsive, ajax page and still maintain access to all 
the context data.
I'm currently thinking of using the RemoteServiceServlet (ie Impl) to get stuf 
from seam land, but this seems to be a lot of work to implement for each 
function I need to implement. Also, debugging is going to be an issue.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973063
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: I have some problems with an exeption, I need help!!!!

2006-09-20 Thread fhh
anonymous wrote : javax.ejb.EJBNoSuchObjectException : Could not find Stateful 
bean: 5c4o02m-g7qjuy-esaqbih2-1-esaulv2e-12a

Could this be a timeout problem?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973066
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Tabs don't show up on the new page in default portal

2006-09-20 Thread [EMAIL PROTECTED]
"halversp" wrote : Having to explicitly add common instances like the nav, 
user, etc. to every page definition (with all the right renderset options, 
security, etc.) gets really tiresome after a while, particularly in our design 
where we have several such common elements on a couple dozen pages. 
  | 
  | Any thought, in some future version, for some sort of 
"template"/"master"/"prototype", with all properties, instances, etc., that you 
can declare once and then reference from each individual object def? Without 
it, it's extraordinarily difficult to maintain a consistent page structure.

Agreed. There's a thread on UI improvements for 2.6 meant to gather ideas such 
as this: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=87301

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973065
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Setting @Table(name=.. @Column(name=.. at runtime

2006-09-20 Thread IceBearOZ
Hi Together,

I am new to EJB3 and therefore I need your help. Please forgive me if this 
question is not very imaginative.

My case:
--

Let's say I have two tables with different names but with the same structure:

  | Team_Green (id, first_name, last_name)
  | Team_Blue (id, first_name, last_name)
  | 
Now I want to use one entity bean (ejb3) for both tables. Like the following 
one:

  | package ...
  | 
  | import ...
  | 
  | @Entity
  | @Table(name="")
  | public class TeamMember implements Serializable {
  | 
  | private String id;
  | private String firstName;
  | private String lastName;
  | 
  | public TeamMember() {
  | super();
  | }
  | 
  | public TeamMember(String id, String firstName, String lastName) {
  | super();
  | this.id = id;
  | this.firstName = firstName;
  | this.lastName = lastName
  | }
  | 
  | @Id
  | @Column(name="id") // I know that this one is not necessary
  | public String getId() {
  | return id;
  | }
  | public void setId(String id) {
  | this.id = id;
  | }
  | 
  | @Column(name="first_name")
  | public String getFirstName() {
  | return firstName;
  | }
  | public void setFirstName(String fristName) {
  | this.firstName = firstName;
  | }
  | 
  | @Column(name="last_name")
  | public String getLastName() {
  | return lastName;
  | }
  | public void setLastName(String lastName) {
  | this.lastName = lastName;
  | }
  | 
  | }
  | 

My question:
---
a:)
How can I set the @Table(name=?...?) at runtime?
 
Assuming that I know which team member belongs to which team (green or blue): 
How can I set the @Table annotation to @Table(name=?Team_Green?) - if the team 
member belongs to the green team - or to @Table(name=?Team_Blue?) - it the 
person belongs to the blue team.

Is this in any way applicable? And if yes can someone please give me a short 
example, tip, hint, etc?

b:)
If a:) is applicable can I do such things with the annotation @Column(name=..) 
too?


Thanks for your help in advance.

Regards

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973064
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Could not find Stateful bean

2006-09-20 Thread texan
Maybe some other folks are familiar with this sort of exception, , but it 
doesn't mean anything to me except that it appears that you invoked some action 
and JSF couldn't find the EJB session where the action was implemented.

I was hoping to see the JSP code including the reference to the action, and the 
Java code for the action class (EJB session?)



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973062
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: I have some problems with an exeption, I need help!!!!

2006-09-20 Thread nicola9000
JSF are perhaps a bit bugged in id generations when many libreries are 
incvolved.

1. Watch your H:FORM tags and if it is possible use only 1  H:FORM in your page
2. Watch your include pages
3. if you are becoming "crazy" give an explicit ID to ALL tag in your page
4. pray :-)

nicola


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973061
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Nodes vs. PortalObjects?

2006-09-20 Thread halversp
I'm trying to write a custom navigation portlet, using the core 
NavigationPortlet as a model to access the appropriate JBP apis, but keeping 
track of when I need a node vs. when I need the corresponding PortalObject 
instance is driving me nuts. The PortalObject model (pages,portals,windows) 
makes sense, but I can't follow what additional structure the nodes provide. 
Can someone provide a quick description of the intended purpose of each 
hiearchy, and when I need to go between each?

Thanks,
Peter

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973057
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Performance Tuning] - Re: JBoss always at 100% CPU but not doing anything!

2006-09-20 Thread triathlon98
As a quick guess, check your memory consumption. I would guess that your system 
is actually constantly collecting garbage.

If this is the case, check your EJB3 caching setting. The default configuration 
uses a HasMap implementation which is not for production use (according to the 
Hibernate docs) as it does release much (or anything) from the cache. This 
should be replaced by a JBossCache instance.

Hope this helps you,
Joachim

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973053
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Consuming .net Web Service using JBOSSWS

2006-09-20 Thread vimalm
Hi

I am trying to consume a .net webservice (document/literal) inside one of my 
EJB's or a stand alone client starting from a WSDL URL in the form 
http://someurl/someservice.asmx

The steps I took is to create the supporting classes using WSTOOLS with 
following configuration and then invoking the web service.


http://www.jboss.org/jbossws-tools";>
  | 
  | 
  | 
  | 

I downloaded someservice.wsdl from above url?WSDL link. I read that that the 
URL could be refered in a jboss-client.xml file but I will do that later.

Now in my client I am trying to call  the web service using:

package somewebsite;
  | 
  | import java.net.URL;
  | import java.io.File;
  | import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
  | import javax.xml.namespace.QName;
  | import javax.xml.rpc.Service;
  | import javax.xml.rpc.Stub;
  | 
  | public class Test {
  | public static void main(String[] args) {
  | Test test = new Test();
  | test.call();
  | }
  | 
  | public void call() {
  |   try {
  | URL wsdlURL = new URL("http://someurl/someservice.asmx?WSDL";);  

  | ServiceFactoryImpl servFactory = new ServiceFactoryImpl();
  | URL mappingURL = new File("jaxrpc-mapping.xml").toURL();
  | QName qname = new QName("http://somewebsite.net";, 
"UserManagement");
  | Service service = servFactory.createService(wsdlURL, qname, 
mappingURL);
  | UserManagementSoap port = 
(UserManagementSoap)service.getPort(UserManagementSoap.class);
GetUserList gul = new GetUserList("notfound");
  | GetUserListResponse gulr = port.getUserList(gul);
  | System.out.println("finished" + gulr.getGetUserListResult());
  | } catch (Exception ex) {
  | ex.printStackTrace();
  | }
  | }
  | 
  | }
  | 

I get a connection time out and don't know what is wrong? I know the web 
service is up and running at the url because I can hit it with a .net client. I 
am having problem with the java client. I am using JBOSS 4.0.4GA JBOSS WS 
1.0.3GA.

Here is the WSDL :


  | http://schemas.xmlsoap.org/wsdl/soap/"; 
  |   xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"; 
  |   xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
  |   xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; 
  |   xmlns:tns="http://somewebsite.net/"; 
  |   xmlns:s="http://www.w3.org/2001/XMLSchema"; 
  |   xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
  |   xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; 
  |   targetNamespace="http://somewebsite.net/"; 
  |   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
  |   
  | http://somewebsite.net/";>
  |   
  | 
  |   
  | 
  | 
  |   
  | 
  |   
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  |   
  | 
  |   
  | 
  | 
  |   
  | 
  |   
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  |   
  | 
  |   
  |   
  | 
  |   
  |   
  | 
  |   
  |   
  | 
  |   
  |   
  | 
  |   
  |   
  | 
  |   
  |   
  | 
  |   
  |   
  | 
  | 
  |   
  |   
  | 
  | 
  |   
  |   
  | 
  |   
  |   
  | http://schemas.xmlsoap.org/soap/http"; />
  | 
  |   http://somewebsite.net/UpdateUser"; 
style="document" />
  |   
  | 
  |   
  |   
  | 
  |   
  | 
  | 
  |   http://somewebsite.net/DeleteUser"; 
style="document" />
  |   
  | 
  |   
  |   
  | 
  |   
  | 
  | 
  |   http://somewebsite.net/GetUserList"; 
style="document" />
  |   
  | 
  |   
  |   
  | 
  |   
  | 
  |   
  |   
  | http://schemas.xmlsoap.org/soap/http"; />
  | 
  |   http://somewebsite.net/UpdateUser"; 
style="document" />
  |   
  | 
  |   
  |   
  | 
  |   
  | 
  | 
  |   http://somewebsite.net/DeleteUser"; 
style="document" />
  |   
  | 
  |   
  |   
  | 
  |   
  | 
  | 
  |   http://somewebsite.net/GetUserList"; 
style="document" />
  |   
  | 
  |   
  |   
  | 
  |   
  | 
  |   
  |   
  | 
  |   http://someurl/someservice.asmx"; />
  | 
  | 
  |   http://someurl/someservice.asmx"; 

[jboss-user] [JBoss Portal] - Re: Tabs don't show up on the new page in default portal

2006-09-20 Thread halversp
Having to explicitly add common instances like the nav, user, etc. to every 
page definition (with all the right renderset options, security, etc.) gets 
really tiresome after a while, particularly in our design where we have several 
such common elements on a couple dozen pages. 

Any thought, in some future version, for some sort of 
"template"/"master"/"prototype", with all properties, instances, etc., that you 
can declare once and then reference from each individual object def? Without 
it, it's extraordinarily difficult to maintain a consistent page structure.

p

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973049
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Performance Tuning] - Re: JBoss always at 100% CPU but not doing anything!

2006-09-20 Thread PeterJ
When the processor hits 100%, take a thread dump (actually, take several) and 
see which thread(s) are running.  That should narrow down the list of culprits.

Thread dump info:
http://www.jboss.org/wiki/Wiki.jsp?page=StackTrace


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973047
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Topic Watch error on Forum Portlet - Jboss portal 2.4 GA

2006-09-20 Thread mmontoni
Hi Peter,

you were right. I deleted all the forum tables, then I re started JB As and it 
did created the tables fine and now eveything seems to be working. Thanks for 
the tip!

-- Mariella.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973044
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Performance Tuning] - JBoss always at 100% CPU but not doing anything!

2006-09-20 Thread [EMAIL PROTECTED]
Hi All,

I am having a horrible problem with my JBoss deployment. I am using 
Jboss-4.0.4CR2 with JAVA_OPTS="-server -Xmx2256m  -Xms2256m 
-Djava.awt.headless=true", the JDK is BEA JRockit 1.5.0_07. 

The application is a EJB 3.0 application, with lots of servlets, and JSF stuff 
on the client side. All of the session beans are stateless. 

After about 1 day of running the CPU hits 100% and stays there until I reboot 
JBoss, then the process repeats. I've been profiling the code locally, but am 
unable to find a place where the code would be hanging up. Also, tailing 
server.log (with debug logging on) confirms that nothing is happening.

Question: What in the world can I do to figure out what is hanging the 
processor? I've confirmed that garbage collection is not the source by logging 
the garbage collection during this process. 

I am at a total loss for how to move forward, but needless to say I find it 
totally unacceptable. 

Can someone point me in the right direction? 

Thanks,
JLS


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973045
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - The CMP development Problem!!!

2006-09-20 Thread chengshan
When I develop a CMP ,I meet a problem,My env is :
1.dev env:Jbuilder;
2.run env:jboss 4.0,jdk1.5
3.I develop it ,when I deloply success,run my test client,the console 
information looks like:

java.security.AccessControlException: access denied (java.net.SocketPermission 
230.0.0.4 connect,accept,resolve)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at 
java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkMulticast(SecurityManager.java:1188)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:269)
at 
org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1254)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1382)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:579)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at product.client.ProductClient.main(ProductClient.java:47)


My test client is like this:

package product.client;

import javax.ejb.*;
import javax.naming.*;
import java.rmi.*;
import javax.rmi.PortableRemoteObject;
import java.util.*;
import product.ProductHome;
import product.Product;

public class ProductClient {
public ProductClient() {
}

public static void main(String[] args) throws Exception {
ProductClient productclient = new ProductClient();
ProductHome home = null;

try{

System.setProperty("java.security.policy","policy");

System.setSecurityManager(new RMISecurityManager());

//if(System.getSecurityManager() == null)
//System.setSecurityManager(new RMISecurityManager());

Hashtable props = new Hashtable();

props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");

props.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
props.put(Context.PROVIDER_URL,"jnp://localhost:1099");

Context ctx = new InitialContext(props);
home = (ProductHome)ctx.lookup("ProductBean");

//Object obj = ctx.lookup("ProductBean");
//if(obj == null)
//System.out.println("ProductBean is null");

//home = 
(ProductHome)PortableRemoteObject.narrow(obj,ProductHome.class);

home.create("100","P5-350","350 MHZ Pentium",200);
home.create("101","P5-400","400 MHZ Pentium",300);
home.create("102","P5-450","450 MHZ Pentium",400);
home.create("103","SD-64","64MB SDRAM",50);
home.create("104","SD-128","128MB SDRAM",100);
home.create("105","SD-256","256MB SDRAM",200);

Iterator i = home.findByName("SD-64").iterator();
System.out.println("These products match the name SD-64:");
while(i.hasNext()){
Product prod = (Product)i.next();

System.out.println("prod.getDescription()"+prod.getDescription());
}
System.out.println("Finding all Products that cost $200");
i = home.findByBasePrice(200).iterator();
while(i.hasNext()){
Product prod = (Product)i.next();
System.out.println("prod.getDescription"+prod.getDescription());
}
}catch(Exception e){
e.printStackTrace();
}finally{
if(home != null){
System.out.println("Destroying products");
Iterator i = home.findAllProducts().iterator();
while(i.hasNext()){
try{
Product prod = (Product)i.next();
if(prod.getProductId().startsWith("123")){
prod.remove();
}
}catch(Exception e){
e.printStackTrace();
}
}
}
}
}
}
I don't know hot to modify(add) the my policy file,the new policy file must be 
which dir?how to add the VM argument use policy file?
Thank you!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973043
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - The CMP development Problem!!!

2006-09-20 Thread chengshan
When I develop a CMP ,I meet a problem,My env is :
1.dev env:Jbuilder;
2.run env:jboss 4.0,jdk1.5
3.I develop it ,when I deloply success,run my test client,the console 
information looks like:

java.security.AccessControlException: access denied (java.net.SocketPermission 
230.0.0.4 connect,accept,resolve)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at 
java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkMulticast(SecurityManager.java:1188)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:269)
at 
org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1254)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1382)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:579)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at product.client.ProductClient.main(ProductClient.java:47)


My test client is like this:

package product.client;

import javax.ejb.*;
import javax.naming.*;
import java.rmi.*;
import javax.rmi.PortableRemoteObject;
import java.util.*;
import product.ProductHome;
import product.Product;

public class ProductClient {
public ProductClient() {
}

public static void main(String[] args) throws Exception {
ProductClient productclient = new ProductClient();
ProductHome home = null;

try{

System.setProperty("java.security.policy","policy");

System.setSecurityManager(new RMISecurityManager());

//if(System.getSecurityManager() == null)
//System.setSecurityManager(new RMISecurityManager());

Hashtable props = new Hashtable();

props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");

props.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
props.put(Context.PROVIDER_URL,"jnp://localhost:1099");

Context ctx = new InitialContext(props);
home = (ProductHome)ctx.lookup("ProductBean");

//Object obj = ctx.lookup("ProductBean");
//if(obj == null)
//System.out.println("ProductBean is null");

//home = 
(ProductHome)PortableRemoteObject.narrow(obj,ProductHome.class);

home.create("100","P5-350","350 MHZ Pentium",200);
home.create("101","P5-400","400 MHZ Pentium",300);
home.create("102","P5-450","450 MHZ Pentium",400);
home.create("103","SD-64","64MB SDRAM",50);
home.create("104","SD-128","128MB SDRAM",100);
home.create("105","SD-256","256MB SDRAM",200);

Iterator i = home.findByName("SD-64").iterator();
System.out.println("These products match the name SD-64:");
while(i.hasNext()){
Product prod = (Product)i.next();

System.out.println("prod.getDescription()"+prod.getDescription());
}
System.out.println("Finding all Products that cost $200");
i = home.findByBasePrice(200).iterator();
while(i.hasNext()){
Product prod = (Product)i.next();
System.out.println("prod.getDescription"+prod.getDescription());
}
}catch(Exception e){
e.printStackTrace();
}finally{
if(home != null){
System.out.println("Destroying products");
Iterator i = home.findAllProducts().iterator();
while(i.hasNext()){
try{
Product prod = (Product)i.next();
if(prod.getProductId().startsWith("123")){
prod.remove();
}
}catch(Exception e){
e.printStackTrace();
}
}
}
}
}
}
I don't know hot to modify(add) the my policy file,the new policy file must be 
which dir?how to add the VM argument use policy file?
Thank you!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973042
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - The CMP development Problem!!!

2006-09-20 Thread chengshan
When I develop a CMP ,I meet a problem,My env is :
1.dev env:Jbuilder;
2.run env:jboss 4.0,jdk1.5
3.I develop it ,when I deloply success,run my test client,the console 
information looks like:

java.security.AccessControlException: access denied (java.net.SocketPermission 
230.0.0.4 connect,accept,resolve)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at 
java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkMulticast(SecurityManager.java:1188)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:269)
at 
org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1254)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1382)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:579)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at product.client.ProductClient.main(ProductClient.java:47)


My test client is like this:

package product.client;

import javax.ejb.*;
import javax.naming.*;
import java.rmi.*;
import javax.rmi.PortableRemoteObject;
import java.util.*;
import product.ProductHome;
import product.Product;

public class ProductClient {
public ProductClient() {
}

public static void main(String[] args) throws Exception {
ProductClient productclient = new ProductClient();
ProductHome home = null;

try{

System.setProperty("java.security.policy","policy");

System.setSecurityManager(new RMISecurityManager());

//if(System.getSecurityManager() == null)
//System.setSecurityManager(new RMISecurityManager());

Hashtable props = new Hashtable();

props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");

props.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
props.put(Context.PROVIDER_URL,"jnp://localhost:1099");

Context ctx = new InitialContext(props);
home = (ProductHome)ctx.lookup("ProductBean");

//Object obj = ctx.lookup("ProductBean");
//if(obj == null)
//System.out.println("ProductBean is null");

//home = 
(ProductHome)PortableRemoteObject.narrow(obj,ProductHome.class);

home.create("100","P5-350","350 MHZ Pentium",200);
home.create("101","P5-400","400 MHZ Pentium",300);
home.create("102","P5-450","450 MHZ Pentium",400);
home.create("103","SD-64","64MB SDRAM",50);
home.create("104","SD-128","128MB SDRAM",100);
home.create("105","SD-256","256MB SDRAM",200);

Iterator i = home.findByName("SD-64").iterator();
System.out.println("These products match the name SD-64:");
while(i.hasNext()){
Product prod = (Product)i.next();

System.out.println("prod.getDescription()"+prod.getDescription());
}
System.out.println("Finding all Products that cost $200");
i = home.findByBasePrice(200).iterator();
while(i.hasNext()){
Product prod = (Product)i.next();
System.out.println("prod.getDescription"+prod.getDescription());
}
}catch(Exception e){
e.printStackTrace();
}finally{
if(home != null){
System.out.println("Destroying products");
Iterator i = home.findAllProducts().iterator();
while(i.hasNext()){
try{
Product prod = (Product)i.next();
if(prod.getProductId().startsWith("123")){
prod.remove();
}
}catch(Exception e){
e.printStackTrace();
}
}
}
}
}
}
I don't know hot to modify(add) the my policy file,the new policy file must be 
which dir?how to add the VM argument use policy file?
Thank you!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973041
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Topic Watch error on Forum Portlet - Jboss portal 2.4 GA

2006-09-20 Thread mmontoni
Hello Peter,

Yes, I am aware of that MySQL 5 issue. I already fixed that. 

HummmI can try to delete the tables I created on the database and do 
another build and see if Hibernate then creates the tables for me...

I found a setup.dll and created the tables. Then my error changes to this one:



  | 14:47:29,569 ERROR [JDBCExceptionReporter] Cannot add or update a child 
row: a foreign key constraint fails (`geportaldb/jbp_forums_topics`, CONSTRAINT 
`FK6C1A04CAC1FFF134` FOREIGN KEY (`jbp_poster`) REFERENCES `jbp_forums_users` 
(`jbp_id`))
  | 14:47:29,584 ERROR [ForumsModuleImpl] Cannot create topic
  | org.hibernate.exception.ConstraintViolationException: could not insert: 
[org.jboss.portlet.forums.impl.TopicImpl]
  | at 
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
  | at org.hibernate.exception.JDBCExceptionHelper.convert
  |...
  | 

I Have a feeling, I did something wrong...

thanks

Mariella.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973040
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - multiple wars dont load

2006-09-20 Thread gforam
I have 2 ear files each containing a war file. 
the war use webwork so there is a configuration file xwork.xml

each war has a diff context root.

now when i try to access one war file, all its screens load fine.

however, when i try to access the other war file, the config file x.work.xml 
does not load.

then if i restart the server and access the screens from second war file, the 
screens run fine but the config of the first war does not load.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973039
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Topic Watch error on Forum Portlet - Jboss portal 2.4 GA

2006-09-20 Thread PeterJ
I don't think that the the missing setup.sql file is a problem.  I am running 
JBoss AS 4.0.4GA, Portal 2.4+ (from SVN on Sept18) and MySQL 5.0 and tried the 
steps you outlined and they worked fine (no error).  Since the forums use 
Hibernate, it is no longer necessary to pre-load the database tables.  When i 
just now started a clean install I saw messages like this on the console which 
tells me that Hibernate created the missing tables:

 11:20:27,180 WARN  [JDBCExceptionReporter] SQL Error: 1146, SQLState: 42S02
11:20:27,180 ERROR [JDBCExceptionReporter] Table 
'portal24.jbp_forums_forumswatch' doesn't exist

Unfortunately, all of this doesn't help you solve your problem.

I assume you are aware of this issue with MySQL 5: 
http://wiki.jboss.org/wiki/Wiki.jsp?page=AvoidMySQL5DataTruncationErrors

If you have PostgreSQL installed you might try switching to that.  I have often 
found that certain builds of the Portal have quirky behavior on one database 
byt work on the other (though it tends to switch back and forth, it is never 
always the same database that works flawlessly, usually something to do with 
the database mapping).

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973038
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-09-20 Thread laszlo.fogas
Hi,

Could you take a look at this:

http://www.jboss.com/index.html?module=bb&op=viewtopic&t=90076

It' s related to jboss cache too, i think.

Thanks, Lazlo

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973036
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: JSF 1.2 RI escaping problems with inputText

2006-09-20 Thread chuckadams
Having tested this with several configurations on both jboss and glassfish, I'm 
reasonably sure this is either a 1.2RI bug or a facelets bug.  Since it doesn't 
appear in JSP pages, and given the problems facelets has had with HTML entities 
before, I'm inclined to blame facelets.  

I guess I'll be sticking with JSP, as I'm growing increasingly disillusioned 
with facelets.  Either way, not a Seam issue, but something that might bite 
some users nonetheless.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973035
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Question regarding context and mod_proxy

2006-09-20 Thread vannguyen0
I have two instances on JBoss (one instance for development test and the other 
one for QA).  They both contain the same war files... so they both have the 
same applications with the same context root.  They are running on different 
jk2 ports.

In my httpd.conf, I have this:

ProxyPass /app1 ajp://localhost:8009/app1
ProxyPass /app2 ajp://localhost:8009/app2

so when someone goes to http://www.mydomain.com/app1 or 
http://www.mydomain.com/app2 that works.

What I want to do is add:

ProxyPass /dev/app1 ajp://localhost:8010/app1
ProxyPass /dev/app2 ajp://localhost:8010/app2

so that when someone goest to http://www.mydomain.com/dev/app1, it goes to the 
second instance of JBoss.  

I have yet gotten this to work (or is it even possible??)

If not... any suggestions on how to go about this?


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973034
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Some Issues with clustering on JBoss 4.0.4 and EJB stub cach

2006-09-20 Thread ablevine1
I am currently usign the JBoss4.0.4 and the EJB3 release that is included with 
it.  I have been using this 
http://docs.jboss.org/jbossas/jboss4guide/r4/html/cluster.chapt.html as my 
basis for understanding how jboss clustering works, but I think my 
understanding of it may be wrong.  I am currently running with a cluster of two 
app servers on the same partition called app1 and app2. 

Here is my test:
1. My external client program connects to the cluster via HAJNDI(port 1100) and 
gets a client stub to a session bean by doing a lookup on an initial context.
2. It then makes some calls to the ejb using this stub and caches the stub in 
variable.
3. I see which of the app servers handled the request and shut it down but 
leave the other one running.
4. Now I use the stored stub on the client to make the same call to the cluster 
as before but it fails.

>From the clustering doc mentioned above, I was under the impression that step 
>4 should have worked and that the stubs handled failover.  Is this assumption 
>incorrect, or am I missing something?? 

any help with this would be greatly appreciated.



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973033
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Error deploying JSP in a WAR file

2006-09-20 Thread PeterJ
As far as I know, this problem with 'packageless classes' is the only issue 
with war file deployment in JBoss.  But then, you should not be using 
packageless classes anyway.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973032
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


  1   2   3   >