Ami Ambre

Ranch Hand
+ Follow
since Dec 26, 2007
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 Ami Ambre

<%@ page language="java" import="java.sql.*,java.io.*" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>accessing database</title>
</head>
<body>
<%Connection con=null;
Statement st=null;
ResultSet rs=null;
try{

Class.forName("oracle.jdbc.driver.OracleDriver");
con=DriverManager.getConnection("jdbc:oracle:thin:@ho-ud5x6m32km3l:1521:PLSExtProc","scott","tiger");
st=con.createStatement();
rs=st.executeQuery("select * from student");
while(rs.next()){%>
<%=rs.getInt(1)%>
<%=rs.getString(2) %>


<%}
}
catch(ClassNotFoundException e){
out.print("exception" +e);
}
%>


</body>
</html>
HTTP Status 500 -
________________________________________
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /bkfamo.jsp at line 16

13: try{
14:
15: Class.forName("oracle.jdbc.driver.OracleDriver");
16: con=DriverManager.getConnection("jdbc:oracle:thin:@ho-ud5x6m32km3l:1521:PLSExtProc","scott","tiger");
17: st=con.createStatement();
18: rs=st.executeQuery("select * from student");
19: while(rs.next()){%>


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:397)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
javax.servlet.ServletException: java.sql.SQLException: No more data to read from socket
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.bkfamo_jsp._jspService(bkfamo_jsp.java:104)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.sql.SQLException: No more data to read from socket
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222)
oracle.jdbc.dbaccess.DBError.check_error(DBError.java:944)
oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:741)
oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:700)
oracle.jdbc.ttc7.TTIpro.receive(TTIpro.java:141)
oracle.jdbc.ttc7.v8TTIpro.receive(v8TTIpro.java:101)
oracle.jdbc.ttc7.TTC7Protocol.connect(TTC7Protocol.java:1273)
oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:215)
oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:307)
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:442)
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
java.sql.DriverManager.getConnection(DriverManager.java:582)
java.sql.DriverManager.getConnection(DriverManager.java:185)
org.apache.jsp.bkfamo_jsp._jspService(bkfamo_jsp.java:69)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
note The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs.
11 years ago
kd ejb project

studentHome.java
package kda;

import javax.ejb.EJBHome;
import javax.ejb.CreateException;
import java.rmi.RemoteException;
import java.sql.SQLException;

import javax.ejb.FinderException;

public interface studentHome extends EJBHome {
public StudentRemote create(Integer studentId, String name) throws CreateException, RemoteException;
public StudentRemote findByPrimaryKey(Integer pk) throws FinderException, RemoteException;
public void makeDbTable() throws RemoteException,SQLException ;
public void deleteDbTable() throws RemoteException,SQLException;

}
---------------------------------------

StudentRemote.java

package kda;

import javax.ejb.EJBObject;
import java.rmi.RemoteException;

public interface StudentRemote extends EJBObject {
public String getName() throws RemoteException ;
public void setName(String name) throws RemoteException;

}

-------------------------------------------

StudentBean.java

package kda;

import java.rmi.RemoteException;
import java.security.Identity;
import java.security.Principal;
import java.util.Properties;
import java.sql.*;
import java.sql.SQLException;
import javax.ejb.EJBException;
import javax.ejb.EJBHome;
import javax.ejb.EJBLocalHome;
import javax.ejb.EJBLocalObject;
import javax.ejb.EJBObject;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.ObjectNotFoundException;
import javax.ejb.RemoveException;
import javax.ejb.TimerService;
import javax.sql.DataSource;
import javax.transaction.UserTransaction;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import java.lang.*;


