473,503 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

jsp deploytool

oll3i
679 Contributor
i created and ejb in deploytool then added web content to it
i added index.jsp in file refs as a welcome file
i added ejb refs
but when i deploy it i get 404
Nov 10 '08 #1
27 2146
oll3i
679 Contributor
changed some things now after deploying i get

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:384)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:297)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:247)
javax.servlet.http.HttpServlet.service(HttpServlet .java:860)
sun.reflect.GeneratedMethodAccessor77.invoke(Unkno wn Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(Se curityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject .java:517)
org.apache.catalina.security.SecurityUtil.execute( SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPriv ilege(SecurityUtil.java:165)


root cause

java.lang.NullPointerException
org.apache.jsp.index_jsp._jspService(index_jsp.jav a:108)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:105)
javax.servlet.http.HttpServlet.service(HttpServlet .java:860)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:336)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:297)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:247)
javax.servlet.http.HttpServlet.service(HttpServlet .java:860)
sun.reflect.GeneratedMethodAccessor77.invoke(Unkno wn Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(Se curityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject .java:517)
org.apache.catalina.security.SecurityUtil.execute( SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPriv ilege(SecurityUtil.java:165)


note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
Nov 10 '08 #2
Dököll
2,364 Recognized Expert Top Contributor
Hey there Partner!

Can we see the code that is throwing the errors? Do stay tuned, or search a bit, perhaps something's already been added on this.

In a bit!

...actually, if you needed something quick and dirty, why not have JavaScript do it for you. Google that, see what happens.

Also, you should also look at writing a bean to check the fields, if you would rather go that way. The only thing is that you'd need figure out a way to get your error messages to load on the jsp page the occurred, otherwise you'll need to fire other jsp pages, errors.jsp, success.jsp.

But do post your code, see what we can strip out of it.

In a bit!
Nov 11 '08 #3
r035198x
13,262 MVP
Your index.jsp is throwing a NullPointerException. Make sure every dereferenced variable in it is properly initialized.
Nov 11 '08 #4
oll3i
679 Contributor
Expand|Select|Wrap|Line Numbers
  1. <%@ page import="java.io.IOException" %>
  2. <%@ page import="java.io.PrintWriter" %>
  3. <%@ page import="java.util.Iterator" %>
  4. <%@ page import="javax.ejb.*, 
  5. javax.naming.*,
  6. javax.rmi.PortableRemoteObject, 
  7. java.rmi.RemoteException" %>
  8. <%! private InterfaceRemote ir  = null; 
  9. public void jspInit() 
  10. try { 
  11. InitialContext ic = new InitialContext(); 
  12. Object objRef = ic.lookup("java:ejb/ManageDBBean"); 
  13. InterfaceHome home =     (InterfaceHome)PortableRemoteObject.narrow(    objRef, InterfaceHome.class); 
  14. ir = home.create(); 
  15. } catch (RemoteException ex) {     
  16. ex.printStackTrace();    
  17. } catch (NamingException ex) {
  18. ex.printStackTrace();    
  19. } catch (CreateException ex) {
  20. ex.printStackTrace();
  21. }
  22. }%>
  23.  
  24. <%@ page language="java" contentType="text/html; charset=windows-1250"
  25.     pageEncoding="windows-1250"%>
  26. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  27. <html>
  28. <head>
  29. <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
  30. <title>Zadanie3:Wyniki z bazy danych</title>
  31. <style type="text/css">
  32. body {background-color:#ccc;FONT-FAMILY:ARIAL,VERDANA;FONT-SIZE:12PX;}
  33. #box {MARGIN-TOP:50PX;border:1px solid #000; background-color:#CFE;width:200px;HEIGHT:55PX;PADDING:5PX;TEXT-ALIGN:CENTER;FONT-WEIGHT:BOLD;}
  34. INPUT{BORDER:1PX SOLID #000;MARGIN:1PX;}
  35. H1{FONT-SIZE:20PX;}
  36. HR{COLOR:SIENNA;}
  37. </style>
  38. </head>
  39. <body>
  40. <CENTER>
  41. <H1>ZADANIE3</H1>
  42. <HR>
  43.  
  44.  
  45.  
  46.  
  47. <% 
  48.    int numberOfColumns = 0;
  49.    numberOfColumns = ir.getNumberOfColumns("contacts");
  50.    Map<String,String>[] rowsMap = new HashMap[numberOfColumns];
  51.  
  52.    for(int i=0; i<rowsMap.length; i++)
  53.        rowsMap[i]= new HashMap<String, String>(); 
  54.  
  55.  
  56.    rowsMap=ir.returnTable("contacts");
  57.  
  58.    out.println("<TABLE COLS=\"+numberOfColumns+\">"); 
  59.    out.println("<TR>");
  60.  
  61.    for(Map.Entry<String,String> entry : rowsMap[0].entrySet()){
  62.      out.println("<TD><solid>+entry.getKey()+</solid></TD>");
  63.    }
  64.    out.println("</TR>");
  65.  
  66.  
  67.      for(int i=0; i<rowsMap.length; i++){
  68.          out.println("<TR>");
  69.           for(Map.Entry<String,String> entry : rowsMap[i].entrySet()){    
  70.               out.println("<TD>"+entry.getValue()+"</TD>");     
  71.              }
  72.     out.println("</TR>");    
  73.      }     
  74.  
  75.      out.println("</TABLE>");
  76. %>
  77. <br><br>
  78.  
  79.  
  80.  
  81.  
  82.  
  83. </CENTER>
  84. </body>
  85. </html>
  86.  
Nov 11 '08 #5
r035198x
13,262 MVP
Put some out.println statements to determine where the exception is being thrown at.
P.S Why do you initialize evey element of rowsMap then soon after that you overwrite all those initialized objects with whatever is being returned by the returnTable method?
Nov 11 '08 #6
oll3i
679 Contributor
i added some out.printlns but it doesnt display nothing
Nov 11 '08 #7
JosAH
11,448 Recognized Expert MVP
Did you check the logs produced by stdout and stderr? If something threw an
exception in your jspInit() method there must be something in there.

kind regards,

Jos
Nov 11 '08 #8
oll3i
679 Contributor
my server.log


[#|2008-11-11T12:35:52.468+0100|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_Threa dID=16;|StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.jsp.index_jsp._jspService(index_jsp.jav a:112)
at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:105)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:860)
at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:336)
at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:297)
at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:247)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:860)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(Se curityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject .java:517)
at org.apache.catalina.security.SecurityUtil.execute( SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPriv ilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.ac cess$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1. run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invo keInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:170)
at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(Co yoteAdapter.java:189)
at com.sun.enterprise.web.connector.grizzly.Processor Task.doProcess(ProcessorTask.java:604)
at com.sun.enterprise.web.connector.grizzly.Processor Task.process(ProcessorTask.java:475)
at com.sun.enterprise.web.connector.grizzly.ReadTask. executeProcessorTask(ReadTask.java:371)
at com.sun.enterprise.web.connector.grizzly.ReadTask. doTask(ReadTask.java:264)
at com.sun.enterprise.web.connector.grizzly.TaskBase. run(TaskBase.java:281)
at com.sun.enterprise.web.connector.grizzly.WorkerThr ead.run(WorkerThread.java:83)
Nov 11 '08 #9
JosAH
11,448 Recognized Expert MVP
Nonono, that log file should be named stdout_20081111 or stderr_20081111

