Ajan Raj

Greenhorn
+ Follow
since Jan 29, 2008
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 Ajan Raj

Jeanne,

Can you tell me steps to configure a client cvs through command prompt.

Jeanne Boyarsky wrote:Ajan,
Since you have CVS installed locally, have you tried accessing it via the command line?




No i haven't tried through command line. Actually in Eclipse we are having an option for CVS in that i had tried to give the host name as my machine IP/localhost and for the repository path i had given the path where the files to be stored. But it shows connection refused.
Hi Friends,
I need to configure CVS in Eclipse 3.3.2. When i try to add a new repository i am getting a error such as

Error Validating location: "could not connect to :pserver:username:localhost:D:\repository: Cannot connect to host: Connection refused: connect"



Can anyone help me to solve the problem. And suggest me the steps to Create a repository path in Eclipse
Thanks a lot jaikiran. It works fine. Can you please tell me the site to get EJB 3.0 tutorial. By google search i am getting a lot. But i want to know from the basic. Can you suggest me the site.



Jaikiran Pai wrote:

...
import javax.persistence.PersistenceContext;
...

public class BookBean implements BookLocal, BookRemote {



This one is missing the @Stateless annotation. Hence its not considered a bean.

Add this:

15 years ago

Peter Johnson wrote:Could you post the source for your entity bean? And the code that is using it, which I assume is the code that is getting the NameNotFoundException. Don't forget to wrap the code in 'code' tags.



I am new to EJB. I had download a sample example and work on that.

In the servlet i am Using

These are the files which i am using in the ejb.
Book.java
BookBean.java
BookLocal.java
BookRemote.java.

And herewith i have given the code.

BookLocal.java




BookRemote


BookBean.java

Book.java


Can you help me out from this problem


15 years ago

Jaikiran Pai wrote:"Aj an"

Please click the "My Private Messages" link (at the top of this page) for a message from JavaRanch.




Hey i don't understand what you are expecting me to do. Eventhough i had changed the name you are sending the same message.
15 years ago
Can anyone tell me the steps to create EJB 3.0 Entity Bean in Eclipse 3.3.2 with JBoss Applicaion server. I had created a sample Application but while lookup its throwing error such as javax.naming.NameNotFoundException: EntityBean not bound
15 years ago

Ulf Dittmer wrote:Of course it works if you remove those lines - but then it uses the javac compiler. I thought you wanted to use jikes?



In the code which you have given. either javac will compile the java program or Jikes will compile the java program.
15 years ago

Ulf Dittmer wrote:Hello "Ajan Expectations"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. It must consist of a first name and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do using the "My Profile" link at the top of the page.

As to your questions, I haven't tried switching compilers using the "build.compiler" property, but if it takes a Java class name when using the Eclipse compiler, I think it's a safe bet that it would need a class name for using Jikes as well - which doesn't exist, since Jikes is written in C. Something like this works for me:





Sorry i didn't get you. In the code which you have given, if we delete the two lines.
compiler="jikes"
executable="/usr/bin/jikes.exe"

then also it will work fine. Then what is the use of Jikes..
15 years ago
Hi Friends,
I am newbie to jikes. Can anyone tell me that how to use jikes in Ant to compile my java Program. In the build.xml file instead of javac i had changed as jikes and run the build.xml, but i have got error message such as

"BUILD FAILED
D:\Ajan\Assignments\JikesAntTest\Jikes\bin\build.xml:31: Problem: failed to create task or type jikes
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Total time: 109 milliseconds"


And Here is the build.xml file


<?xml version="1.0" encoding="UTF-8"?>
<project name="UKLights" default="all" basedir=".">
<property name="src" value="src"/>
<property name="build" value="build"/>
<property name="lib" value="lib"/>
<target name="all" depends="UKLights"
description="Builds the whole project">
<echo>Doing all</echo>
</target>
<target name="UKLights"
description="Builds the main UKLights project">
<echo>Doing UKLights</echo>

</target>
<target name="check_eclipse">
<available property="in.eclipse" classname="org.eclipse.ant.core.EclipseJavac" />
</target>

<target name="set_eclipse" if="in.eclipse" depends="check_eclipse">
<property name="build.compiler" value="org.eclipse.pde.internal.core.JDTCompilerAdapter" />
<echo message="Internal Eclipse Compiler will be used" />
</target>

<target name="set_jikes" unless="in.eclipse" depends="check_eclipse">
<property name="build.compiler" value="jikes" />
<echo message="Jikes Compiler will be used" />
</target>



<jikes srcdir="${src}" destdir="${build}"/>
</project>


Can anyone help me out from this problem
15 years ago