« first day (5 days earlier)      last day (4942 days later) » 

8:54 AM
Hey
I'm trying to build this open-source project using maven.... when I run mvn package it gives me some errors as if it didn't install the dependencies that the project provides. What should I do?
 
9:10 AM
scjp6 syllabus pls!!!
 
9:51 AM
@LucaMatteis can you show maven's output ?
 
10:11 AM
I was able to fix this
but now that my MVN web project is compiled
how do I make my tomcat server use it?
@Jawher
 
10:39 AM
@LucaMatteis. You might want to try Maven Tomcat plugin
 
@TahirAkhtar, I'm just trying to make tomcat run my code
 
@LucaMatteis Try deploying an in-place WAR directory with Tomcat MVN plugin. mojo.codehaus.org/tomcat-maven-plugin/deployment.html#Deploying an in-place WAR directory
 
i dont want plugins
i just want to understand how tomcat works
and why i'm getting The requested resource () is not available.
there's like 0 error output
 
@LucaMatteis you can either ask maven to make a war file out of your project and then manually copy that war to tomcat
or you can let the MVN Tomcat plugin automate this stuff for you
 
ok
@TahirAkhtar, how do i generate the war and where do i put it in tomcat?
 
@TahirAkhtar, so the war that i generates includes all the dependencies?
 
11:17 AM
@LucaMatteis yes
 
I really hope we can start to use maven at work soon
Lucene & Solr need SOOO many jars!
 
11:39 AM
but I still don't get why Tomcat doesn't give me a better error
can't it just tell me what Resource is missing?
 
Are you seeing an exception trace in the tomcat console or logs?
 
@TahirAkhtar, the logs just tell me about the 404 error
not what's causing it
 
11:59 AM
Anyone find that they program much better if they are listening to music?
particularly something with a fast bear?
 
 
2 hours later…
2:19 PM
I'm reading a book on working with web services in Java. It uses JAX-WS, which comes with core Java. I hear that many people use Apache Axis for Java web services. What is the difference between JAX-WS and Axis?
 
how do I change the document root for my tomcat?
 
I think that there might be a file in the conf directory that allows you to change this.
 
does it have to be absolute?
 
I don't know
I would think not.
 
it's really annoying
i can't get it
i have /webapps/myapp
but I would like to access it such as mysite.com
instead of mysite.com/myapp
then at times tomcat doesn't load properly
it's a pain
 
2:31 PM
In server.xml, maybe you could edit the Host tag.
 
i did that!
 
What causes Tomcat to not load properly?
 
it just loads the ROOT instead
 
Maybe there is something wrong with your application that causes it to fail on startup.
You can look in the logs for any thrown exceptions.
 
this is weird!
the css and jpg data is loaded when i access it such as mysite.com/myapp
and when i click on the css link (/css/style.css)
it loads fine!
 
2:38 PM
So mysite.com/css/style.css works?
 
yes :|
but mysite.com/index.jsp loads the jsp in ROOT
 
Why don't you just put your web application in ROOT?
It might be a security risk to have the default Tomcat website running anyway.
 
3:04 PM
@mangst, I want to overwrite it so that when i go to mysite.com/ it will load the stuff inside webapps/myapp
0
Q: Tomcat - making a project folder the web root

Luca MatteisI have this folder under Tomcat webapps/mysite which is where all my JSPs and other things are located. To access this folder I go to http://blah.com/mysite and it works just fine. However (because of stylesheets and images statically connected to the root /) I have to make it so that when I go t...

 
 
3 hours later…
6:25 PM
i am writing a simple client server program in java using Socket class, in server program how do I wait for the connection
 
7:12 PM
Hey java chaps - qq: What collection should I be using for HashMap-esque functionality (get/put by identity), but where order is also important (get,put by index)?
 
TreeMap will automatically keep the keys in sorted order.
So when you iterator over all keys, it will iterate over them in sorted order.
LinkedHashMap will maintain the keys in insertion order.
 
7:54 PM
@MichaelAngstadt Thanks!
 
Sure, no problem!
I use TreeMap a lot when I want to display something in sorted order.
 

« first day (5 days earlier)      last day (4942 days later) »