Home Tutorialhelp Comment hi, Im using JBoss-4.0.5. and I have used the sam

 
 

Comment

Hari
hi, Im using JBoss-4.0.5. and I have used the sam,
March 13, 2007 at 10:28 AM

hi,
Im using JBoss-4.0.5. and I have used the same code but im getting the "ClassCastException" at these lines:
/*--------------*/

Object objref = ctx.lookup("ejb/test/MyTestSessionBean");
testSessionBean = (MyTestSessionHome)PortableRemoteObject.narrow(objref, MyTestSessionHome.class);

/*--------------*/

so later i changed the code as following, but i was getting "javax.naming.NameNotFoundException"
/*--------------*/
Object objref =
ctx.lookup("java:comp/env/ejb/test/MyTestSession");
testSessionBean = (MyTestSessionHome)PortableRemoteObject.narrow(objref, MyTestSessionHome.class);
/*--------------*/
Could you please help me in this.
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Interview Questions

JBoss Unix and Line Separator
JBoss Unix and Line Separator  Hi, I am trying to solve an critical problem. I have an application which write a batch file using the method println... the run.conf script from jboss I added the parameter -Dline.separator=separator I 

Struts Questions

Struts - Jboss - I-Report - Struts
Struts - Jboss - I-Report  Hi i am a beginner in Java programming and in my application i wanted to generate a report (based on database) using Struts, Jboss , I Report 

Programming Tutorials