public class StudentBean implements EntityBean, EntityContext {
public Integer studentId;
public String name;
public EntityContext context;

public void ejbPostCreate(Integer studentId, String name){
}

public Integer ejbCreate(java.lang.Integer studentId, String name)throws CreateException{
this.studentId = studentId ;
this.name = name ;

Connection con = null;
PreparedStatement ps = null;
try{
con = this.getConnection() ;
ps = con.prepareStatement("insert into student(studentId, name) values(?,?)") ;

ps.setInt(1,studentId.intValue());
ps.setString(2,name) ;

if(ps.executeUpdate() != 1){
throw new CreateException("Failed to add student to database") ;
}
return studentId;

}
catch(SQLException e){
throw new EJBException(e) ;
}
finally{
try{ ps.close(); }catch(Exception e){System.out.println("1 Error while closing Statement");}
try{ con.close(); }catch(Exception e){System.out.println("2 Error while closing connection");}
}
}

public Integer ejbFindByPrimaryKey(Integer primaryKey)throws FinderException{
System.out.println("ejbFindByPrimaryKey() primaryKey=" + primaryKey) ;

Connection con = null ;
PreparedStatement ps = null;
ResultSet result = null;
try{
con = this.getConnection() ;
ps = con.prepareStatement("select StudentId from student where StudentId = ?");
ps.setInt(1,primaryKey.intValue());

result = ps.executeQuery() ;
if(!result.next()){
throw new ObjectNotFoundException("Cannot find student with StudentId = "+studentId) ;
}
}
catch(SQLException e){throw new EJBException(e);}
finally{
try{ result.close(); } catch (Exception e){} ;
try { ps.close() ; } catch (Exception e){} ;
try { con.close(); } catch (Exception e){ };
}
return primaryKey;

}

public void ejbActivate() throws EJBException, RemoteException {
// TODO Auto-generated method stub

}


public void ejbLoad() throws EJBException, RemoteException {
// TODO Auto-generated method stub
Integer primaryKey = (Integer)context.getPrimaryKey();
System.out.println("ejbLoad() pk=" + primaryKey);

Connection con = null;
PreparedStatement ps = null ;
ResultSet result=null;

try{
con = this.getConnection();
ps = con.prepareStatement("select name from student where studentId=?");
ps.setInt(1,primaryKey.intValue());
result = ps.executeQuery();

if(result.next()){
studentId = primaryKey;
name = result.getString("name");
}
else{
throw new EJBException();
}
}
catch(SQLException e){
throw new EJBException(e);
}
finally{
try {result.close(); } catch(Exception e){}
try {ps.close();} catch(Exception e){}
try {con.close();} catch(Exception e){}
}
}


public void ejbPassivate() throws EJBException, RemoteException {
// TODO Auto-generated method stub

}


public void ejbRemove() throws RemoveException, EJBException,
RemoteException {
// TODO Auto-generated method stub
System.out.println ("ejbRemove() pk="+studentId);

Connection con = null;
PreparedStatement ps = null;
try{
con = this.getConnection ();
ps = con.prepareStatement("delete from student where studentId = ?");
ps.setInt (1, studentId.intValue ());

if (ps.executeUpdate () != 1){
throw new EJBException ("ejbRemove unable to remove bean");
}
}
catch (SQLException e){
throw new EJBException (e);
}
finally{
try { ps.close (); } catch (Exception e) {}
try { con.close (); } catch (Exception e) {}
}


}


public void ejbStore() throws EJBException, RemoteException {
// TODO Auto-generated method stub
System.out.println("ejbStore() pk="+studentId);

Connection con = null ;
PreparedStatement ps = null;
try{
con = this.getConnection();
ps = con.prepareStatement("update student set name=? where studentId=?");

ps.setString(1,name);
ps.setInt(2,studentId.intValue());

if(ps.executeUpdate() != 1){
throw new EJBException("ejbStore unable to update table");
}
}
catch(SQLException e){throw new EJBException(e);}
finally{
try{ ps.close();}catch(Exception e){}
try{ con.close();}catch(Exception e){}
}

}


public void setEntityContext(EntityContext ctx) throws EJBException,
RemoteException {
// TODO Auto-generated method stub
context = ctx;
}


public void unsetEntityContext() throws EJBException, RemoteException {
// TODO Auto-generated method stub
context = null;
}


public EJBLocalObject getEJBLocalObject() throws IllegalStateException {
// TODO Auto-generated method stub
return null;
}


public EJBObject getEJBObject() throws IllegalStateException {
// TODO Auto-generated method stub
return null;
}


public Object getPrimaryKey() throws IllegalStateException {
// TODO Auto-generated method stub
return null;
}


public Identity getCallerIdentity() {
// TODO Auto-generated method stub
return null;
}


public Principal getCallerPrincipal() {
// TODO Auto-generated method stub
return null;
}


public EJBHome getEJBHome() {
// TODO Auto-generated method stub
return null;
}


public EJBLocalHome getEJBLocalHome() {
// TODO Auto-generated method stub
return null;
}


public Properties getEnvironment() {
// TODO Auto-generated method stub
return null;
}


public boolean getRollbackOnly() throws IllegalStateException {
// TODO Auto-generated method stub
return false;
}


public TimerService getTimerService() throws IllegalStateException {
// TODO Auto-generated method stub
return null;
}


public UserTransaction getUserTransaction() throws IllegalStateException {
// TODO Auto-generated method stub
return null;
}


public boolean isCallerInRole(Identity arg0) {
// TODO Auto-generated method stub
return false;
}


public boolean isCallerInRole(String arg0) {
// TODO Auto-generated method stub
return false;
}


public Object lookup(String arg0) {
// TODO Auto-generated method stub
return null;
}


public void setRollbackOnly() throws IllegalStateException {
// TODO Auto-generated method stub

}
public String getName(){
System.out.println("setName()");
return name;
}
public void setName (String n){
System.out.println ("setName()");
name = n;
}
public void ejbHomeMakeDBTable()throws RemoteException,SQLException{
PreparedStatement ps = null;
Connection con = null;

try{
con = this.getConnection ();

System.out.println("Creating table student...");
ps = con.prepareStatement ("CREATE TABLE student ( " +"StudentId INT PRIMARY KEY, " +"NAME CHAR(30))" );
ps.execute();
System.out.println("...done!");
}
finally
{
try { ps.close (); } catch (Exception e) {}
try { con.close (); } catch (Exception e) {}
}

}
public void ejbHomeDeleteDBTable()throws RemoteException,SQLException{
PreparedStatement ps = null;
Connection con = null;

try
{
con = this.getConnection ();

System.out.println("Dropping table student...");
ps = con.prepareStatement ("DROP TABLE student");
ps.execute();
System.out.println("...done!");
}
finally
{
try { ps.close (); } catch (Exception e) {}
try { con.close (); } catch (Exception e) {}
}

}
private Connection getConnection()throws SQLException{
try{
javax.naming.Context jndiCntx =new InitialContext();
DataSource ds =(DataSource)jndiCntx.lookup("java:comp/env/jbdc/studentbmpHom");
return ds.getConnection ();
}
catch (NamingException e){
throw new EJBException (e);
}

}

}



