Ole Hornischer

Greenhorn
+ Follow
since Nov 14, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ole Hornischer

Hi!
Is it possible to add schema restrictions to parameters via JAX-WS annotations?

Example:
I have a method

The parameter streetname should always be longer then 3 characters, to avoid gigantic result lists. I would like this to be a restriction in the schema like

How can I make sure that the generated WSDL file includes such a restriction on the parameter?

Cheers
Ole
14 years ago
I figured it out by now. Various small things, amongst which I checked the wrong address in my browser
14 years ago
Hi everybody!
I am having troubles deploying my webservice (code snippets below). I tried the contract-first approach and wrote my wsdl. Then I let CXF generate sources through maven. Then I went through the config files and tried to understand how it all works together and why it doesn't. Because when I publish the project on Tomcat through eclipse the Tomcat starts normally, but has only very little output (I have a feeling the webservice is not recognized properly) and neither through http://localhost:8080/Webservice/services/Webservice?wsdl nor through the tool seapUI i get a connection to the service. How can I debug the deployment process and see where it goes wrong. Or can someone here see in my files what is crooked?
Do you need any details from the java classes? If so which ones?

Thanks for the help!
Ole

wsdl


beans.xml


web.xml


content of the war file:
file.war
|-META-INF
|---MANIFEST
|---maven
|----- ...
|-WEB-INF
|---classes
|-----...
|---lib
|-----...
|---beans.xml
|---web.xml
|-wsdl
|---MassPrintingInternalInterface.wsdl
|---MassPrintingExternalInterface.wsdl
14 years ago
That was my first idea as well, but I recompiled both applications again with current sources and made sure that there is only one occurence of the class file in the classpath of both applications (which are by now merged to one exploded ear).

I did not know about Seam BI, so I will look into that, I used JNDI because I knew how to. Is there some kind of incompatibility between Seam and JNDI?
The Stacktrace is:



And ClientLister is:

Hey everyone!
I have a weird problem. I get ClassCastExceptions of the following kind while using EJB stateless session beans from my seam project:

Caused by javax.el.ELException with message: "java.lang.ClassCastException: com.tza.dto.RegisteredClientDTO cannot be cast to com.tza.dto.RegisteredClientDTO"

The history: I have an application, that used to be deployed as an ear file in my app server and served to a set of java clients. All worked fine. Now I wanted to add a web component to the application providing visualisation for some data retrieved from the sever ear. So at first I created a seam war file accessing stateless session beans on the server ear to retrieve the data. But that wouldn't work. I got said ClassCastExceptions.
I then packaged the old application and the new web app into one big ear file. The data was still accessed via SSBs and I have the same problem.

Somewhere I read that this can be caused by duplicate class files in the classpath, so i cleaned up the cp and now do not have any doubles left - same problem.

The example exception I get after trying to access objects from a List<RegisteredClientDTO> I retrieved via an EJB from the server app to my web app.

Any ideas what could cause this behaviour?

--Ole
Hello everybody!
I recently started working with JBoss Seam and am amazed by the potential of this framework. However there is one issue I could not tackle so far. It is page navigation. I already read through quite some tutorials and examples and am convinced that my settings are correct, however when I run my website i do not get redirected.

(Code follows)
If I enter a search term on my home.xhtml and click the search button Seam does call the search function, however after it successfully finished (and found the correct amount of list items) I end up on the home.xhtml again, as if nothing happened, insted of being redirected to search_result.xhtml. This is only one example, redirects on other pages, like registration, do not work either.

Can anyone see what I am doing wrong?
Any help is greatly appreciated.
Cheers,
Ole

home.page.xml


ItemFinderBean.java


Snippet from home.xhtml
15 years ago
Sorry for resurrecting a zombie.

I pretty much was just wondering about how Java does calculate the time.
The server is on a completely wrong timezone, so it is technically a problem for the admin, but I was surprised about the unexpected difference in "Europe/Berlin" and "Europe/Paris" on our JBoss server.

I did google a bit more, and did read about the tzmapping file and how different JVMs map the system tz to Java tz.
And HPUX JVM is significantly different to Windows JVM as I could see.

Anyhow, in the end it does not matter, as I mentioned above, it was plain curiosity.

--Ole
15 years ago
Hi everyone!
I just encountered an odd phenomenon yesterday and am wondering now, whether it is a timezone related effect.

Our clients server was set to timezone Europe/Berlin and was always off by about 90-100 sec (can't recall exactly how much, location is Krefeld in Germany). Once we switched the server to run on timezone Europe/Paris the times were correct (to a few seconds). I always thought Java also handles timezones by the hours and not by the longitude. So are those seconds difference due to the different timezones (although Paris and Berlin should be on the same time) or is the effect caused by sth else and just happens to be fixed with the timezone for Paris?

Regards,
Ole
15 years ago

Ulf Dittmer wrote:... but I don't think you can disable the dialog asking the user to approve unknown certificates.



In the Windows Control Panel in the Java Menu one can (Tab "Advanced" --> "Security") disable the user to give rights to signed contents or to give rights to non trusted contents (hard to translate from German). I figured that would be the option to disable the user to accept new certificates.

Pat Farrell wrote: Can the users run another browser?

Can they install another JRE?



I suppose it should be possible for the admins to restrict those options (simply install only one browser and disable the user to install any applications)

--Ole
16 years ago
Hey!
Does noone know the answer? A "it's not possible" would also help.
-- Ole
16 years ago
Hey everybody!
Does anyone know whether it is possible to restrict Java (1.6) to use only its own certificate storage?

My problem is the following:
Our client wants to restrict the use of webstart in his company. In order to do so, he would like to define a certain set of trusted certificates inthe Java certificate storage and then disable the user to trust new certificates. Like this the user can only use the webstart applications the customer approved, all others are only possible to be used in a sandbox.

But as far as I know Java (1.5+) also reads the system certificate storage, which is a problem, since that contains a lot more certificates (at my customers).

Is is possible to achieve this goal?

Cheers,
Ole
16 years ago
commons logging works great, configuration was very easy, once i renamed my properties file to the default log4j.properties.
Hi!
I used the TZALogger class to encapsulate the log4j and let it be configured in a central place.
But I now learned about the common-logging library, which apparently does exactly this. So I will try to switch to that and hope my problems will be solved.
(I worked a bit more on that issue on friday and the configuration showed very strange behaviour: When configuring, the target log files where created, but logs in the same class would just not log. Logging from another class (with the same configuration) worked just fine. So I am guessing the error was deeper and am hoping that switching to common-logging will solve the issue(s))
--Thelonius
I create it via log4j. the properties file is located in the signed jar and being loaded from there. That apparently works, because the application does create the log files. It simply does not write to them.