473,289 Members | 1,780 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

jsp deploytool

oll3i
679 512MB
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 2142
oll3i
679 512MB
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 Expert 2GB
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 8TB
Your index.jsp is throwing a NullPointerException. Make sure every dereferenced variable in it is properly initialized.
Nov 11 '08 #4
oll3i
679 512MB
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 8TB
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 512MB
i added some out.printlns but it doesnt display nothing
Nov 11 '08 #7
JosAH
11,448 Expert 8TB
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 512MB
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 Expert 8TB
Nonono, that log file should be named stdout_20081111 or stderr_20081111

kind regards,

Jos
Nov 11 '08 #10
oll3i
679 512MB
i dont have such logs
Nov 11 '08 #11
JosAH
11,448 Expert 8TB
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 512MB
nope no security manager
Nov 11 '08 #13
oll3i
679 512MB
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 Expert 8TB
Sort of; read this.

kind regards,

Jos
Nov 11 '08 #15
oll3i
679 512MB
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 512MB
maybe i should post my bean code?
Nov 11 '08 #17
oll3i
679 512MB
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 8TB
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 512MB
now i get the above errors on deploy because i changed the database to derby
Nov 12 '08 #20
oll3i
679 512MB
the problem is for sure connecting to derby
Nov 12 '08 #21
oll3i
679 512MB
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 512MB
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 512MB
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 512MB
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 512MB
but none of the printlns in jspInit go to the server log
Nov 13 '08 #26
oll3i
679 512MB
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 Expert 2GB
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
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
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
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
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
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
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.