ejb-jar.xml

<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar id="ejb-jar_ID" version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
<enterprise-beans>
<entity>
<display-name>KedaFaMo</display-name>
<ejb-name>StudentBean</ejb-name>
<home>kda.studentHome</home>
<remote>kda.StudentRemote</remote>
<ejb-class>kda.StudentBean</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>false</reentrant>
<resource-ref>
<res-ref-name>jdbc/studentbmpHom</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
</ejb-jar>

---------------------------------------------------------
Fa web project

Appli.jsp

<title>html page</title>
<script type="text/javascript">
function login_validation(){
if(document.frm.ftName.value==""){
alert("first name empty");
document.frm.ftName.focus();
}
else if(document.frm.stName.value==""){
alert("last name empty");
document.frm.stName.focus();
}
else{
//alert("sarsw");

document.frm.action="famothe.jsp";
document.frm.submit();

}
}
</script>
</head>
<body>
<form name="frm" method="post">
Enter your first name: <input type="text" name="ftName" size="20"/>
Enter your second name: <input type="text" name="stName" size="20"/>
  <input type="button" name="B1" value="login" onClick="login_validation()" />

</form>
</body>
</html>
--------------------------------------------------------------------
famothe.jsp


<%@ page language="java" import="kda.*,kda.StudentBean,javax.naming.*,javax.naming.NamingException,javax.rmi.PortableRemoteObject,java.rmi.RemoteException,java.util.Properties,java.util.Hashtable,javax.sql.DataSource,java.sql.Connection" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="javax.ejb.CreateException"%>
<%@page import="javax.ejb.FinderException"%>
<%@page import="kda.studentHome"%>
<%@page import="kda.StudentRemote"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>entity bean application</title>
</head>
<body>
<%
String s1="createtable";
String s2="droptable";
studentHome hom;
StudentRemote stud;
String cr=request.getParameter("ftName");
String dr=request.getParameter("stName");
try{

Hashtable ht1=new Hashtable();

ht1.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
ht1.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
ht1.put("java.naming.provider.url","localhost:1099");

Context ic2 = new InitialContext(ht1);
Object o=ic2.lookup("java:jdbc/studentbmpHom");

hom=(studentHome)PortableRemoteObject.narrow(o,studentHome.class);


if(s1==cr){%>
out.println ("Creating database table...");
hom.makeDbTable();
<%}
else if(s2==dr){%>
out.println ("Dropping database table...");
hom.deleteDbTable ();
<%}
else{ %>

stud = hom.create(new Integer(1),"John");
stud = hom.create(new Integer(2),"Jackson");
stud = hom.create(new Integer(3),"Rosy");
stud = hom.create(new Integer(4),"Ana");


<%for(int i=1;i<=4;i++){%>
Integer pk = new Integer(i);
StudentRemote stud1 = hom.findByPrimaryKey(pk);
out.println("Name " + i + " : " + stud1.getName());
<%}
}
}

