Mark Newton

Ranch Hand
+ Follow
since Jan 31, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mark Newton

I've found the solution to this - just in case it helps anyone else, someone on the BEA forum suggested looking at the frontend settings, and referred to this page in the 9.1 docs:

http://edocs.bea.com/wls/docs92/webserv/setenv.html#wp220521

It turned out to be not quite that, but the 'Cluster Address' wasn't set - setting that to contain a list of the nodes in the cluster and restarting fixed the problem.
10 years ago
Hi all,

I've been banging my head against a brick wall for a few days on this, but I'm sure it must be something trivial. Hopefully someone here will have some advice...

In a nutshell, I'm working on an existing web application, running on Weblogic 8.1, in a clustered environment. I've added a new JWS web service which is largely standalone, but it uses controls from elsewhere in the application.

Locally, on my development box, it works perfectly - I can run it from Weblogic Workshop, and see the handy test form to run the web service, as well as seeing the WSDL by pointing my browser at http://localhost:7001/app/path/Service.jws?WSDL

However, I've now built the EAR for the whole application, and deployed it to our test environment (clustered - a mirror (hopefully!) of the production environment).

When I go to http://test-box:7002/app/path/Service.jws?WSDL I see a nasty-looking error page that looks like:

WebService ERROR

Error:
null

Stack Trace:
null

When I try the same URL without the ?WSDL on the end (so just http://test-box:7002/app/path/Service.jws), I see the nice Weblogic Web Service page, showing that it knows there's something there, but it has no content, just the 'Overview' tab, followed by:

Public Information
about Service.jws Web Service

and that's it - locally I see the same thing, but with options for viewing the WSDL and testing the service.

I'm confident that the URL is correct, because if I put rubbish in, I get a different error message.

Reading around, I've found lots of resources for 'how to deploy a web service to a production environment' for Weblogic 7, but much less for 8.1. I've seen references to jwsCompile, for example, which I think is specific to 7, because I can't find any references to it in the 8.1 docs, but perhaps that's wrong?

I'm pretty sure there's a configuration setting I'm missing, or a step in the deployment, but I'm stuck as to what it is!

Any advice gratefully received.

Edit: I should have mentioned that there are two other JWS's in the same app, both of which have the same symptoms as my new one (they've been there for a while, but are unused).

[ July 31, 2008: Message edited by: Mark Newton ]
[ July 31, 2008: Message edited by: Mark Newton ]
10 years ago
Bit of a long-shot, but I'm trying to help a consumer of our (axis-based) web service, who's using VB6. He seems to be OK with using the web service, but is falling down because we require WS-Security.

Anyone with any experience there???
11 years ago
Thanks Ashok, but sorry, I don't fully understand your response. Do you mean to just repeat the same functionality that was used for the original request? That's what we're trying to avoid really - if we've already generated the response, we want to just return it from the interceptor, without having to go any further.

Sorry if I mis-understood what you meant!
11 years ago
Thanks Ashok, but sorry, I don't fully understand your response. Do you mean to just repeat the same functionality that was used for the original request? That's what we're trying to avoid really - if we've already generated the response, we want to just return it from the interceptor, without having to go any further.

Sorry if I mis-understood what you meant!
11 years ago
Hi,

I'm pretty sure that this is a dumb question, but I've been Googling around for a while, and can't think what to search for...

Basically, I'm working on a Struts Interceptor, for handling multiple submits. I'm using the Synchronizer Token design pattern; saving a simple number on the client page, and in the session. Upon the submit I check that the numbers match, and, if so, increment the number in the session. Then I have a custom tag which gets that incremented number when it renders the next JSP page. The predictability of simply incrementing numbers has been considered, and is not a problem for us.

I think (hope) that's all sensible, and is well documented in various places talking about the Synchronizer Token pattern. What I'm stuck on is how to handle the case when the values don't match. I want to store the response that was sent back the first time, and, upon hitting the interceptor with a previous 'token', pull out that response and re-send it, without needing to go any further into my application. My question is simply: where and how do I store that response.

I'm pretty new to Servlets (and JEE in general), but have a few years of core Java, and JSE experience. Can I just keep a map somewhere with key=value of token=response? Is that safe for threads / multiple servers / etc, etc? If not - what's better?!
11 years ago
Hi,

I'm pretty sure that this is a dumb question, but I've been Googling around for a while, and can't think what to search for...

Basically, I'm working on a Struts Interceptor, for handling multiple submits. I'm using the Synchronizer Token design pattern; saving a simple number on the client page, and in the session. Upon the submit I check that the numbers match, and, if so, increment the number in the session. Then I have a custom tag which gets that incremented number when it renders the next JSP page. The predictability of simply incrementing numbers has been considered, and is not a problem for us.

I think (hope) that's all sensible, and is well documented in various places talking about the Synchronizer Token pattern. What I'm stuck on is how to handle the case when the values don't match. I want to store the response that was sent back the first time, and, upon hitting the interceptor with a previous 'token', pull out that response and re-send it, without needing to go any further into my application. My question is simply: where and how do I store that response.

I'm pretty new to Servlets (and JEE in general), but have a few years of core Java, and JSE experience. Can I just keep a map somewhere with key=value of token=response? Is that safe for threads / multiple servers / etc, etc? If not - what's better?!
11 years ago
My previous employer used Magnolia, and always had positive comments about it, although I never used it myself.

If you want to see an example of the output from it - my previous employer's site.
11 years ago
It seems like you have something specific in mind, so if you are able to tell us what you're looking for, you might well find that the assembled minds here can make suggestions / recommendations.
11 years ago
I'd disagree with Daesung Park here - using the 'break' keyword is not great programming practice.

Sure - it works, but it can make it harder to maintain your code, and for others to understand. I'd say as a beginner, it is a very bad habit to get into.

I've only had a cursory glance over your code, but I would just set ok = false when you have confirmed that you don't want to loop again.

Also, you should try to UseCodeTags, when you post code.
11 years ago

Originally posted by marc weber:
Now you just need to remove these Strings too.



...and to UseCodeTags - it's really not hard.
11 years ago
Just in case you're still not clear, to get the actual values of the constant fields (ERA, YEAR, etc), you need to follow the 'Constant Field Values' link (here), and you'll see that 14 corresponds to MILLISECOND, as Joanne pointed out.

The point being that you can use c.get(Calendar.MILLISECOND); which makes your code much more readable.
11 years ago
Sandeep, I think you need to read HowToAskQuestionsOnJavaRanch.

To get meaningful advice, you really need to post a lot more information than you've given us, for example, you're obviously running this code somehow, but I don't see a main method anywhere. I haven't tried, but I'm pretty sure that the code you've given us won't compile, so something is definitely missing between what you're seeing and what you're telling us that you're seeing.

Also, just saying that you remember it was a NullPointerException isn't really enough - you should have a stack trace that tells you exactly where the exception was thrown, among other things - all of that is useful information.
11 years ago
I don't really understand your question, but I think that this other topic is talking about something similar.
11 years ago