Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts
0

Error ODE v1.x Server failed to start at localhost - Eclipse

Posted by Nantharupan on 1:31 AM in , , , ,
Problem 
I faced the problem of failing to start the ODE v1.x.(eclipse - Kepler relase) The error message either

1. Server port In Use 8080-Http :- Reason there might be some other service running on the port you are trying to start he ODE (for example 8080 in this case)

2. A Java Exception has occurred - see the following screen shot. or "Server Ode v1.x Server at localhost failed to start."



I am not going to explain the reason behind the error. i can say the server classpath missing one .jar. (tomcat-juli.jar)

solution

Double click the ODE server instance in eclipse - window opens and shows the overview of the server -> click the Open launch configuration (see the screen shot below)


A window pop up to edit the configuration, click the classpath tab , you can see under the user entries there is a jar called bootstrap.jar. 
but the problem is beacuse of the missing jar - "tomcat-juli.jar". So we need to add the manually, click on the Add External Jar and go to the %CATALINA%/bin folder (C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin - in my case) and add the "tomcat-juli.jar"




once you added the "tomcat-juli.jar" click OK, and start the server. Restart the server. It should start without any problem. 



I found the answer from the following links

1. http://hichenwang.blogspot.gr/2012/09/problem-server-ode-v1x-server-at.html
2. http://www.eclipse.org/forums/index.php/m/760341/

I hope i solved your problem :)


0

Creating multiple instances of Tomcat 7 in Windows

Posted by Nantharupan on 12:40 AM in , , , , ,
I have been searching in the internet for create multiple instances of Tomcat 7.  I found a lot of resources , many of them asked to do some manual configurations such as copying th original Tomcat into another one and setting the "CATALINA_BASE" to the copied directory and edit the ports in conf/server.xml .


  1. 1. http://stackoverflow.com/questions/1794444/use-multiple-catalina-base-to-setup-tomcat-6-instances-on-windows
  2. 2. http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html#Multiple_Instances


Those answers apparently right. but some how i couldn't make it. finally i found a blog post, its' suggest to use the installation of the Tomcat for windows multiple times and give the different port numbers for the following. It's very easy and straight forward. 

Connector Port
Shutdown Port
AJP Port


Find the following screen shots for clear instructions. 


Hope it solved your problem very easily. :)

Original source of the Answer 

http://pe-kay.blogspot.gr/2011/08/creating-multiple-instances-in-tomcat-7.html






0

How to develop a Simple MVC Architecture Java Application

Posted by Nantharupan on 11:49 PM in , , ,
There are a lot of architecture in the Software industry. Basically features of most  architecture  is reduce the coupling between View and Logic. By using that we can change the view when ever we want and keep the logic same.

Some of the Architectures are

1. MVC- Model View Controller
2. MVVM- Model View ViewModel


I have been working in MVC architecture in .NET web application and MVVM  architecture  in WPF desktop application, and Mono Develop Mobile application.

When i try to develop java based desktop application, i tried to do the MVC architecture using help from internet.

Basics of MVC













M-Model
V-View
C-Controller

Model Class

Which will contain the logic of the application and data base connection and manipulation.



View Class

View will be contains the User Interface part only.

Controller

Controller will do the communication part between View and Model
<
Main Method



Popular posts

Copyright © 2009 On the way All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.