To run maven without running the tests:
mvn install -Dmaven.test.skip=true
Agile Development Practices suggest developers keep a solutions log. I think we can all benefit from a combined solutions log. As I encounter errors or problems I intend to record the solutions on this blog. Please feel to leave your comments, solutions and email me with your errors and solutions.
Apr 30, 2009
Apr 20, 2009
Eclipse "cannot be resolved to a type" error
Error: I was getting several "cannot be resolved to a type" error messages and red X's on the packages.
Solution: Right click on the project in the package explorer and select Refresh.
Solution: Right click on the project in the package explorer and select Refresh.
Apr 17, 2009
Eclipse failed during execution error message
Error: failed during execution of mojo: org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
Solution: Modify eclipse.ini file (found in the eclipse installation directory) -vm property with the same java jdk vm used for maven.
Example:
-vm
C:\Program Files\Java\jdk1.5.0_18\jre\bin\client\jvm.dll
Reference: http://archive.hausfoundation.org/lists/dev@m2eclipse.codehaus.org/msg/13206683.1196911797792.JavaMail.haus-jira@codehaus01.managed.contegix.com
Solution: Modify eclipse.ini file (found in the eclipse installation directory) -vm property with the same java jdk vm used for maven.
Example:
-vm
C:\Program Files\Java\jdk1.5.0_18\jre\bin\client\jvm.dll
Reference: http://archive.hausfoundation.org/lists/dev@m2eclipse.codehaus.org/msg/13206683.1196911797792.JavaMail.haus-jira@codehaus01.managed.contegix.com
Apr 14, 2009
Error "Invalid thread access" during Maven import
When trying to import a maven project using Eclipse 7.1 I got the following error message:
An internal error occurred during: "Importing Maven projects". Invalid thread access.
Apparently m2eclipse importing of Maven projects is not supported in Eclipse 7.1. I uninstalled Eclipse 7.1 and installed Eclipse 7.0 to fix the problem.
Reference:
http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&t=23178&start=0&postdays=0&postorder=asc&highlight=
An internal error occurred during: "Importing Maven projects". Invalid thread access.
Apparently m2eclipse importing of Maven projects is not supported in Eclipse 7.1. I uninstalled Eclipse 7.1 and installed Eclipse 7.0 to fix the problem.
Reference:
http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&t=23178&start=0&postdays=0&postorder=asc&highlight=
Apr 10, 2009
Error: java.lang.OutOfMemoryError: Java heap space
If Java runs out of memory, the following error occurs:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
or
Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
java -Xms[initial heap size] -Xmx[maximum heap size] -XX:MaxPermSize=[maximum permanent size]
Example:
java -Xms128m -Xmx256m -XX:MaxPermSize=256m
Mar 21, 2009
Vista TSSTCorp DVD Driver not installed properly
I was getting the following error message:
"Device driver software was not successfully installed."
TSSTcorp DVD+-RW TS-L632D ATA Device
I was able to solve the problem with my DVD drive with a TSSTCorp Driver by uninstalling the driver, running the following registry fix and restarting my computer. Just save the file to your computer and double click on it. It is like magic.
"Device driver software was not successfully installed."
TSSTcorp DVD+-RW TS-L632D ATA Device
I was able to solve the problem with my DVD drive with a TSSTCorp Driver by uninstalling the driver, running the following registry fix and restarting my computer. Just save the file to your computer and double click on it. It is like magic.
Mar 18, 2009
SQL not acknowleding 64-bit ASP.net
Are you getting this warning message from SQL?
"32-bit ASP.Net is Registered. Required 64-bit ASP.Net to install Microsoft Reporting Services 2005(64-bit)."
Click Start -> Run
type "cmd" and hit enter
in the command window type the following 4 commands:
1)
cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1
2)
%SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
3)
cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0
4)
%SYSTEMROOT%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i
After these commands are complete open IIS Manager
Select "Web Service Extentions"
Then allow both ASP.Net v2.0.50727 extentions
commands obtained from: here
"32-bit ASP.Net is Registered. Required 64-bit ASP.Net to install Microsoft Reporting Services 2005(64-bit)."
Click Start -> Run
type "cmd" and hit enter
in the command window type the following 4 commands:
1)
cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1
2)
%SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
3)
cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0
4)
%SYSTEMROOT%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i
After these commands are complete open IIS Manager
Select "Web Service Extentions"
Then allow both ASP.Net v2.0.50727 extentions
commands obtained from: here
Jan 7, 2009
An Introduction to Hibernate 3 Annotations
I found a great introduction to Hibernate 3 Annotations: http://www.onjava.com/pub/a/onjava/2007/02/08/an-introduction-to-hibernate-3-annotations.html?page=1
Jan 2, 2009
Eclipse Error Message: Java compiler level does not match the version of the installed Java project facet
The java facet version needs to always match the java compiler compliance level. The best way to change java level is to use the Project Facets properties panel as that will update both places at the same time. The Project Facet can be changed via Project Properties -> Project Facets panel.
Subscribe to:
Posts (Atom)