Err, that should be:
|
| WhatIWant
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868700#3868700
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868700
--
I have a question ... not sure if this is the right place, but it's the closest
I could find for users.
In the demand-supply-registry example, is:
WhatIWant
really required? It seems to work without it. Maybe I'm just getting lucky. Is
it ensuring that SimpleBea
I'm writing a small web app to modify/maintain roles.properties and eventually have
versions for database/ldap.
How do roles that aren't in "Roles" work? Are they even visible to the web tier? I'm
using this test JSP:
<% out.println(request.isUserInRole("Role3")); %>
<% out.println(request.isUs
Well, native stuff for Linux is going to include a .so or somesuch thing on the box.
You'll need to add its directory to your PATH.
Windows native uses a .dll, Linux native uses a .so. There's gotta be some docs on the
Oracle site on how to do it right.
View the original post :
http://www.jbos
I'd have two beans, one for writing, and one for reading. Even if it's the same Java,
the descriptors will be different. Your code will need to look up ReadCMP when it
reads, and WriteCMP when it writes.
We use Oracle with replication, which is nice, but it isn't cheap. I'm not sure if
there's
As you can see, he already has the necessary Oracle Java classes in his classpath:
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:265)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3843115#3843115
Reply to the post :
http://www.jboss.org/index.html
I haven't used OCI in a while, so this may be wrong, but if I remember correctly, you
need to add the directory that contains whatever.dll to your path.
I'm guessing you'll find a ocijdbc9.dll somewhere on your machine.
View the original post :
http://www.jboss.org/index.html?module=bb&op=view
I have some source code if you want it, but it's not fully tested. It was on our
production system for a short time until we figured out it was leaking connections or
something, and I haven't taken the time to debug it.
It's a JCA connector using Novell's Java library for LDAP.
It may be very c
Currently this can't be done. I'm working on it, but the development is going slower
than I thought it would, partly because I'm slow and partly because I have a real job.
If you want to write some custom code for yourself I can help walk you through it, but
I'm trying to get to a point where y
Just initally looking at it, it doesn't look like you're getting a transaction. What
JTA were you using with Tomcat? We're still on Jetty, so I'm not up on the latest
Tomcat news.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839321#3839321
Reply to the po
Set up PostgreSQL using the .xml in $JBOSS_HOME/docs/examples/jca.
Then point Hibernate to the PSQL data source. (Look up documentation on how to set up
Hibernate in JBoss. You'll find it on the Hibernate web site.)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopi
JCA uses the pooling mechanisms. If you implement a JCA 1.0 connector then you will
have pooling like you do on datasources.
Datasource is just a special case of a JCA connector.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838726#3838726
Reply to the post
What are you used to doing to run servlets? You're going to need to have the classes
in the classpath (say classes or jarred in WEB-INF/lib).
Then you're going to need to add it to web.xml as a servlet and servlet-mapping.
What servlet container are you used to using? If you're using an older on
Look into using "depends" in your jboss-service.xml. Your SAR is dependent on
something that isn't fully started when JBoss is first started.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838389#3838389
Reply to the post :
http://www.jboss.org/index.html?mo
Weird. That looks fine. Post your web.xml too, I guess.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836718#3836718
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836718
Well, if you can, post the content of jboss-web.xml. If you comment the
security-domain out, the web.xml won't be tied to a JBoss security domain, which
should allow you to hit it w/o logging in.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836714#3836714
JBOSS_HOME/server/default/deploy/jmx-console.war/WEB-INF
Let me know if that isn't there. I'm on jb3.2.1 at the moment.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836712#3836712
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mod
That is a DTD file. That's not an xml file. Don't touch those...
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836710#3836710
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836710
jmx-console/WEB-INF/jboss-web.xml
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836708#3836708
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836708
---
This SF.
Look in the jboss-web.xml file. There should be a security-domain or somethign like
that. Comment it out.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836705#3836705
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836
You forgot one:
then they troll your own forums.
Then you win.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836703#3836703
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836703
I think this sort of thing is going to be more prevalent in the very near future,
Jeremy. I have very similar needs (except JCA instead of Tomcat). I think people's use
of lightweight containers for iterative development/unit testing are opening people's
eyes to using JBoss in the same sort of w
I'm not sure what the official answer is, but in the past we've had to add
classes12.jar/zip to the run.sh script so that it's on the system classpath.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836257#3836257
Reply to the post :
http://www.jboss.org/ind
Okay I see the wiki now. Very new!
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836150#3836150
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836150
---
This SF.N
Adrian said:
I'm currently working on that very thing, the roadmap is:
1) Document what we have.
2) Release it as a standalone project
3) Make improvements
4) Repeat
The improvements include removing the jmx requirement so the component bus can
be pluggable a implementation, e.g. an aop/ioc cont
Okay, nevermind. I think I figured out what I was doing wrong. For one, I was using
jdk1.5 instead of 1.4, which was mucking all sorts of things up, and the log4j setup
makes more sense now.
Steve
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835844#3835844
So I'm trying to experiment with starting up JBoss barebones and adding services
programmatically inside a JUnit test. But after the server starts up, my System.outs
aren't printed in the console. Here is my startup code:
public void setUp() throws Exception {
|
| String
I'm trying to do a small unit test outside of the JBoss server and create my
ConnectionFactory manually.
ManagedConnectionFactory mcf = (ManagedConnectionFactory) new
WrappedSessionManagedSessionFactory();
| ConnectionManager manager = new NoTxConnectionManager();
| W
www.hibernate.org. Seriously. We just started using Hibernate and the documentation is
very good. Every time I've been stuck for a little while it was because there was too
much documentation, not too little.
Look for setting up a JMX MBean in JBoss. This will bind a hibernate factory to JNDI
a
Why is it using a different address 10.0.0.0? Have you tried executing on the same
machine as the jboss server? It looks like some sort of network routing thing is not
allowing you to find 10.0.0.0.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835069#383506
Can you not override the content type in the servlet API? Or are you having JSPs
generate WML? I think there's a JSP tag you can use to set the content type.
It's probably just defaulting, but you *should* be able to override it. I haven't
tested it.
View the original post :
http://www.jboss.o
Maybe I'm not seeing the problem but couldn't you have mulitiple InitialContexts, one
for each server?
Steve
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834538#3834538
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=
Make sure you secure your servlet and that you are logging in. If your servlet isn't
secured, a null Subject is passed on to the EJB layer.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3832227#3832227
Reply to the post :
http://www.jboss.org/index.html?modu
If you're new to JBoss and aren't currently using it, go with the latest (3.2.3). The
architecture is much better, JMX is worth it just by itself.
The documentation is better, no matter what people say :)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3832165#
The LoginModule RoleSets correspond to one user. So there's not a race condition.
I'm currently using Novell LDAP libs with a custom LoginModule, that extends the
LdapLoginModule.
Let me know if you have any issues. Our LDAP schema is custom, so it may not be
exactly what you use, but the techn
It says there's an authentication exception. Which probably means you have the wrong
password? Make sure you're sending in the right user/name to the ClientLogin when you
get your connection to JBoss.
If you want, go ahead and post a bit of the client code where you're calling your EJB.
View th
Do you have the jsp/servlets and the ejb secured with a role? I saw a similar error
recently when I forgot to log my user in.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831925#3831925
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=pos
I think you could create an MBean to keep a list of each user and how many tries
they've done.
Then increment the amount on a login attempt. Check the MBean each time the user tries
to log in. Keep the timestamp of the initial and/or final try and compare.
Set the MBean on a timer and purge whe
I'm trying to configure an MBeanServerFactory, creating a new ServerImpl and setting
the properties, then calling init and start. Init goes fine, but on start I get:
ClassNotFoundException: No ClassLoaders found for: org.jboss.naming.NamingService
Is there a jar I'm missing? I think I have the b
Then you probably need to add another MyHelloWorld/. The url-pattern goes AFTER any
web-app name you have.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831660#3831660
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3
Your url, is going to be after the MyHelloWorld.war
so you'll need to add /servlet/MyHelloWorld/?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831656#3831656
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831656
--
Also, you can look in http://server:port/jmx-console, then hit the JNDI link near the
top. Scroll down, hit "list" method.
This will show you everything that is bound to JNDI. Odds are it's not even there yet.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=383
Are there any lines in the log referring to your MDB? You don't have to post the whole
thing, but you should see something like "picking up blah.jar, deploying blah, binding
blah to jndi"
Any exception, even a classpath issue could be keeping you from binding to JNDI.
View the original post :
What does the SAXParseException say?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831414#3831414
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831414
---
This SF.
Check the build subdirectory of the source tree you have. There is a .sh for Unix and
.bat for Windows. Execute that. That will get you started.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831396#3831396
Reply to the post :
http://www.jboss.org/index.html
What happens if you try:
ctx.bind("test","test");
ctx.bind("test/xyz", "xyz");
I'm honestly not sure if JNDI supports adding leaves with non-existing parents. In
theory, it could add it, but I know an OpenLDAP store won't let you do it.
Steve
View the original post :
http://www.jboss.org/inde
Did it only happen once? Looks like Oracle disconnected you, at least temporarily.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831314#3831314
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831314
--
Also, if you want a non-null Principal from the web server, you'll need to secure your
servlet/jsp. If you don't have it secured, it will come back as null, if I remember
correctly. That's at least the way it works in Jetty, so it's probably pretty similar.
If you secure that, you can skip all o
Standard way. J2EE defined, similar to security in servlet context.
return context.getCallerPrincipal().getName();
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Security5.html
This is categorized as programmatic security.
View the original post :
http://www.jboss.org/index.html?module=bb&op=vi
Yeah I'm not sure on that one. What JVM are you using?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831263#3831263
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831263
--
Thanks for the info, Jon. That makes a lot of sense.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831258#3831258
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831258
Docs
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831224#3831224
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831224
---
This SF.Net email is sponsored by: IBM L
DefaultDS is what it will probably be under. Look for the hsqldb-ds.xml in the deploy
directory. You can double-check by looking in the JNDI tree. Compare what's in the
hsqldb-ds.xml for to what you find in the JNDI tree.
If you don't have hsqldb-ds.xml, then you have other problems :)
View t
What is the signature of the remote method you're calling? Are you just passing
String? Is there anything else?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831212#3831212
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&
Have you checked the Release Notes for this project on the new versions? There may be
a difference there. I'll check it and see if I find anything. It may be somewhere
else, but I know it's on the SourceForge site.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&
Are you using Tomcat outside of JBoss, or with the Tomcat/JBoss bundle?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831204#3831204
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831204
-
I'd avoid a singleton DAO. You will have to synchronize things, which will slow you
down if thread A is already in your singleton.
In general, avoid dealing with your own threads inside of the container. The whole
point of J2EE is to let the container-developers figure it out for you.
I persona
Okay thanks. Yeah, I'm looking into seeing how many connectors I can delete from our
deploy directory.
It makes sense, since the only MBean with an interceptor is an XMBean.
Steve
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828657#3828657
Reply to the po
How exactly do you secure MBeans? Do I need to register it with a specific security
MBean? Looking at the security MBeans in jmx-console, nothing immediately jumps out.
It doesn't appear to be documented in the for-pay docs.
In the meantime I'll check out the Jetty MBean source.
Steve
View the
MBeanServer server = (MBeanServer) MBeanServerFactory.findMBeanServer(null).get(0);
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828494#3828494
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828494
-
Is there a way to get the MBeanServer w/o using RMI/JNDI? If I'm in the container, is
there a faster way to get the MBeanServer, or should I cache it? Or is the performance
hit negligible?
Steve
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828424#3828424
I'm writing an MBean, and I'm curious as to what the naming scheme generally follows.
Sometimes I see "service=" sometimes I see "Type=,Name=".
Thanks,
Steve
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828389#3828389
Reply to the post :
http://www.jboss.
Make sure your "META-INF" is in caps on linux. Windows doesn't care. So JBoss will
deploy your jar as a regular non-EJB jar, since it won't find your META-INF directory.
Steve
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827748#3827748";>View
the original post
http://www.jboss.org
63 matches
Mail list logo