- 博客(11)
- 资源 (6)
- 收藏
- 关注
转载 When start tomcat, got the error: Resource /WEB-INF/classes not found
javax.naming.NameNotFoundException: Resource /WEB-INF/classes not found at org.apache.naming.resources.BaseDirContext.listBindings(BaseDirContext.java:733) at org.apache.naming.resources.ProxyDirCon
2013-01-30 00:09:36 2472
转载 _blank, _self, _parent, _top, _new
_blank opens a new windows _self opens within the same window _parent is used with a frame, it will open within the inner frame _top is also used with a frame, it will open using the entire w
2013-01-24 22:39:12 2872
原创 JAXB annotations
Here is an example I need to deal with, it looks complicated. With the help of JAXB, it's really easy to get all values from the xml file. For example: article.xml world World A co
2013-01-22 06:29:59 899
原创 Jersey make REST call
When we make a rest call and the response is XML or JSON, it would be better to use plugins other than from scratch. I chose to use Jersey and JAXB. It's very convenient to code. 1. We need to add je
2013-01-22 06:15:51 978
原创 Read properties file in a jar
When I set the path of properties file, it's OK when we run in IDE. When I packed it in a jar and tried to run that, it won't pass. It seems strange because the path of the properties will be changed
2013-01-22 01:56:05 683
原创 Java Send email
Sometimes we want to send an email out when catch an exception. We need to use javax.mail jar to help us to do that. Actually we have several ways to do that. Here is to introduce the easiest way with
2013-01-22 01:37:49 1812 1
原创 log4j create a new log file every day
After I joined in new project, I realized log is very important. We can log in console or file. Here is to introduce a way to log in file without overwrite. It's really easy to use log4j. # Define
2013-01-22 01:24:31 1218
原创 Java Iterate directory to find files and edit
After mannually modified about 100 pages, I'm tired of doing that. So it's better to write a small program to deal with those thing. 1. We need to find those files which we need to modify in differen
2013-01-18 01:13:50 653
原创 Make IDE(Eclipse) not overwrite our configured server setting
This is because of the default setting of IDE. By default, it overwrites every thing we configured when we restart the server. Go to Windows->Preferences->Server, and uncheck the selectbox.
2013-01-12 04:21:18 592
转载 Spring global exception handling with standalone app
I have a standalone app, I need to catch all exceptions. There's one case that when I disconnect the internet, I couldn't connect the database, and database operations are in another component. It'll
2013-01-10 05:12:46 1504 1
转载 java.lang.String cannot be resolved, Indirectly referenced from required .class file
Here is the solution. It's similar to the link I found. http://dev-answers.blogspot.com/2009/06/eclipse-build-errors-javalangobject.html Go to properties of project with the build error (right c
2013-01-08 00:37:27 1626
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人