catch(Exception e5){System.out.print("Exception"+ e5);}

%>
</body>
</html>
---------------------------------------------------------

jboss-web.xml

<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<resource-ref>
<res-ref-name>jdbc/studentbmpHom</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:jdbc/studentbmpHom</jndi-name>
</resource-ref>
</jboss-web>
-------------------------------------------------

web.xml

<resource-ref>
<description>dbconnection</description>
<res-ref-name>jdbc/studentbmpHom</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>

------------------------------------------------



14:38:25,015 INFO [TomcatDeployer] deploy, ctxPath=/famoclt, warUrl=file:/D:/work/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/famoclt.war/

14:39:24,687 INFO [STDOUT] Exceptionjava.lang.ClassCastException


11 years ago
Caused by: javax.naming.NamingException: resource-ref: jdbc/studentbmpHo has no valid JNDI binding. Check the jboss-web/resource-ref.
at org.jboss.web.AbstractWebDeployer.linkResourceRefs(AbstractWebDeployer.java:623)
at org.jboss.web.AbstractWebDeployer.parseWebAppDescriptors(AbstractWebDeployer.java:512)
at org.jboss.web.AbstractWebDeployer$DescriptorParser.parseWebAppDescriptors(AbstractWebDeployer.java:878)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:159)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
... 137 more


ejb-jar
<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>studentbmpEjb</ejb-name>
<home>com.studentbmpHome</home>
<remote>com.studentbmpRemote</remote>
<ejb-class>com.StudenbmpBean</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<resource-ref>
<res-ref-name>jdbc/studentbmpHo</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
</ejb-jar>

-----------------------------------------------
jboss.xml
<jboss>
<container-configurations>
<container-configuration>
<container-name>Standard BMP EntityBean</container-name>
<commit-option>A</commit-option>
</container-configuration>
</container-configurations>
<enterprise-beans>
<entity>
<ejb-name>studentbmpEjb</ejb-name>
<jndi-name>studentbmpHo</jndi-name>
<resource-ref>
<res-ref-name>jdbc/studentbmpHo</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:studentbmpHo</jndi-name>
</resource-ref>
<configuration-name>Standard BMP EntityBean</configuration-name>
</entity>
</enterprise-beans>
</jboss>

--------------------------------------------
student-ds.xml