kind regards,

Jos
Nov 11 '08 #10
oll3i
679 Contributor
i dont have such logs
Nov 11 '08 #11
JosAH
11,448 Recognized Expert MVP
i dont have such logs
You can be pretty sure that it's not your jspInit() method that is acting up.
Personally I'd scrutinize that RMI stuff; do you have a SecurityManager installed?

kind regards,

Jos
Nov 11 '08 #12
oll3i
679 Contributor
nope no security manager
Nov 11 '08 #13
oll3i
679 Contributor
out of scope question i read that "IBM is releasing Cloudscape to the open source community under the name Derby " and that was in 2004 ... i was looking for cloudscape when i have derby with java sun app server

so cloudscape is derby?
Nov 11 '08 #14
JosAH
11,448 Recognized Expert MVP
Sort of; read this.

kind regards,

Jos
Nov 11 '08 #15
oll3i
679 Contributor
i changed the bean to connect to derby but when i deploy it
i get some errors

[#|2008-11-11T21:40:19.934+0100|WARNING|sun-appserver-pe8.2|javax.enterprise.system.stream.err|_ThreadID =18;|
21:50 2008-11-11 [Zadanie3_2]. Please refer to the server log for more details.
at com.sun.enterprise.server.ApplicationManager.appli cationDeployed(ApplicationManager.java:504)
at com.sun.enterprise.admin.event.AdminEventMulticast er.invokeApplicationDeployEventListener(AdminEvent Multicaster.java:872)
at com.sun.enterprise.admin.event.AdminEventMulticast er.handleApplicationDeployEvent(AdminEventMulticas ter.java:856)
at com.sun.enterprise.admin.event.AdminEventMulticast er.processEvent(AdminEventMulticaster.java:424)
at com.sun.enterprise.admin.event.AdminEventMulticast er.multicastEvent(AdminEventMulticaster.java:139)
at com.sun.enterprise.admin.server.core.DeploymentNot ificationHelper.multicastEvent(DeploymentNotificat ionHelper.java:288)
at com.sun.enterprise.deployment.phasing.DeploymentSe rviceUtils.multicastEvent(DeploymentServiceUtils.j ava:155)
at com.sun.enterprise.deployment.phasing.ServerDeploy mentTarget.sendStartEvent(ServerDeploymentTarget.j ava:258)
at com.sun.enterprise.deployment.phasing.StartPhase.r unPhase(StartPhase.java:87)
at com.sun.enterprise.deployment.phasing.DeploymentPh ase.executePhase(DeploymentPhase.java:71)
at com.sun.enterprise.deployment.phasing.PEDeployment Service.executePhases(PEDeploymentService.java:639 )
at com.sun.enterprise.deployment.phasing.PEDeployment Service.start(PEDeploymentService.java:361)
at com.sun.enterprise.deployment.phasing.PEDeployment Service.start(PEDeploymentService.java:396)
at com.sun.enterprise.admin.mbeans.ApplicationsConfig MBean.start(ApplicationsConfigMBean.java:702)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.admin.MBeanHelper.invokeOperati onInBean(MBeanHelper.java:305)
at com.sun.enterprise.admin.config.BaseConfigMBean.in voke(BaseConfigMBean.java:360)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke (DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDa taImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerIntercep tor.invoke(DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxM BeanServer.java:784)
at sun.reflect.GeneratedMethodAccessor23.invoke(Unkno wn Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.admin.util.proxy.ProxyClass.inv oke(ProxyClass.java:54)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInt erceptor.invoke(SunoneInterceptor.java:272)
at com.sun.enterprise.admin.jmx.remote.server.callers .InvokeCaller.call(InvokeCaller.java:38)
at com.sun.enterprise.admin.jmx.remote.server.MBeanSe rverRequestHandler.handle(MBeanServerRequestHandle r.java:92)
at com.sun.enterprise.admin.jmx.remote.server.servlet .RemoteJmxConnectorServlet.processRequest(RemoteJm xConnectorServlet.java:69)
at com.sun.enterprise.admin.jmx.remote.server.servlet .RemoteJmxConnectorServlet.doPost(RemoteJmxConnect orServlet.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:860)
at sun.reflect.GeneratedMethodAccessor77.invoke(Unkno wn Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(Se curityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject .java:517)
at org.apache.catalina.security.SecurityUtil.execute( SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPriv ilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.ac cess$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1. run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invo keInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:170)
at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(Co yoteAdapter.java:189)
at com.sun.enterprise.web.connector.grizzly.Processor Task.doProcess(ProcessorTask.java:604)
at com.sun.enterprise.web.connector.grizzly.Processor Task.process(ProcessorTask.java:475)
at com.sun.enterprise.web.connector.grizzly.ReadTask. executeProcessorTask(ReadTask.java:371)
at com.sun.enterprise.web.connector.grizzly.ReadTask. doTask(ReadTask.java:264)
at com.sun.enterprise.web.connector.grizzly.TaskBase. run(TaskBase.java:281)
at com.sun.enterprise.web.connector.grizzly.WorkerThr ead.run(WorkerThread.java:83)
|#]

[#|2008-11-11T21:40:19.934+0100|WARNING|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadI D=18;|ADM5603:Event listener error [Error while loading application [Zadanie3_2]. Please refer to the server log for more details. ]|#]

[#|2008-11-11T21:40:19.949+0100|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadI D=18;|ADM1042:Status of dynamic reconfiguration event processing:[listener_error]|#]

[#|2008-11-11T21:40:19.949+0100|WARNING|sun-appserver-pe8.2|javax.enterprise.system.tools.admin|_ThreadI D=18;|ADM1075:Error on listening event:[Error while loading application [Zadanie3_2]. Please refer to the server log for more details. ]|#]
Nov 11 '08 #16
oll3i
679 Contributor
maybe i should post my bean code?
Nov 11 '08 #17
oll3i
679 Contributor
yeap i'm beating the record which btw was also mine in the longest thread on this forum :)
Nov 11 '08 #18
r035198x
13,262 MVP
There are far much longer threads than this one. If you put out.println statements in your jsp init method, do they get printed out?
Nov 12 '08 #19
oll3i
679 Contributor
now i get the above errors on deploy because i changed the database to derby
Nov 12 '08 #20
oll3i
679 Contributor
the problem is for sure connecting to derby
Nov 12 '08 #21
oll3i
679 Contributor
now the deploytool says that ear was deployed successfully but it doesn't show in autodeploy folder
but it appears in j2ee-apps folder?

i might have moved the deploy folder accidently
i have it now in C:\Sun\AppServer\domains\domain1\autodeploy

i checked with sun application, from the sun tutorial, deploytool said that it was deployed but it didn't appear in autodeploy folder?
Nov 12 '08 #22
oll3i
679 Contributor
now the deploytool says that ear was deployed successfully but it doesn't show in autodeploy folder
but it appears in j2ee-apps folder?

i might have moved the deploy folder accidently
i have it now in C:\Sun\AppServer\domains\domain1\autodeploy

i checked with sun application,from the sun tutorial, deploytool said that it was deployed but it didn't appear in autodeploy folder?
Nov 12 '08 #23
oll3i
679 Contributor
had to reinstall the server now i deployed it :) at least something

but i get

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
[javac] C:\Sun\AppServer\domains\domain1\generated\jsp\j2e e-apps\Zadanie3_8\war-ic_war\org\apache\jsp\index_jsp.java:23: jspInit() in org.apache.jsp.index_jsp cannot implement jspInit() in javax.servlet.jsp.JspPage; attempting to assign weaker access privileges; was public
[javac] void jspInit()
[javac] ^


Generated servlet error:
[javac] Note: C:\Sun\AppServer\domains\domain1\generated\jsp\j2e e-apps\Zadanie3_8\war-ic_war\org\apache\jsp\index_jsp.java uses unchecked or unsafe operations.


Generated servlet error:
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error




org.apache.jasper.compiler.DefaultErrorHandler.jav acError(DefaultErrorHandler.java:88)
org.apache.jasper.compiler.ErrorDispatcher.javacEr ror(ErrorDispatcher.java:337)
org.apache.jasper.compiler.Compiler.generateClass( Compiler.java:442)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:502)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:481)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:469)
org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:516)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:307)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:297)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:247)
javax.servlet.http.HttpServlet.service(HttpServlet .java:860)
sun.reflect.GeneratedMethodAccessor69.invoke(Unkno wn Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(Se curityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject .java:517)
org.apache.catalina.security.SecurityUtil.execute( SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPriv ilege(SecurityUtil.java:165)
Nov 12 '08 #24
oll3i
679 Contributor
There are far much longer threads than this one. If you put out.println statements in your jsp init method, do they get printed out?
i added some printlns before jspInit and after
it gets through jspInit the nullpointerexception is after jspInit

that's something
Nov 13 '08 #25
oll3i
679 Contributor
but none of the printlns in jspInit go to the server log
Nov 13 '08 #26
oll3i
679 Contributor
now i noticed in server log that it is jspInit :( i get NameNotFoundException:



[#|2008-11-13T03:16:20.359+0100|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID =18;|
We r in jspInit(goes to server log)|#]

[#|2008-11-13T03:16:20.359+0100|WARNING|sun-appserver-pe8.2|javax.enterprise.system.stream.err|_ThreadID =18;|
javax.naming.NameNotFoundException: No object bound to name java:ejb/ManageDBBean

???
Nov 13 '08 #27
Dököll
2,364 Recognized Expert Top Contributor
Hey oll3i!

I'm glad you have some replies, sorry I've been away. It looks like I was referring mostly to another post of yours, not sure how that happened. Anyway...

What if you fire a jsp page without the necessary code to connect to db, as if an empty page with a bit of text in the body, no connections strings...

I suspect your are having server issues, if if that's a fact, a simple jsp page will not load, try as a test.

I'll read on to see which IDE you are using, then I'll try your code.

Also look here: http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/CMP7.html

Just a read but it looks like you can use what is said, if you have time.

In a bit!

Dököll
Nov 16 '08 #28

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2304
by: bebonights | last post by:
Hi folks, I'm having a problem with the J2EE-SDK 1.4 (WindowsXP). I have installed j2sdk-1_4_2_02 as required by the J2EE-SDK. Pre-packaged Applications of the Tutorial (such as the...
2
2711
by: Bob Reynolds | last post by:
Hello, I have a requirement to create EAR and WAR packages without using the integrated package building tools built into the IDE. The packages will be created via a deployment script,...
6
1087
by: Martin | last post by:
Hi, Is there a simple deploy tool available for asp.net? I know it's basically an xcopy operation. What I want is a simple app, I can configure with source and destination directories. It...
3
1363
oll3i
by: oll3i | last post by:
in deploytool when i get to cmp fields one of these fields is not displayed on the list namely it doesn't display firstName displays email lastName contactID and phones and address the last two...
7
2229
oll3i
by: oll3i | last post by:
in deploytool when i go to "cmp database" i get the message "cannot find accessor getFirstName for CMP field firstName"?
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.