Tobia Scapin

Greenhorn
+ Follow
since Mar 19, 2010
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tobia Scapin

Dear all,
I'm working with Apache Tomcat/8.0.14 on Ubuntu server 15.04.
I have a Spring application deployed as ROOT, when I start tomcat service I saw all logs and the startup and context initializer seems to work.
But... it doesn't reply to HTTP request for many (15-20) minutes, after this time, it starts to reply. I don't see errors in the catalina log.

I checked with netstat and the connection pool is opened, the HTTP connections are not refused but they reach the timeout time.

What should I check? The same application in a windows tomcat8 enviroment works without problem.
7 years ago
Hi everybody,
I'm looking for a LLMNR (Link-Local Multicast Name Resolution) Responder library to reply to local-dns queries from my java application.
I read about jmDns as a mDns library but I cannot understand if it can be suitable form LLMNR queries.

My goal is to distribute a ip address when a local client looking for a particular hostname.

Thank you!
I get the printerservice with a loop on this array (checking the service name):


And i print with this:
13 years ago
Hello everyone,
I have to write a simple applet to print a byte array to a thermal printer (raw textual stream, it is a ESCPOS printer).
I can not understand how to open a RAW stream to the printer, i tried to create a SimpleDoc object and send it to the PrintService but i can not find the correct flavor. Maybe a need a StreamInput object to write, but how to get it from my printer?

Thanks.
13 years ago
Maybe it did not well explain...
I use this tag: <html:form action="/MyAction"> and /MyAction refer to an action in the struts config.
In generated html this became: <form action="/app1/MyAction" > so struts automatically (correctly) prepend to action the context-root of my app.
There is no way to use a relativePath or to manually set the context-path (/myear/app1 instead of /app1)?

14 years ago
Thanks for your answer.
It can be, but i must change every page... I hope there is some configuration... or no?

This is a big application that before was deployed in a domaim root (http://mydomain/app1) so everything worked correctly... but now it moves to a sub-folder of the domain, that it is still in a virtualserver root (server side the context root is corret), but i need to map the path action in html with the context-root (already done by struts) "app1" but prepending "myear", exists some configuration attribute?

Thanks
14 years ago
Hello i'm new of struts and i have a strange problem, i hope you can help me.

I have an EAR application with this context:

http://mydomain/myear/

In a weblogic server. I installed inside two indipendent WAR application

war1 with "app1" context root (set in application.xml)
war2 with "app2" context root.

I have to sat that i can not modify any weblogic configuration, i have a single server in that domain with a fixed root (mydomain/myear)
The application server answer correctly here:


http://mydomain/myear/app1 -> to the war1
http://mydomain/myear/app2 -> to the war2

My trouble is when struts and his tiles create the html path in the views, becuse it thinks that the root is "app1" and not "myear/app1".
Infact the homepage correctly started but inside the html:form tag had this action path: "/app1/MyAction" and obviously it will send to http://mydomain/app1/MyAction out of my application.
How can i setup struts to add "myear/" before the context root when it makes the html paths?

Thank you.



14 years ago