deploying JSC Web App to SJSAS9
Hi there,
I have several web applications I've written in Netbeans, and they run on a SJSAS9 server. I've also written a JSC web app, and I would now like to deploy this onto the same SJSAS9 server that I've got my other web apps on.
It is certainly stated on several SUN sites that this can be done, here for instance:
http://docs.sun.com/app/docs/doc/819-3653/6n5s0v1qa?a=view
I've done this, and it works other than there is no database connectivity.
I have copied the adapter jar file, and the same jdbc jar files over to my server but no change. I can't find any meaningful error message in the logs... but when i used the EXPORT WAR file option I had to export to app server 8, because there is no option for 9. If I try registering my sjsas9 in JSC directly then it can't start or stop it...
thanks for any help.
Richard
[883 byte] By [
r.bremner] at [2007-11-26 8:49:40]

# 2
Thanks, this helped me fix my problem. First I tried adding the _init method into prerender and that fixed the first problem. The next problem I had was that the Blueprint AJAX Components were throwing an exception (pasted below). I had no luck fixing this exception, so I downloaded, built and ran Glassfish V2 b09, and everything worked, finally :-)
To be honest this whole project I've been working on in JSC (latest final release) has been a nightmare of going from one bug to another. It has some great features but productivity wise I've lost an enormous amount of time. Every time I track down one problem/workaround, add a bit of functionality, it's another bug/workaround to find. Yeh I know I should be logging them all... I'd love to see it all hang together though, it would be so powerful. Unfortunately my company is currently reviewing IBM and Oracle's suite of Java products and I'm the one trying to persuade them to stay with the SUN tools - my job is getting harder.
FYI, this is the stack trace coming from the AJAX components in SJSAS9.
thanks
Richard
[#|2006-07-19T10:48:13.761+0100|WARNING|sun-appserver-pe9.0|javax.enterprise.re source.webcontainer.jsf.lifecycle|_ThreadID=12;_ThreadName=httpWorkerThread-8080 -1;_RequestID=e1b326c6-f58a-4692-a1f7-ae17860d9bd6;|phase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl@340c9c) threw exception: javax.faces.el.EvaluationException: java.lang.NullPointerException java.lang.NullPointerException
com.sun.faces.application.MethodBindingMethodExpressionAdapter.invoke(MethodBin dingMethodExpressionAdapter.java:91)
org.apache.shale.remoting.impl.MethodBindingProcessor.process(MethodBindingProc essor.java:74)
org.apache.shale.remoting.faces.RemotingPhaseListener.afterPhase(RemotingPhaseL istener.java:102)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:287)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:132)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilte rChain.java:397)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:303)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:184)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:216)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:184)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 276)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextVal ve.java:240)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 179)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java: 120)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:13 7)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorT ask.java:667)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(Proces sorTask.java:574)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:844)
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask .java:287)
com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
|#]