Francesco Bellini

Ranch Hand
+ Follow
since Nov 01, 2012
Francesco likes ...
Oracle Spring Linux
Merit badge: grant badges
For More
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
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Francesco Bellini

Hello all,

I have successfully followed the recommendations described here to create a Web Service using spring boot.
It's very easy but one doubt remained to me: in this example there is just one XSD file containing both Request and Response specifications.
But, how can we manage the case we have separated XSD files, i.e. one Request.xsd and one Response.xsd?
The default DefaultWsdl11Definition class allows to call a method "setSchemaCollection(XsdSchemaCollection schemaCollection)" but I don't understand how to use this one (steps to be performed before calling it)

Does someone know how to do in the case of multiple xsd files?
6 years ago
Hello,

thanks for replying.
I have seen the post you mentioned but unfortunately I still get that exception even after adding such dependency.
I have got such jar from the SQL Developer folder directly.
Hello,

I encountered the following error at runtime on my java application that is calling a Oracle Stored Procedure via CallableStatement.



I have found lots of posts/threads where it is recommended to put ojdbc6 in the classpath but in my case it was already there.
I really do not understand why this class is needed and from who.

I use the following ojdbc version: ojdbc6-11.2.0.3 directly downloaded via maven.
I also had to add the following dependency because it was needed at runtime also: xdb6-12.1.0.1.

Onestly I don't know how to solve this now, since I tried to do many attempts.
I thought it was due to the ojdbc version but I noticed also ojdbc14 doesn't have that class in it.

Could you help me to sort it out please?
Hello,

I'm trying to configure Tomcat for SSL using the guide I've found here, and it seems pretty easy to do but even if I am able to run the sample java code provided, I still can't access the http://localhost:8443 page from the browser.
I also tried to import the client-public.cer certificate file created within the procedure, but unable to do that on any browser.

Can somebody help me to configure Tomcat 7 in the way that I can use clientAuth="true"?

Thanks!
Thanks a lot!

I've just made an adjustment at row 14, removing the @.
Now I think it's perfect!


Many thanks!
Hi!

how can I modify the xsl if the code contains some parameter?

I mean something like this:


That should be translated to
Thanks a lot master!

Well, I totally agree with you.
I had the suspect there was some way to avoid writing all those lines (approximately 1000 in my case), but it was my first xsl. So thanks a lot for that.

Anyway, I am going to study your perfect solution.

Thanks!
Thanks to Stephan suggestions I've finally found the solution.
Just in case this could help someone with my same problem, I want to post the XSL I've used for the purpose:



Notice that I renamed the field 2222222222 with AB1 and so on.
So this is the sample input:


And this is the expected result:
Thanks a lot Stephan, this is the first time for me with XSLT and that is the information I was looking for.
Kind Regards
Hi!

I'm trying to transform a XML from a format to another one.
I already have the java code to create the Java Object, given a XML input text, even with the help of XSD (both for validation and Jaxb class generation).
This is the input format:



I would like to have the following XML as output:


Before doing something wrong, I would like to know what is the best practice to achieve this.
This should be done for every xml field in the XML that may have many other fields at different levels.


Thanks in advance
After playing a little bit within the web.xml configuration and removing logback-classic, I figured out how to get the logger working:

8 years ago
Yes, of course:

here's the log file:


EDIT: this is what I see after removing logback-classic from the pom.xml file.
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.

This is a spring-mvc web application by the way.
8 years ago
Thanks a lot Rob,

I've added slf4j-log4j12-1.7.12 as dependency, and upgraded slf4j-api to 1.7.12 as well.
Nothing has changed yet, but this is what I can see in the Console when the webapp starts:


SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/apache-tomcat-7.0.34/wtpwebapps/webapp-test/WEB-INF/lib/logback-classic-1.0.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file://apache-tomcat-7.0.34/wtpwebapps/webapp-test/WEB-INF/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

Of course, I've already performed a search on google about it, but after many attempts, I wasn't able to solve.
Removing logback-classic from my pom.xml causes no logging at all both in systemout and the log file configured.
8 years ago
Hello,

I'm experiencing some issue with the logger slf4j which is being used into sever classes into my project.
Even if I configured the logger in order to write into a specific file, it prints into SystemOut.log.

I am pretty sure it could be a jar conflict, but I cannot figure out what jar can be removed and what jar has to stay there.

Here's the list of the (logging) jars I am using in the project:
slf4j-api-1.6.4.jar
log4j-1.2.15.jar
commons-logging-1.2.jar
logback-classic-1.0.0.jar


Even if I change the appender-ref, only to go to a specific appender (RollingFileAppender - to another file), it doesn't work.

Can somebody help me to debug such a mess please?
8 years ago
Thank you very much.
The offline option does the trick.
9 years ago