Krem Reid

+ Follow
since Sep 07, 2009
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Krem Reid

and as soon as I finally post an question I work out the answer

I don't know if this is the best way to do it but it works

Wish I had of posted a question 3 days ago


I have an OSGi application that has a GWT web interface.

One of the bundles is a GWT bundle that needs to be compiled before the application is launched.

Another bundle is an embedded Jetty application server. It starts the server and points to the compiled WAR of the GWT bundle

This works perfect and my GWT is available and it is able to call servlets.

The problem is these Servlets are unable to get a reference to the OSGi container. From what I have read in the init method you can get a reference to a ServiceTracker

I have no idea where this osgi-bundlecontext is meant to be set in Jetty.

Any ideas?


You would think this is a problem that others have run into before but I can't seem to find anything on the net.

I'm starting to think making the users login after registration is just fine!
11 years ago
Even when changing the URL pattern to <url-pattern>/*</url-pattern>

The Realm Security still kicks in before the Filter

11 years ago
I'm a little confused can you help me straighten this out.

I'm using Struts2

I have a jsp that users fill out to register. This goes to my action class which registers the user.
Then the user is forwarded to a "customer action" which has a security constraint

I have the filter put on all /customers

The security constraint is being throw up before the Filter is activated.

I'm using Realm based security.

Where am I going wrong?

11 years ago
How do you get the filter to be called before the Realm security kicks in?

The filter is called but only after the user has authenticated

11 years ago
I'm not sure if this is the write place to post but lets seem

I have a struts2 application which is using Tomcat Realm Security model.

Normal operations work fine and security is great. The one thing I can't work out is how to automatically log a user in as they register.

I have an action called registration.action - once completed it forwards to another action.
In between this action the Realm Security pops up login.jsp
It seems it doesn't have access to the properties set in the Registration.Action.

Any idea how to pass the parameters along so I can automatically log in the user?

11 years ago
Thanks for the update mate

11 years ago
Excellent Cyrille.
Really appreciate the update

11 years ago
haha didn't notice the date. Just found it with google.
Wish people would post soloutions when they find them

11 years ago
Did you work out the problem?
11 years ago
I seem to have found a very simple solution

<meta http-equiv="Cache-Control" content="no-store,no-cache,must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">

Thanks to Greg

11 years ago

I know how to make a new topic but no point if these guys already worked out a solution.
Which I guess they have... or given up

Merry Christmas
11 years ago
Would love to just blow IE out of the water! but....

It is a cookie problem doing this

Using Internet Explorer? Click Tools -> Internet Options, then click on the Privacy tab, then the Advanced button.
Check 'Override automatic cookie handling', then make sure first party and third party cookies are set to accept, and check 'Always allow session cookies'.

Solves the problem but I need to find a way around this still

12 years ago
This is bugging me to no end!

I have a tomcat hosted web app using realm security
Firefox works prefect but when I log in with IE I get the below error.

HTTP Status 408 - The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser

Nothing I've found on the net seems to be a browser specific problem.

Any ideas where to look?



12 years ago