Weblogic servlet reload won't work
Please help! I am using WLS 5.1 sp6 (NT) and trying to use the auto reload setting for the servlets but weblogic won't refresh the change dynamically. I have set the following entries in the weblogic.properties file:
weblogic.httpd.servlet.classpath=D:/weblogic/myserver/servletclasses
weblogic.httpd.servlet.reloadCheckSecs=1
Thanks in advance.
Peter
It would be really nice if WL would report that with an error/warning message.
Mike
Robert Patrick <[email protected]> wrote:
>Make sure that this directory is NOT in either the Java CLASSPATH or
>the weblogic.class.path...
>
>"Peter C. Penny" wrote:
>
>> Please help! I am using WLS 5.1 sp6 (NT) and trying to use the auto
>reload setting for the servlets but weblogic won't refresh the change
>dynamically. I have set the following entries in the weblogic.properties
>file:
>>
>> weblogic.httpd.servlet.classpath=D:/weblogic/myserver/servletclasses
>> weblogic.httpd.servlet.reloadCheckSecs=1
>>
>> Thanks in advance.
>>
>> Peter
>
Similar Messages
-
Servlet reloading doesn't work
Running WL 5.1 SP6 and can't get servlet reloading to work. Have the
necessary lines in weblogic.properties:
weblogic.httpd.servlet.classpath=<my classpath>
weblogic.httpd.servlet.reloadCheckSecs=1
The servlets are in a web app so I have the web app's WEB-INF/classes, where
the servlets reside, in weblogic.httpd.servlet.classpath.
Possibly this is a problem only with web apps? Anyone else run into this?
Thanks.
From my understanding, putting the servlet classes in the WEB-INF/classes
directory eliminates the need to put them into any classpath (servlet, weblogic,
or otherwise). Put them back into the WEB-INF /classes directory and make sure
that this directory is not in the weblogic or servlet classpath.
Hope this helps,
Robert
Paul Folbrecht wrote:
> Ok, that makes sense. But, I tried what you suggested in your mail- moving
> them to /servletclasses instead of /classes, and putting that directory on
> the servlet classpath with this line:
>
> weblogic.httpd.servlet.classpath=e:/development/Projects/ExampleWebApp/deplo
> yment/Web-inf/servletclasses
>
> I then get a ClassNotFoundException when trying to hit any servlet. Don't
> know what could be wrong.
>
> Mike Reiche <[email protected]> wrote in message
> news:[email protected]...
> >
> > Well, you have to figure something else out or put up with that
> > behavior.
> >
> > As long as the servlet classes are in your WEBLOGICCLASSPATH, they
> > will not get reloaded. The servlet class loader first tries to
> > get the servlet class from the 'parent' class loader - and if it
> > can find it there, it will not load a new one. That is why your
> > modified servlets do not get reloaded.
> >
> > Mike
> >
> > "Paul Folbrecht" <[email protected]> wrote:
> > >I'm afraid I can't agree. Also, I tried it, and it doesn't
> > >work. Putting
> > >servlets in WEB-INF/servletclasses results in ClassNotFoundExceptions
> > >on
> > >the servlet. The server doesn't know about this directory-
> > >why should it?
> > >There is no such directory mentioned anywhere in the J2EE
> > >webapp spec. I
> > >see only WEB-INF/classes mentioned.
> > >
> > >Also, the servlet classpath is explicity set in weblogic.properties
> > >as I
> > >noted below.
> > >
> > >In addition,
> > >Mike Reiche <[email protected]> wrote in message
> > >news:[email protected]...
> > >>
> > >> The servlets should be in something like WEB-INF/servletclasses
> > >> which is ONLY in weblogic.httpd.servlet.classpath.
> > >>
> > >> You say you have them in WEB-INF/classes, which is also
> > >in
> > >WEBLOGICCLASSPATH
> > >> (?) so they won't be reloaded.
> > >>
> > >> Mike
> > >>
> > >>
> > >>
> > >> "Paul Folbrecht" <[email protected]> wrote:
> > >> >Running WL 5.1 SP6 and can't get servlet reloading
> > >to
> > >> >work. Have the
> > >> >necessary lines in weblogic.properties:
> > >> >
> > >> >weblogic.httpd.servlet.classpath=<my classpath>
> > >> >weblogic.httpd.servlet.reloadCheckSecs=1
> > >> >
> > >> >The servlets are in a web app so I have the web app's
> > >> >WEB-INF/classes, where
> > >> >the servlets reside, in weblogic.httpd.servlet.classpath.
> > >> >
> > >> >Possibly this is a problem only with web apps? Anyone
> > >> >else run into this?
> > >> >
> > >> >Thanks.
> > >> >
> > >> >
> > >> >
> > >>
> > >
> > >
> >
-
WebLogic Admin Console won't work with java security manager enabled.
By just enabling the security manager on the command line with -Djava.security.manager and using the default weblogic.policy in the server/lib directory, the admin console will not work. I just see a blank page when I try to access the admin console with permission errors all over on the server console.
In looking at the admin console's weblogic.xml it should have access to everything since it contains:
grant {
permission java.security.AllPermission;
Are there known issues with this? If I add this permission to the weblogic.policy file everything works fine but then I might as well not turn on the security manager.
Thanks,
DaveDavid,
I was glad to see your post regarding WLS 9.2 and the troubles with enabling Java Security Manager.
Were you able to learn any more on things like - why doesn't the admin console work when the security manager is enabled with the default policy file. Also, why is it so difficult to add permissions for your own applications and get them to actually work.
I'd be curious to see if you were able to get it to work or if you have any insights or resources that can help with this as we are really struggling to get a restrictive policy file that works.
Thanks,
D -
Servlet reloading not working with WLS 5.1 sp8
I downloaded and installed WLS 5.1's sp8 to fix the "java.net.SocketException: Connection aborted by peer: socket write error"
problem. Although that problem is fixed, I have found that, however, the servlet (automatic) reloading does not
work anymore. If I remove the sp8 from my Java system classpath and WL classpath (i.e. not using sp8), then
the servler reloading works fine.
Does anybody experience similar problem or have I forgot to do something?
WLS properties/env vars setting:
- weblogic.httpd.servlet.reloadCheckSecs=0
- WEBLOGIC_CLASSPATH=%WEBLOGIC_HOME%\lib\weblogic510sp8.jar;...
- JAVA_CLASSPATH=%WEBLOGIC_HOME%\lib\weblogic510sp8boot.jar;...
Thanks in advance for any help.
I've experienced the same problem with both sp6 and sp8. In both cases I performed several test, including
- varied the value of weblogic.httpd.servlet.reloadCheckSecs
- changes to the package depth the servlet belonged to
- changes to the string length of the package names the servlet belonged to
At best, the servlet would reload sometimes. I've moved back to sp5 and the problem has subsided.
Note: I did not try registering the servlet to see how that would effect the dynamic reloading.
Hope this helps
- Dave
"Michel Dinh" <[email protected]> wrote:
>
>I downloaded and installed WLS 5.1's sp8 to fix the "java.net.SocketException: Connection aborted by peer: socket write error"
>problem. Although that problem is fixed, I have found that, however, the servlet (automatic) reloading does not
>work anymore. If I remove the sp8 from my Java system classpath and WL classpath (i.e. not using sp8), then
>the servler reloading works fine.
>
>
>Does anybody experience similar problem or have I forgot to do something?
>
>WLS properties/env vars setting:
>
>- weblogic.httpd.servlet.reloadCheckSecs=0
>- WEBLOGIC_CLASSPATH=%WEBLOGIC_HOME%\lib\weblogic510sp8.jar;...
>- JAVA_CLASSPATH=%WEBLOGIC_HOME%\lib\weblogic510sp8boot.jar;...
>
>Thanks in advance for any help.
-
Hi,
As I say in the question I don't know what happened but Firefox just stopped operating and then became erratic. So I removed the firefox programme from my computer and reloaded Firefox.
It now runs normally but I can't run Firefox on two tabs, only one, and if I close it down during a session I can't reopen it using the desk top icon. I go to task manager, processes, and end process for Firefox - then I can start it using the icon on the desktop.
I have also noticed that some links on a web page won't work - javascript is involved.
Thanks for your herlp,
Mike FDIt sounds like you are getting in a hurry.
If you force Firefox to close in a hurry, then it won't normally start until you re-start the computer. There are ways around this, but I'm not going to go into them right now.
None-force way to close Firefox down: Close the program and wait. Do something else. Firefox appears as if it is closed, but it's not. Firefox cleans out cookies and it's cache after you close it. That takes a few minutes. You can't restart it while it's doing house cleaning.
After it is done, then you can restart Firefox normally. You can watch it in the Task Manager.
The same applies if you are installing javascript. You have to wait a few minutes.
As for running it with multiple tabs, I usually have 5 or 6, or more, tabs open at a time. Have no idea what the problem is there. Firefox needs special permission by use of a pop-up option to close with multiple tabs open. -
Weblogic.servlet.reloadCheckSecs in web.xml not working
Given the following web.xml file:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
1.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<context-param>
<param-name>weblogic.servlet.reloadCheckSecs</param-name>
<param-value>100</param-value>
</context-param>
<servlet>
<servlet-name>CookieCounter</servlet-name>
<servlet-class>servlets.CookieCounter</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CookieCounter</servlet-name>
<url-pattern>monster</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>hello.html</welcome-file>
</welcome-file-list>
<error-page>
<error-code>404</error-code>
<location>/error.jsp</location>
</error-page>
</web-app>
It seems the weblogic.servlet.reloadCheckSecs property is not taking effect.
The
default value of -1 is always used. I did stop and restart weblogic.
I also trid to set the servlet classpath in the web.xml file with
weblogic.servlet.classpath
property and it did not change the classpath for the servlet. It seems that
other
items are working such as adding new servletrs to the web application. Note
that
this is the cookie sample application that installes with the beta 2
download.
Thanks,
Dan.
Hi All:
Thanks for all your help regarding the adfAuthentication success_url. Now I am able to configure to make this work. But now I am facing another issue i.e. I am getting 401 Not authorized message when the success_url is pointed to the jspx page.
Note: I am using custom login module similar to DBProcOraDataSourceLoginModule so my roles are stored in the custom Role class. So I am not sure how to pass this role info to the security in ADF in order to authorize the page to be viewed.
Could you please help and can you point me to any specific link.
Thanks & Regards
Sridhar Doki -
Dynamic Servlet reload activation in Weblogic 6.0 using web applications
Dynamic Servlet reload activation in Weblogic 6.0 using web applications
Add the next lines to your web.xml file
<context-param>
<param-name>weblogic.httpd.servlet.reloadCheckSecs</param-name>
<param-value>0</param-value>
</context-param>
<context-param>
<param-name>weblogic.httpd.servlet.classpath</param-name>
<param-value>C:/bea/wlserver6.0/config/myServer/applications/MyApp/WEB-INF/serverclasses</param-value>
</context-param>
Register your servlet on web.xml file.
<servlet>
<servlet-name>Test</servlet-name>
<servlet-class>Test</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Test</servlet-name>
<url-pattern>/Test/*</url-pattern>
</servlet-mapping>
<servlet>
Create a directory under WEB-INF called "serverclasses"
copy your servlet(also directories under serverclasses if your class has a package).
Don't forget to remove from \classes the same servlet class file.
I hope it could be helpfull for the community.
Regards
Dynamic Servlet reload activation in Weblogic 6.0 using web applications
Add the next lines to your web.xml file
<context-param>
<param-name>weblogic.httpd.servlet.reloadCheckSecs</param-name>
<param-value>0</param-value>
</context-param>
<context-param>
<param-name>weblogic.httpd.servlet.classpath</param-name>
<param-value>C:/bea/wlserver6.0/config/myServer/applications/MyApp/WEB-INF/serverclasses</param-value>
</context-param>
Register your servlet on web.xml file.
<servlet>
<servlet-name>Test</servlet-name>
<servlet-class>Test</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Test</servlet-name>
<url-pattern>/Test/*</url-pattern>
</servlet-mapping>
<servlet>
Create a directory under WEB-INF called "serverclasses"
copy your servlet(also directories under serverclasses if your class has a package).
Don't forget to remove from \classes the same servlet class file.
I hope it could be helpfull for the community.
Regards
-
I loaded Mountain Lion and now my Canon Canoscan LIDE100 Scanner won't work. I reloaded the application, checked the Cannon website for the correct driver & loaded the Canon driver for Mountain Lion. Aplication starts to load then hangs up on 80% complete. Any suggestions?
Might have a hardware issue that was caused by the minor liquid spill.
Take it to Apple to have them look at it. I think they do a free diagnostics. That way you can find out what's wrong with your MB.
Good luck....Hope you get it sorted out. -
I had to return my first IPad2, and now the new one won't connect to iTunes. I verified I had the latest version, used the new cable and verified the port worked by syncing with my iPod, I reloaded 10.2.2 and restarted my PC. Still won't work - thoughts?
Sorry - found a couple of good threads right after posting.
-
Adobe won't work; keeps wanting me to reload.
I'm using an iMac and a MacBook Pro, but am having trouble with the iMac. Every time I go to a site that requires Adobe to see the video, it tells me I need to download a newer version of Adobe. I've installed it many times, but it still won't work. Any suggestions?? I have uninstalled & reinstalled, but nothing.... I have no problems with Adobe on my MacBook Pro.
Not sure I've chosen the right "group." If I didn't, maybe you can help me choose the right one.
Thanks for your help.Make sure you are using the proper version of flash player for your os system. You must also uninstall all previous versions prior to installing a newer version by using Adobe's uninstaller. After the installation, repair permissions and restart your computer.
Adobe Flash Player Software
Flash Player Uninstaller -
Mapping to weblogic.servlet.FileServlet doesn't seem to work
Hi!
I'm using WebLogic 7.0.1 and am trying to use
the weblogic.servlet.FileServlet to view some files.
I have mapped in the web.xml file
<servlet>
<servlet-name>
upload
</servlet-name>
<servlet-class>
weblogic.servlet.FileServlet
</servlet-class>
<init-param>
<param-name>
docHome
<param-name>
<param-value>
d:\bea\user_projects\GlobalSight\applications\DefaultWebApp
</param-name>
</init-param>
</servlet>
And I have set up mime-types too.
When I access http://<machine name>:7001/upload/<directory to file>
I get a HTTP 404 error. However if I remove the "upload" piece I can view it
on
IE 5.5 on the same machine.
Do I have the format incorrect? Did something change with the FileServlet in
7.0.1?
I couldn't find any info on this.
Thanks!
-Lori
Reset the device:
Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
If that doesn't help, tap Settings > General > Reset > Reset All Settings
No data is lost due to a reset. -
Hi!
I'm using WebLogic 7.0.2 and using the weblogic.servlet.FileServlet to serve up
various
pages (HTML, Word, Powerpoint). If I change an HTML file and access it agin things
are find
since the default expirationdate for it is '0' - however if I change a Word file
and reaccess it
again I see the previous version of it. I have to clear out the cache and view
it again in order
to see the changes. Is there a way to use the weblogic.servlet.FileServlet and
force no
caching or a reload with every access?
Thanks!
-Lori
Well I never heard anything so I just created a servlet that inherits from the
weblogic
FileServlet and puts in the expirationdate in the header before passing it on
to the
super class. It works fine.
"Lori Ronning" <[email protected]> wrote:
>
>Hi!
>I'm using WebLogic 7.0.2 and using the weblogic.servlet.FileServlet to
>serve up
>various
>pages (HTML, Word, Powerpoint). If I change an HTML file and access
>it agin things
>are find
>since the default expirationdate for it is '0' - however if I change
>a Word file
>and reaccess it
>again I see the previous version of it. I have to clear out the cache
>and view
>it again in order
>to see the changes. Is there a way to use the weblogic.servlet.FileServlet
>and
>force no
>caching or a reload with every access?
>Thanks!
>-Lori
-
Hi,
I have and image on my content server that is being displayed by my weblogic portal portlet. Whenever I check-in a new revision of that image on the content server and I reload the portlet (ctrl+r on browser) I am getting the following error:
.lang.LinkageError: Class com/stellent/cis/server/adapter/IAdapterConfigFactory violates loader constraints
at com.stellent.cis.server.api.common.commands.administrative.adapter.GetAdapterCommand.execute(GetAdapterCommand.java:82)
at com.stellent.cis.server.api.common.commands.impl.UCPMCommonCommand.execute(UCPMCommonCommand.java:52)
at com.stellent.cis.client.command.impl.services.CommandExecutorService.executeCommand(CommandExecutorService.java:57)
at com.stellent.cis.client.command.impl.CommandFacade.executeCommand(CommandFacade.java:158)
at com.stellent.cis.client.command.impl.BaseCommandAPI.invokeCommand(BaseCommandAPI.java:84)
at com.stellent.cis.client.api.common.administrative.adapter.impl.CISAdministrativeAdapterAPI.getAdapter(CISAdministrativeAdapterAPI.java:90)
at com.stellent.cis.client.api.common.impl.CISAPIObjectFactory.getAdapterVersion(CISAPIObjectFactory.java:312)
at com.stellent.cis.client.api.common.impl.CISAPIObjectFactory._initializeObject(CISAPIObjectFactory.java:253)
at com.stellent.cis.client.api.common.impl.CISAPIObjectFactory.createObject(CISAPIObjectFactory.java:181)
at com.stellent.cis.server.api.scs.impl.SCSCommand.createServerBinder(SCSCommand.java:392)
at com.stellent.cis.server.api.scs.impl.SCSCommand.getActiveBinder(SCSCommand.java:58)
at com.stellent.cis.server.api.scs.impl.SCSCommand.buildRequest(SCSCommand.java:251)
at com.stellent.cis.server.api.scs.impl.SCSCommand.execute(SCSCommand.java:219)
at com.stellent.cis.client.command.impl.services.CommandExecutorService.executeCommand(CommandExecutorService.java:57)
at com.stellent.cis.client.command.impl.CommandFacade.executeCommand(CommandFacade.java:158)
at com.stellent.cis.client.command.impl.BaseCommandAPI.invokeCommand(BaseCommandAPI.java:84)
at com.stellent.cis.client.api.scs.search.impl.SCSSearchAPI.search(SCSSearchAPI.java:92)
at wit.examples.portal.ImagePortlet.doView(ImagePortlet.java:57)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
at com.bea.portlet.container.PortletStub.doRender(PortletStub.java:942)
at com.bea.portlet.container.FilterChainGenerator.runFilterChain(FilterChainGenerator.java:125)
at com.bea.portlet.container.PortletStub.render(PortletStub.java:414)
at com.bea.portlet.container.AppContainer.renderStub(AppContainer.java:1123)
at com.bea.portlet.container.AppContainer.invokeRender(AppContainer.java:1055)
at com.bea.netuix.servlets.controls.content.JavaPortletContent.fireRender(JavaPortletContent.java:267)
at com.bea.netuix.servlets.controls.content.JavaPortletContent.renderInternal(JavaPortletContent.java:162)
at com.bea.netuix.servlets.controls.content.JavaPortletContent.beginRender(JavaPortletContent.java:108)
at com.bea.netuix.servlets.controls.application.laf.ContentControlRenderer.beginRender(ContentControlRenderer.java:48)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:399)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326)
at com.bea.netuix.nf.UIControl.render(UIControl.java:583)
at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:488)
at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:152)
at com.bea.netuix.servlets.jsp.taglib.skeleton.Child.doTag(Child.java:65)
at jsp_servlet._framework._skeletons._bighorn.__flowlayout._jspService(__flowlayout.java:175)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:35)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:176)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:429)
at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:150)
at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:399)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:208)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:168)
at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:466)
at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:291)
at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:232)
at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:216)
at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:277)
at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:720)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:338)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
I have to restart the weblogic portal server and then everything goes just fine.
I've tried to google it but I cant find anything :S
Thanks in advance.
TPina
Edited by: tpina on Mar 2, 2010 6:38 AMHi Steve
you're right I am using CIS to communicate with the content server although I think the error is in weblogic portal.
On the stack trace that I've printed you have that following line:
at wit.examples.portal.ImagePortlet.doView(ImagePortlet.java:57)
That is my class. I believe the error is loading (reloading the adapter). This is my ImagePortlet.java
package wit.examples.portal;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
import java.util.Iterator;
import java.util.List;
import java.util.Properties;
import javax.portlet.PortletException;
import javax.portlet.GenericPortlet;
import javax.portlet.PortletRequestDispatcher;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import com.stellent.cis.ICISApplication;
import com.stellent.cis.client.api.scs.ISCSDocumentID;
import com.stellent.cis.client.api.scs.context.ISCSContext;
import com.stellent.cis.client.api.scs.file.ISCSFileAPI;
import com.stellent.cis.client.api.scs.file.ISCSFileInfo;
import com.stellent.cis.client.api.scs.search.ISCSSearchAPI;
import com.stellent.cis.client.api.scs.search.ISCSSearchResponse;
import com.stellent.cis.client.api.scs.search.ISCSSearchResult;
import com.stellent.cis.client.command.CommandException;
import com.stellent.cis.client.io.ICISTransferStream;
import com.stellent.cis.impl.CISApplicationFactory;
public class ImagePortlet extends GenericPortlet {
public void doView(RenderRequest request, RenderResponse response)
throws PortletException, IOException {
Properties properties = new Properties ();
URL xmlRes = new File("F:/Work/eclipse_ws/myWEB/WebContent/WEB-INF/adapterconfig.xml").toURI().toURL();
properties.setProperty(ICISApplication.PROPERTY_CONFIG_TYPE, "server");
properties.setProperty(ICISApplication.PROPERTY_CONFIG_SERVER_ADAPTER_CONFIG,xmlRes.toExternalForm());
ICISApplication m_cisApplication = CISApplicationFactory.initialize(properties);
ISCSContext m_context = null;
m_context = m_cisApplication.getUCPMAPI ().getActiveAPI ()._createSCSContext();
m_context.setUser("sysadmin");
m_context.setAdapterName("myadapter");
m_context.setIdcUser("sysadmin");
m_context.setEncoding("UTF-8");
// get the SCS File API
try {
// get a handle to the SCS Search API
ISCSSearchAPI searchAPI = m_cisApplication.getUCPMAPI ().getActiveAPI ().getSearchAPI();
ISCSSearchResponse searchResponse = searchAPI.search (m_context, "dDocTitle <matches> `witlogo`", 25);
ISCSFileAPI fileAPI = m_cisApplication.getUCPMAPI ().getActiveAPI ().getFileAPI ();
//ISCSContent content =(ISCSContent) m_cisApplication.getUCPMAPI ().createObject(ISCSContent.class);
ISCSDocumentID documentID =(ISCSDocumentID)m_cisApplication.getUCPMAPI().createObject (ISCSDocumentID.class);
//ISCSFileInfo fileInfo = (ISCSFileInfo)m_cisApplication.getUCPMAPI().createObject(ISCSFileInfo.class);
Iterator it = searchResponse.getResults ().iterator ();
List<ISCSSearchResult> results = null;
if(!searchResponse.getResults().isEmpty()) {
results = searchResponse.getResults();
ISCSSearchResult searchResult = results.get(0);
System.out.println(searchResult.getDocumentID().toString());
documentID.setDocumentID (searchResult.getDocumentID().toString());
ICISTransferStream transferStream = fileAPI.getFile (m_context, documentID);
File f = new File("F:/Work/eclipse_ws/myWEB/WebContent/image/test.png");
InputStream inputStream = transferStream.getInputStream();
OutputStream out=new FileOutputStream(f);
byte buf[]=new byte[1024];
int len;
while((len=inputStream.read(buf))>0){
out.write(buf,0,len);
out.close();
inputStream.close();
response.setContentType("text/html");
//PortletRequestDispatcher aDispatcher = getPortletContext().getRequestDispatcher("F:/Work/eclipse_ws/myWEB/WebContent/portletJSP.jsp");
PortletRequestDispatcher aDispatcher = getPortletContext().getRequestDispatcher("/portletJSP.jsp");
aDispatcher.include(request, response);
} catch (CommandException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Do I need to put initialization on another method to be called just once? I don't now... :S
Kind regards,
TPina -
When typing in a google search, nothing happens. I try hitting return or clicking on search and nothing happens. I can however search by going into Advanced Search and retyping my query. I also have to retry repeated now to get an active window when I want to compose an email in aol. The window will pop up and nothing is active. This has been happening for a couple weeks now. I also have found that many times the AOL toolbar won't work...buttons are inactive and I have to quit Firefox and reload several time to access any of Firefox or AOL toolbar buttons.
== URL of affected sites ==
http://www.google.com; http://www.aol.comIf you can't get AOL to talk you thru it, then it's time to stop using AOL.
You are paying extra for a useless service. You already pay (and HAVE TO PAY) to the internet company that gives you the internet modem and conneciton to the internet, and they are be giving you 1-5 free email addresses with that account. (call them if you never set them up).
There is no guarantee you don't have a problem with your mail setup on your computer, but this is the right time for you to set up your [email protected] accounts, download all your AOL mail including your address book (FROM AOL'S WEBISTE via Safari) to your hard drive, make sure you are using an external drive with Time Machine and doing daily if not hourly backups, and start sending emails to your friends and family and business from the new mail account(s).
Otherwise you can call someone who saves computers and AOL accounts for a living and pay them $25- $100 hour.... -
TagExtraInfo example in weblogic 5.1 doesn't work!!!!!
Hi
i was trying example given in weblogic 5.1 i.e. session list. that uses tagextrainfo
class to set the attributes in JSP. but it doesn't work.
Please respond to this error.
i am attaching error docs error.txt
On Browser
Compilation of 'E:\weblogic\myserver\classfiles\jsp_servlet\_sessionlist.java'
failed:
E:\weblogic\myserver\classfiles\jsp_servlet\_sessionlist.java:93: cannot resolve
symbol
probably occurred due to an error in /SessionList.jsp line 49:
<td><%= name %></td>
E:\weblogic\myserver\classfiles\jsp_servlet\_sessionlist.java:95: cannot resolve
symbol
probably occurred due to an error in /SessionList.jsp line 50:
<td><%= value %></td>
E:\weblogic\myserver\classfiles\jsp_servlet\_sessionlist.java:99: cannot resolve
symbol
probably occurred due to an error in /SessionList.jsp line 51:
<td><a href="<%=request.getRequestURI()%>?action=delete&delName=<%=name%>">
On Server Console
Mon Oct 08 18:26:06 GMT+05:30 2001:<I> <ServletContext-General> looking for taglib
uri session.tld a
s resource /WEB-INF/session.tld in Web Application root:
Mon Oct 08 18:26:10 GMT+05:30 2001:<I> <ServletContext-General> Generated java
file: E:\weblogic\mys
erver\classfiles\jsp_servlet\_sessionlist.java
Mon Oct 08 18:26:29 GMT+05:30 2001:<E> <ServletContext-General> Compilation of
E:\weblogic\myserver\
classfiles\jsp_servlet\_sessionlist.java failed:
E:\weblogic\myserver\classfiles\jsp_servlet\_sessionlist.java:93: cannot resolve
symbol
symbol : variable name
location: class jsp_servlet._sessionlist
out.print(weblogic.utils.StringUtils.valueOf( name )); //[ /SessionList.jsp;
Line: 49]
^
E:\weblogic\myserver\classfiles\jsp_servlet\_sessionlist.java:95: cannot resolve
symbol
symbol : variable value
location: class jsp_servlet._sessionlist
out.print(weblogic.utils.StringUtils.valueOf( value )); //[ /SessionList.jsp;
Line: 50]
^
E:\weblogic\myserver\classfiles\jsp_servlet\_sessionlist.java:99: cannot resolve
symbol
symbol : variable name
location: class jsp_servlet._sessionlist
out.print(weblogic.utils.StringUtils.valueOf(name)); //[ /SessionList.jsp;
Line: 51]
^
3 errors
java.io.IOException: Compiler failed executable.exec([Ljava.lang.String;[d:/jdk1.3/bin/javac.exe,
-c
lasspath, d:\jdk1.3\jre\lib\rt.jar;d:\jdk1.3\jre\lib\i18n.jar;d:\jdk1.3\jre\lib\sunrsasign.jar;d:\jd
k1.3\jre\classes;.\lib\weblogic510sp10boot.jar;.\classes\boot;.\eval\cloudscape\lib\cloudscape.jar;d
:\jdk1.3\lib\tools.jar;;.\license;.\lib\weblogic510sp10.jar;.\classes;.\lib\weblogicaux.jar;.\myserv
er\serverclasses;E:\weblogic\myserver\servletclasses;E:\weblogic\myserver\public_html;E:\weblogic\my
server\classfiles;null, -d, E:\weblogic\myserver\classfiles, E:\weblogic\myserver\classfiles\jsp_ser
vlet\_sessionlist.java])
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:459)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:249)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:366)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:227)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:138)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:922)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:886)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:
269)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
Mon Oct 08 18:26:31 GMT+05:30 2001:<E> <ServletContext-General> Servlet failed
with Exception
java.io.IOException: Compiler failed executable.exec([Ljava.lang.String;[d:/jdk1.3/bin/javac.exe,
-c
lasspath, d:\jdk1.3\jre\lib\rt.jar;d:\jdk1.3\jre\lib\i18n.jar;d:\jdk1.3\jre\lib\sunrsasign.jar;d:\jd
k1.3\jre\classes;.\lib\weblogic510sp10boot.jar;.\classes\boot;.\eval\cloudscape\lib\cloudscape.jar;d
:\jdk1.3\lib\tools.jar;;.\license;.\lib\weblogic510sp10.jar;.\classes;.\lib\weblogicaux.jar;.\myserv
er\serverclasses;E:\weblogic\myserver\servletclasses;E:\weblogic\myserver\public_html;E:\weblogic\my
server\classfiles;null, -d, E:\weblogic\myserver\classfiles, E:\weblogic\myserver\classfiles\jsp_ser
vlet\_sessionlist.java])
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:459)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:249)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:366)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:227)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:138)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:922)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:886)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:
269)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
waitng for answer.
Regards
Abhi
</a>Hi
i was trying example given in weblogic 5.1 i.e. session list. that uses tagextrainfo
class to set the attributes in JSP. but it doesn't work.
Please respond to this error.
i am attaching error docs error.txt
On Browser
Compilation of 'E:\weblogic\myserver\classfiles\jsp_servlet\_sessionlist.java'
failed:
E:\weblogic\myserver\classfiles\jsp_servlet\_sessionlist.java:93: cannot resolve
symbol
probably occurred due to an error in /SessionList.jsp line 49:
<td><%= name %></td>
E:\weblogic\myserver\classfiles\jsp_servlet\_sessionlist.java:95: cannot resolve
symbol
probably occurred due to an error in /SessionList.jsp line 50:
<td><%= value %></td>
E:\weblogic\myserver\classfiles\jsp_servlet\_sessionlist.java:99: cannot resolve
symbol
probably occurred due to an error in /SessionList.jsp line 51:
<td><a href="<%=request.getRequestURI()%>?action=delete&delName=<%=name%>">
On Server Console
Mon Oct 08 18:26:06 GMT+05:30 2001:<I> <ServletContext-General> looking for taglib
uri session.tld a
s resource /WEB-INF/session.tld in Web Application root:
Mon Oct 08 18:26:10 GMT+05:30 2001:<I> <ServletContext-General> Generated java
file: E:\weblogic\mys
erver\classfiles\jsp_servlet\_sessionlist.java
Mon Oct 08 18:26:29 GMT+05:30 2001:<E> <ServletContext-General> Compilation of
E:\weblogic\myserver\
classfiles\jsp_servlet\_sessionlist.java failed:
E:\weblogic\myserver\classfiles\jsp_servlet\_sessionlist.java:93: cannot resolve
symbol
symbol : variable name
location: class jsp_servlet._sessionlist
out.print(weblogic.utils.StringUtils.valueOf( name )); //[ /SessionList.jsp;
Line: 49]
^
E:\weblogic\myserver\classfiles\jsp_servlet\_sessionlist.java:95: cannot resolve
symbol
symbol : variable value
location: class jsp_servlet._sessionlist
out.print(weblogic.utils.StringUtils.valueOf( value )); //[ /SessionList.jsp;
Line: 50]
^
E:\weblogic\myserver\classfiles\jsp_servlet\_sessionlist.java:99: cannot resolve
symbol
symbol : variable name
location: class jsp_servlet._sessionlist
out.print(weblogic.utils.StringUtils.valueOf(name)); //[ /SessionList.jsp;
Line: 51]
^
3 errors
java.io.IOException: Compiler failed executable.exec([Ljava.lang.String;[d:/jdk1.3/bin/javac.exe,
-c
lasspath, d:\jdk1.3\jre\lib\rt.jar;d:\jdk1.3\jre\lib\i18n.jar;d:\jdk1.3\jre\lib\sunrsasign.jar;d:\jd
k1.3\jre\classes;.\lib\weblogic510sp10boot.jar;.\classes\boot;.\eval\cloudscape\lib\cloudscape.jar;d
:\jdk1.3\lib\tools.jar;;.\license;.\lib\weblogic510sp10.jar;.\classes;.\lib\weblogicaux.jar;.\myserv
er\serverclasses;E:\weblogic\myserver\servletclasses;E:\weblogic\myserver\public_html;E:\weblogic\my
server\classfiles;null, -d, E:\weblogic\myserver\classfiles, E:\weblogic\myserver\classfiles\jsp_ser
vlet\_sessionlist.java])
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:459)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:249)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:366)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:227)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:138)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:922)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:886)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:
269)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
Mon Oct 08 18:26:31 GMT+05:30 2001:<E> <ServletContext-General> Servlet failed
with Exception
java.io.IOException: Compiler failed executable.exec([Ljava.lang.String;[d:/jdk1.3/bin/javac.exe,
-c
lasspath, d:\jdk1.3\jre\lib\rt.jar;d:\jdk1.3\jre\lib\i18n.jar;d:\jdk1.3\jre\lib\sunrsasign.jar;d:\jd
k1.3\jre\classes;.\lib\weblogic510sp10boot.jar;.\classes\boot;.\eval\cloudscape\lib\cloudscape.jar;d
:\jdk1.3\lib\tools.jar;;.\license;.\lib\weblogic510sp10.jar;.\classes;.\lib\weblogicaux.jar;.\myserv
er\serverclasses;E:\weblogic\myserver\servletclasses;E:\weblogic\myserver\public_html;E:\weblogic\my
server\classfiles;null, -d, E:\weblogic\myserver\classfiles, E:\weblogic\myserver\classfiles\jsp_ser
vlet\_sessionlist.java])
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:459)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:249)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:366)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:227)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:138)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:922)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:886)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:
269)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
waitng for answer.
Regards
Abhi
</a>
Maybe you are looking for
-
HELP! New to MAC and I inserted a mini DVD!!!
I didn't know that mini DVD's couldn't be inserted into my Mac Pro and well---I just learned. Not only is this a brand new laptop, but the DVD is the only surviving copy of our trip to Disney. Is there any way I can get the mini dvd out without screw
-
ITunes & Quicktime fail to start
I am getting the error message "This application has failed to start because QTCF.dll was not found. Re-installing the application may fix this problem." I have already looked in the system folder and it's not there. My system will not let me uninsta
-
I have a simple form where there is a drop down list that needs to be displayed getting the values from the back end. I would write a simple query in java file,check if session is new then call method in jsp page. Is there any better approach than th
-
My Aperture library(s) won't show up in System Preferences
I recently installed Aperture and started importing all my pictures into it. I would pick my desktop wallpaper through the Aperture library in the Desktop & Screen Saver preference pane. I started up my Mac today and the Aperture Library showed up as
-
LR to PS CC, less rez please?
How do we send over a smart object to photoshop, but not full resolution. These send overs are too big for web, and sure, I can transform them down, but there are too many and they fill the screen and cover each other up and starting smaller woiuld b