<datasources>
<local-tx-datasource>
<jndi-name>studentbmpHo</jndi-name>
<!-- format of URL is "jdbc:odbc:studentDSN" -->
<connection-url>jdbc:oracle:thin:@ho-ud5x6m32km3l:1521: SID NAME</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>scott</user-name>
<password>tiger</password>
<max-pool-size>50</max-pool-size>
<min-pool-size>1</min-pool-size>
<idle-timeout-minutes>1</idle-timeout-minutes>
</local-tx-datasource>
</datasources>
Caused by: javax.naming.NamingException: resource-ref: jdbc/studentbmpHo has no valid JNDI binding. Check the jboss-web/resource-ref.
at org.jboss.web.AbstractWebDeployer.linkResourceRefs(AbstractWebDeployer.java:623)
at org.jboss.web.AbstractWebDeployer.parseWebAppDescriptors(AbstractWebDeployer.java:512)
at org.jboss.web.AbstractWebDeployer$DescriptorParser.parseWebAppDescriptors(AbstractWebDeployer.java:878)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:159)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
... 137 more

------------------------------------------------
ejb-jar



------------------------------------------------
jboss.xml


--------------------------------------------
student-ds.xml



12 years ago
i hav install oracle 8i & configured jboss 4.2 in eclipse.
i want to connect oracle to ejb & run on jboss so what are step to be configured for connectivity
12 years ago
how can we do clean-up activity in two situation?
when container crash or bean throw system exception how can we do clean-up activity because we will not get ejbRemove() over there.
how can we do clean-up activity in two situation?
when container crash or bean throw system exception how can we do clean-up activity because we will not get ejbRemove() over there.
Now My JBoss is properly working.
But after changing workspace of eclipse jsp still giving problem at the time of saving.
An error has occurred. See error log for more details.
Org/eclipse/ui/internal/services/ISerivceLocatorCreator
please help me.
13 years ago
Peter I am really in problem.
When i am doing any Dynamic/static project.
and adding jsp or html file to that project. But after complition of adding anything to jsp file
it would not get saved.it will always given me save failed org.eclipse.ui.texteditor.abstractTextEditor.createSaveOperation(z) Lorg/eclipse/ui/actions/workspaceModifyOperation(z);

as well as my second problem is when i am starting server it take too much time. & at the it will showing messageBox Timeout waiting for JBoss 4.2 Server to Start. Server did not start after 450s
13 years ago
When i am doing any Dynamic/static project.
and adding jsp or html file to that project.
But after complition of adding anything to jsp file
it would not get saved.it will always given me save failed
org.eclipse.ui.texteditor.abstractTextEditor.createSaveOperation(z)
Lorg/eclipse/ui/actions/workspaceModifyOperation(z);

as well as when i am starting server it take too much time. & at the it will showing messageBox Timeout waiting for JBoss 4.2 Server to Start. Server did not start after 450s
13 years ago
see what happen is when i added some content to jsp file (take example i am printing
<%=out.println("LLL");%> it does not get save when i am coose save optin from file menu.
it will display me message box Save Failed
org.eclpse.ui.texteditor.AbstractTextEditor.createSaveOperation(z)Lorg/eclipse/ui/actions/WorkspaceModifyOperation;

13 years ago
I have configured JBoss 4.2.3.ga with eclipse europa 3.3.1.1.
Problem is When i running any web project Dynamic or static.
when i added Jsp file to web project & write it anything on to that But when i saved it, it would not get saved.
As well as when i run JBoss after adding jsp file to project it will ask me Do you want to save jsp file or not?
so i have select it no then & then Jboss get started but that jsp file would not saved. If i choose yes then it would not get saved & would not started.
Please give me solution on to this toipc.
13 years ago
I Have eclipse europa with Jboss4.2+xdoclet1.2.3+JBossIDE1.5 .
please tell me how cane i configure Eclipse with jboss+xdoclet
13 years ago
I have 1000 client accessing session bean. Within book they had given that only one client
can access session bean at a time regardless weather the bean is stateless?
But there is comment in the specification that the container is free to
implement stateless bean as a single instance of the bean then container run clients
thorugh one at a time.
It means can container service one instance of the stateless bean to 1000 client one at a time.
So it is time consuming because container service 1 client at a time & after
completetion of 1 client transaction it will taken other client & this process happen upto
1000 client .
so it is time consuming. How can it is scalable.
[Edit: request to steal a book removed]
[ December 07, 2008: Message edited by: Bear Bibeault ]
13 years ago