AJAX IM
AJAX IM       ajax im ("asynchronous javascript and xml instant messenger"... is updated in real-time via JavaScript.   Ajax IM (Ajax Instant Messenger 

JDBC Questions

hi
hi   I have connected mysql with jsp in linux and i have used JDBC connectivity but when i run the program, its not working the program is displaying 

Java Beginners

hi
hi  i want to use dropdown list(combo box) in html...it should contain name of country's i,e fetched from db...country names should come from db... update in db ....so with out using javascript ...only html,java,db should 

Java Beginners

hi
hi  i want to use dropdown list(combo box) in html...it should contain name of country's i,e fetched from db...country names should come from db... update in db ....so with out using javascript ...only html,java,servlets,db 

Java Beginners

hi
hi  i want to use dropdown list(combo box) in html...it should contain name of country's i,e fetched from db...country names should come from db... update in db ....so with out using javascript ...only html,java,servlets,db 

Java Beginners

hi
hi  i want to use dropdown list(combo box) in html...it should contain name of country's i,e fetched from db...country names should come from db... update in db ....so with out using javascript ...only html,java,servlets,db 

WebSevices Questions

JBOSS Startup Problem - StandardWrapper.Throwable java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:394)
am new to Rose India and also new to JBOSS. I have a problem in JBOSS Starting. I am using JBOSS -4.0.5 version, Java JDK 1.6.0_10 and connecting to Sybase database. i have downloaded the JBOSS war file and extracted in to my local 

Struts Questions

Im not getting validations - Struts
Im not getting validations  I created one struts aplication im using DynaValidations I configured validation.xml and validation-rules.xml also in s-c.xml But Im unable to get validations This is my validation.xml file 

Java Beginners

to all Experts.. please help me. im using a Jcreator. - Java Beginners
to all Experts.. please help me. im using a Jcreator.  3. Write...; int times; . . . . times = inputString.length()   Hi...=word.length(); System.out.println(); for(int i=0;i 

WebSevices Questions

Jboss related linkage error
Jboss related linkage error  Please check below error when i run in jboss java.lang.LinkageError: loader constraint violation in interface itable... loader (instance of org/jboss/classloader/spi/base/BaseClassLoader 

JSP Servlet Questions

JBoss and Sevlet - JSP-Servlet
IsItWorking /gg/servlets I have JBoss installed and put my gg.war into G...JBoss and Sevlet  I am trying to get familar with JBoss. I package up a file, gg.war, as follows: (note, the same directory structure I have running 

Ajax Questions

hi - Ajax
hi  hi, i am doing Web surfing project. i used start and end timepicker field.it works well. i want to display total hours by using start and end... and end time field....total hours another textfiled in that i have to display total 

Flex Questions

Problem in Blazeds with Jboss Clustering ( Mod_JK with SSL )
Problem in Blazeds with Jboss Clustering ( Mod_JK with SSL )  Hi... have only one node of JBoss. But once we add one more node to the cluster... in the server, I need to use the JBoss cluster for session replication. I heard that flex 

Struts Questions

Connecting jboss with sql 2005 - Struts
Connecting jboss with sql 2005  Hai, i have project that was developed in struts,backed is sqlserver 2005 and and i am using jboss. I want to connect another database (sqlserver 2005) with my project.could u please help me 

XML Questions

hi
online multiple choice examination  hi i am developing online multiple choice examination for that i want to store questions,four options,correct answer in a xml file using jsp or java?can any one help me?   Please 

Java Beginners

hi!
hi!  how can i write aprogram in java by using scanner when asking... to to enter, like(int,double,float,String,....) thanx for answering....   Hi...); System.out.print("Enter integer: "); int i=input.nextInt 

Java Beginners

Hi
Hi   I need some help I've got my java code and am having difficulty to spot what errors there are is someone able to help import... and have replies written for them."); } else { System.out.println 

Development process Questions

hi
storing data in xml file using jsp  hi i am storing data in xml file using jsp.in this when i enter data into xml file i am getting xml declaration for each specified data?can any one help me to prevent this?   < 

Java Beginners

Hi
Hi   I have got this code but am not totally understanding what the errors. Could someone Please help. Thanks in advance! import java.util.Random; import java.util.Scanner; private static int nextInt() { public class 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..   I want upload the image using jsp. When i browse the file then pass that file to another jsp it was going on perfect. But when i read...); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JDBC Questions

HI!!!!!!!!!!!!!!!!!!!!!
HI!!!!!!!!!!!!!!!!!!!!!  import java.awt.*; import java.sql....=con.createStatement(); int i=st.executeUpdate("insert into bankdata(name,pass...="+leftSavings+" where pass='"+t9+"'"); JOptionPane.showMessageDialog(null," You have 

Java Beginners

hi.......
hi.......  import java.awt.; import java.sql.*; import javax.swing.... from bank where branch='kannur'"); Statement st=con.createStatement(); int i...(null," You have withdrawn "+withdrawl+" shillings and your balance 

JavaMail Questions

i have problem in that program - JavaMail
i have problem in that program  1. Write a multi-threaded Java... a simple OPAC system for library using even-driven and concurrent programming paradigms of Java. Use JDBC to connect to a back-end database.  Hi Friend 

Application Servers

Jboss 3.2 EJB Examples
. a) Stateless Session Bean: For the sake of clarity and continuity, I am using the same... Oracle8i database. Part-4 CMP Entity-Bean in Jboss 3.2 Server using Oracle8i... Jboss 3.2 EJB Examples     

Blog

JBoss Tools 3 Alpha has been released
of the Project Archives of the JBoss Tools 3 Alpha 1 inculdes- (i) ...The first Alpha release of JBoss Tools 3 has been made recently with intials supports for portals including JSF and Seam portals. JBoss Tools is an open 

Java Beginners

Hi.... - Java Beginners
Hi....   Hi Friends, Thanks for reply can send me sample of code using ur idea... First part i have completed but i want to how to go... with source code to solve the problem and specify the technology you have used 

Development process Questions

jboss with local entity bean - Development process
jboss with local entity bean  We are using eclipse version 3.4.0 for EJB 2.0 application development ( which has ready plug-in for jboss server 4.2.1GA) and jboss server 4.2.1GA for the deployment. and Jboss is configured 

Java Beginners

JBoss - error during deploy - Java Beginners
JBoss - error during deploy  Hello! I've followed your fantastic tutorial about JBoss but I got stucked in exercise 2. I use JBoss AS 5 (don't... into the deploy folder) and Jboss-assisted (using the JBoss master upload page) mode 

Java Beginners

hi plzz reply
hi plzz reply  in our program of Java where we r using the concept of abstraction Plz reply i m trying to learn java ...   means in language of coding we r not using abstraction this will be used only for making ideas 

Struts Questions

Hi - Struts
Hi  Hi friends, must for struts in mysql or not necessary please tell me its very urgent....I have a only oracle10g database please let me... very urgent....   Hi friend, I am sending you a link 

Struts Questions

Hi - Struts
Hi  Hi Friends, I want to installed tomcat5.0 version please help me i already visit ur site then i can't understood that why i installed please give some idea for installed tomcat version 5 i have already tomcat 4.1 

JSP Servlet Questions

Display helloworld using servlet in jboss
Display helloworld using servlet in jboss  import java.io.*; import... World</h1>"); pw.println("</body></html>"); } } I wrote... in WEB-INF folder.later i wrote a deploy.cmd @echo off set JAVA_HOME=C 

Maven Questions

Moving projects from tomcat-6.0 to jboss 5.0.1 GA
tomcat to jboss 5.0.1 GA. What are the things i have to do for using jboss instead of tomcat? Also while using tomcat i had a pom.xml file. Should i change any...Moving projects from tomcat-6.0 to jboss 5.0.1 GA  Now i am using 

Java Beginners

hi .. need help ASAP ..i have a project buit in eclipse , i have installed jasper. i want the steps to work on it ..
hi .. need help ASAP ..i have a project buit in eclipse , i have installed jasper. i want the steps to work on it ..   hi .. need help ASAP ..i have a project buit in eclipse , i have installed jasper. i want the steps to work 

Development process Questions

how to create a progarame using jboss drools rules
how to create a progarame using jboss drools rules  Using Jboss Drools develop a simple utility which will allow the following http://www.jboss.org/drools/ Assuming that we have a list of Citizens <ID, Name,< 

JBoss Server

JBoss Tutorials: Learn JBoss Step by Step
with simple examples. Our JBoss tutorials for beginners have been designed...JBoss Tutorials: Learn JBoss Step by Step JBoss or JavaBeans Open Source... known as WildFly. Written in Java , JBoss supports cross platform compatibility 

JSP Servlet Questions

how can i deploy web application on application server(weblogic,jboss)
how can i deploy web application on application server(weblogic,jboss)  I have develop wab application(jsp,servlet)and i can deploy my web application on tomcat easily but i want to deploy on application server(weblogic,jboss 

Training

JBoss AS Training
their knowledge to EJB3 and J2EE middleware programming using the JBoss Application... JBoss AS Training     Description of JBoss Application Server  JBoss is a free, open source application 

General

Building Web Application With Ant and Deploying on Jboss 3.0
is eample2. Writing Ant build xml file To build example2.ear file, I have written... Building Web Application With Ant and Deploying on Jboss 3.0       In this lesson I 

Java Beginners

hi.. i hv few error. pls. - Java Beginners
hi.. i hv few error. pls.  hi sir, i have few error. can u pls help me. pls. im very new in java. ths my Uni assgmnt. please help me... import...(""); System.out.println("\t "+title[i]+"\t 

Java Beginners

jboss sever
jboss sever  Hi how to configure data source in jboss server and connection pooling Thanks Kalins naik   JBoss Tutorials 

Java Beginners

im new to java - Java Beginners
im new to java  what is the significance of public static void main(string args[])statement  Hi Friend, This statement is necessary for a java class to execute it as a command line application. public- It provide 

Java Beginners

Hi, - Java Beginners
Hi,  Hi friends I have some query please write the code and send me.I want adding value using javascript onChange() Events...please write the code and send me ts very urgent 

Java Beginners

Hi... - Java Beginners
Hi...  Hello Friend I want to some code please write and me I want to add dynamic row value in onChange event created dynamic... you have used like html,JSP,Servlet,Struts,JSF etc.. and explain the problem 

JSP Servlet Questions

hi roseindia - JSP-Servlet
. It is ultimately used for creating dynamic applications for a web page including the ease of connecting it to any database.  Actually I must have told...hi roseindia  defination of jsp?  JSP is just a server side 

JavaMail Questions

sir i,have a assignment for these question plz help me sir - JavaMail
sir i,have a assignment for these question plz help me sir  ... that implement this interface, one using array and the other using linked-list. Provide...; Hi Friend, Try the following codes: 1)ADT Stack: import 

Java Beginners

hi Friend... - Java Beginners
hi Friend...  Hi friend... I have to import only " The System.out.println " Function Not any other Input Function ..How should i import...; import java.io.println; OR Should I give " import java.io.*; " Can u 

Java Beginners

write program have product - using loops
write program have product - using loops  Write a program...) of java.lang.Math class   Hi Friend, Try the following code: import java.util....(list3); double sum=0; for(int i=0;i<list3.size();i++){ sum 

Java Beginners

Hi... - Java Beginners
Hi...  Hi friends I want to make upload file module please help...please write the using mvc1 rule I have three field emp_id,name,file if i am click the browse button then open one dialog box and select any(.doc 

Ajax Questions

HI.
HI.  hi,plz send me the code for me using search button bind the data from data base in dropdownlist 

Java Beginners

hi
what is a jar file where is it used?  what is a jar file where is it used 

General

Welcome to the Jboss 3.0 Tutorial
Welcome to the Jboss 3.0 Tutorial  ...;  Building Web Application With Ant and Deploying on Jboss 3.0... on the Jboss 3.0 application server. After the completion of this lesson 

Java Beginners

Hi
Hi  I want import txt fayl java.please say me...   Hi, Please clarify your problem! Thanks 

Struts Questions

hi
jquery alert dialog box using struts2  how to develop jquery alert dialog box using struts2 

Struts Questions

Hi
Hi  Hi All, I am new to roseindia. I want to learn struts. I do not know anything in struts. What exactly is struts and where do we use it. Please help me. Thanks in advance. Regards, Deepak 

JSP Servlet Questions

hi
hi   on clicking on button on 1st jsp page i want to display following options like friends,family,doctor etc.on next jsp page and also i want link to those options through which i can save the data from 1st jsp in different 

JSP Servlet Questions

hi
hi   on clicking on button on 1st jsp page i want to display following options like friends,family,doctor etc.on next jsp page and also i want link to those options through which i can save the data from 1st jsp in different 

Java Beginners

hi
* * * * * * * * * *print("code sample");   Hi Friend, Try... num=4; int p = num; int q = 0; for (int i = 0; i <= num; i++) { for (int j = p; j>= 1; j-- ) System.out.print(" "); p-=1; for (int k = 1; k <= i; k 

Java Beginners

hi
hi  servlet program to retrieve data from database using session object 

Java Beginners

hi
hi  add any two numbers using bitwise operatorsprint("code sample 

Java Beginners

hi
hi  add any two numbers using bitwise operatorsprint("code sample 

Java Beginners

hi
hi  add any two numbers using bitwise operatorsprint("code sample 

Java Server Faces Questions

hi
hi  sir i've a project on railway reservation... i need to connect netbeans and mysql with the help of jdbc driver... then i need to design the frame... aftr clickg run i need to enter data to ma frame and the data which i enter 

Java Beginners

hi
hi  sir i've a project on railway reservation... i need to connect netbeans and mysql with the help of jdbc driver... then i need to design the frame... aftr clickg run i need to enter data to ma frame and the data which i enter 

Java Beginners

hi.......
hi.......  i've a project on railway reservation... i need to connect netbeans and mysql with the help of jdbc driver... then i need to design the frame... aftr clickg run i need to enter data to ma frame and the data which i 

Development process Questions

hi
hi   i want to develop a online bit by bit examination process as part of my project in this i am stuck at how to store multiple choice questions options and correct option for the question.this is the first project i am doing 

JSP Servlet Questions

hi
hi  how i get answer of my question which is asked by me for few minutes ago.....rply 

JDBC Questions

hi!
hi!  public NewJFrame() { initComponents(); try { Class.forName("java.sql.Driver"); con=DriverManager.getConnection("jdbc... for ma project...note that its made by using tools lik textfields , button etc 

JSP Servlet Questions

hi..
hi..  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional...=browsefile.split("/"); System.out.println("ARR is="+arr); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional...=browsefile.split("/"); System.out.println("ARR is="+arr); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional...=browsefile.split("/"); System.out.println("ARR is="+arr); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional...=browsefile.split("/"); System.out.println("ARR is="+arr); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional...=browsefile.split("/"); System.out.println("ARR is="+arr); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JSP Servlet Questions

hi..
hi..  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional...=browsefile.split("/"); System.out.println("ARR is="+arr); for(int i=0;i<arr.length-1;i++) { newstr=newstr 

JavaScript Questions

hi
hi  A/write an application that display a menu of three items in a restaurant as follows: (1) Cheeseburger 4.99 (2) Pepsi 2.00 (3) Chips 0.75 prompt the user to choose an item using the number (1,2or3 

JSP Servlet Questions

Hi
Hi  The thing is I tried this by seeing this code itself.But I;m facing a problem with the code.Please help me in solving me the issue. HTTP Status 500 - type Exception report message description The server encountered 

Struts Questions

Hi.. - Struts
Hi..   Hi Friends, I am new in hibernate please tell me.....if i am using hibernet with struts any database pkg is required or not.....without... me  Hi Soniya, I am sending you a link. I hope that, this link 

Java Server Faces Questions

JBoss deployment problem - Java Server Faces Questions
JBoss deployment problem  I have .war file is successfully running with Tomact server 6.0 form eclipse . I have able to start the jboss,but not able to deploy the same .war file which is running @ tomact. Q1:: how to runnin 

Struts Questions

Hi - Struts
Hi  Hi Friends, Thanks to ur nice responce I have sub package in the .java file please let me know how it comnpile in window xp please give the command to compile 

Travel

I have only one day to visit the Jaipur..
I have only one day to visit the Jaipur..  Hi, I have only a day to travel in Jaipur ..hence, bit worried about what to see first 

Java Interview Questions

What are the level in Jboss 5 application server to deploy the application
What are the level in Jboss 5 application server to deploy the application  What are the level in Jboss 5 application server to deploy... API - Image i/o api for reading and writing images in formats like jpeg and png 

Struts Questions

Hi - Struts
Hi  Hi Friends, I am new in Struts please help me starting of struts and accept my request also..please send its very urgent.... I ahve jdk1.4,Tomcat4.1,and eclipse3.2 please let me know how to run struts using tomcat 

JSP Servlet Questions

I have to retrieve these data from the field table
I have to retrieve these data from the field table  Hi. I have... chennai,trichy,kanchipuram for a single record. I have to retrieve these data from... as single values like chennai as one value, trichy as one value. and i have 

JSP Servlet Questions

Deployment of jsp-servlet in JBoss - JSP-Servlet
Deployment of jsp-servlet in JBoss  hello, I unzipped the JBoss4.0.0. Now, I have saved the web application named "abhi" in the deployment folder . like this E:\JBOSS\jboss-4.0.0\server\default\deploy\abhi After starting 

JavaMail Questions

hi - JavaMail
hi  Hi, I am using hibernate inorder to retrieve data from two tables and I mapped two tables has a relationship of one2many But actually how... it is in Java. pls if any help ,I would appreciate u. regards 

Struts Questions

I have a doubt regarding action - Struts
I have a doubt regarding action   hi, I have doubt regarding struts,I got response through jsp and once again it redirecting to action. If anybody knows pls respond me. with regards, Teju  Hi friend 

Struts Questions

Hi... - Struts
Hi...  Hi, If i am using hibernet with struts then require to install hibernet or not....if installation is must then please send url of this installation  Hi friend, Hibernate is Object-Oriented mapping tool 

Java Beginners

In Java I have append to an existing string efficiently
In Java I have append to an existing string efficiently  Hi, In a Java program I have to append to a existing string more efficiently so... for this? Thanks   Hi, You should use the StringBuilder class 

XML Questions

hi - XML
in RSS? how we can develope an RSS using XML  RSS generaly used... Thanks Rajanikant  Hi friend, It is a format to share data..., but a special RSS reader or aggregator may be used too. Some points to remember 

Struts Questions

Hi.. - Struts
Hi..  Hi, I am new in struts please help me what data write........its very urgent  Hi Soniya, I am sending you a link. This link..., pages, components and templates are used indifferently to design a tile. Also 

Hibernate Questions

hi - Hibernate
hi  hi all, I am new to hibernate. could anyone pls let me know what is generic DAO class generated by MyEclipse while doing mapping. I want to delete a particular record using DAO. Here I provide MyEclipse automatiically 

EJB Questions

how to install jboss - EJB
how to install jboss  when i installed jboss at startup jboss generating errors . unable to run ejb3 

Advertisements Advertisements
 

 

 

DMCA.com