Weblogic9.23 problem

Hi,
I have deployed my application on weblogic 9.23 . But, When I start my application, I am getting the following error.
"weblogic.servlet.jsp.CompilationException: Failed to compile JSP /login.jsp
login.jsp:7:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
<%@ taglib uri="/c" prefix="c" %>
All the tag libraries are present in web-inf/lib folder and tlds are present in web-inf/tlds.
In web.xml, I have mentioned the path of taglib as
<taglib>
<taglib-uri>/c</taglib-uri>
<taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
</taglib>
I have tried putting tlds in web-inf folder as well but hard luck.
I am using jstl1.1 .
please suggest me any solution for this problem.
Thanks

Hi,
I have deployed my application on weblogic 9.23 . But, When I start my application, I am getting the following error.
"weblogic.servlet.jsp.CompilationException: Failed to compile JSP /login.jsp
login.jsp:7:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
<%@ taglib uri="/c" prefix="c" %>
All the tag libraries are present in web-inf/lib folder and tlds are present in web-inf/tlds.
In web.xml, I have mentioned the path of taglib as
<taglib>
<taglib-uri>/c</taglib-uri>
<taglib-location>/WEB-INF/tlds/c.tld</taglib-location>
</taglib>
I have tried putting tlds in web-inf folder as well but hard luck.
I am using jstl1.1 .
please suggest me any solution for this problem.
Thanks

Similar Messages

  • Problem in setup weblogic9.2 MP2 cluster with 2 linux (RHEL4) servers

    Hi All,
              We are trying to setup a clusters of weblogic 9.2 servers on 2 linux machine.
              However we encounter problems when testing load balancing and session replication on the 2 servers.
              We use the configure wizard to configure an adminserver, managed1 server on the 1st linux machine, and managed2 server on the 2nd linux machine. No machine or unix machine is set.
              We are able to start both adminserver, managed1 and managed2 servers.
              And we are able to deploy application to the cluster and run it successfully.
              When we use an apache proxy or the weblogic proxy plugin as an load balancer, we are not able to use the round-robin (load-balancing) features and session replication between the two servers.
              However, when we setup all the servers(adminserver,managed1,managed2) on 1 linux machine, we are enable to use the apahce/weblogic proxy plugin to do round-robin load-balancing and session replication.
              We suspect it is related to multicast.
              When we ping the multicast address setup on each linux machines, we can only see response from the localhost machine.
              When we use util.MulticastTest on linux1 machine, it works properly with only response from linux1 machine.
              When we use the same command util.MulticastTest on linux2 machine, it give the following exception:
              java.net.SocketException: Not a multicast address
              at java.net.MulticastSocket.joinGroup(MulticastSocket.java:273)
              at utils.MulticastTest.<init>(MulticastTest.java:82)
              at utils.MulticastTest.main(MulticastTest.java:233)
              -bash: /bea/weblogic92/server/lib/wlutil.jar: cannot execute binary file
              Both linux servers have no firewall with iptables service stopped.
              Please give us some advices on it.
              Thanks!
              Edited by keatonchan at 12/03/2007 12:12 AM
              Edited by keatonchan at 12/03/2007 12:14 AM

    Just a guess, but it appears the provider-url can specify the cluster name directly, instead of having to specify the individual ports. That's probably a better way to go anyway, but I don't know if it would fix your problem. This is described at [http://e-docs.bea.com/wls/docs90/jndi/jndi.html]

  • Problem occured while starting the Manged server of weblogic9.2

    Hi all,
    I am cnfiguring the OWSM on 2 machine which are in Clustering mode(Pre-Prod Env)
    I have done the installation of SOA SUITE10.1.3.1 for the same.
    After installation , i started Admin server.
    But i am facing issue while starting the managed server of weblogic9.2 through admin Server Console.(which are clustered).The managed Server state goes to ADMIN and raise the error that failed to start the server.It does not go into RUNNING state.
    The error i was recieved is :
    *####<May 13, 2009 10:21:01 AM IST> <Info> <ServletContext-/bea_wls_internal> <ggneai65> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1242190261158> <000000> <HTTPClntLogin: Login rejected with code: 'Failed', reason: java.net.ProtocolException: HTTP tunneling is disabled*
    *     at weblogic.rjvm.http.HTTPServerJVMConnection.acceptJVMConnection(HTTPServerJVMConnection.java:88)*
    *     at weblogic.rjvm.http.TunnelLoginServlet.service(TunnelLoginServlet.java:80)*
    *     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)*
    *     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:283)*
    *     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)*
    *     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3244)*
    *     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:2010)*
    *     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)*
    *     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)*
    *     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)*
    *     at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)*
    *'>*
    because of which deployment of OWSM failed at managed server.
    please help me for the same ASAP.
    its urgent.
    Regards
    Gaurav

    That is an INFO message you received and would not stop a managed server from starting. To get rid of that INFO message, enable tunneling on the admin server.
    Check your node manager log file to see why the managed server is not starting.

  • PetStore 1.3.x in WebLogic9.1

    HI All,
    I am trying to run WebLogic8.1 sp1 version of Petstore available at,
    https://petstore.projects.dev2dev.bea.com/
    in WebLogic9.1, unfortunately same domain config / binary can not run in 8.1 sp6 too.
    WebLogic9.1 issues:
    1. I have created JMS / JDBC resources by looking at config.xml. And XML Registry to some extent. WLS9.1 dont accept the PUBLICID given in Entity Spec Registry Entry same as in 8.1. So have to remove "," character from PUBLICID.
    2. Dont know how URLResource can be configured in WLS9.1.
    So hardcoded the URLResource in code OPC -> PurchaseOrderMDB.java. -> entityCatalogURL
    3. Configured users admin and supplier in myrealm added them in group administrator.
    3. Have to modify Catalog -> Item.java, added getAttribute1() method.
    And changed Product.jsp,Item.jsp, Search.jsp -> ${item.attribute} to ${item.attribute1}.
    Dont know why ${item.attribute} is not working?
    Error says Item object does not have value for attribute though its there.
    4. After all this I could create the ORDER in petstore webapp.
    But OPC PurchaseOrderMDB throwing below error,
    javax.ejb.EJBException: nested exception is: javax.xml.transform.TransformerException: java.io.FileNotFoundException: \com\sun\j2ee\blueprints\purchaseorder\rsrc\schemas\PurchaseOrder.dtd at com.sun.j2ee.blueprints.opc.ejb.PurchaseOrderMDB.onMessage(PurchaseOrderMDB.java:139)at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:426) at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:332)at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:288)at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:3824)at weblogic.jms.client.JMSSession.execute(JMSSession.java:3738)at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4228)at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)at weblogic.work.ExecuteThread.execute ExecuteThread.java:207)     at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    I am sure there is some problem in XMLRegistry Configuration, esp PUBLIC ID.
    Can anyone tried runnig Petstore in WLS9.1? Help appreciated. If some one from WebLogic could guide, ready to put the WLS9.1 version in Petstore Project, Code Share.
    Thanks in Advance.
    Regards, Jitesh

    Hi,
    I had the same problem deploying an application on the websphere 4.
    I solved it by changing the application to a j2ee 1.2 application instead of 1.3.
    Probably setting up websphere 5.0 will solve it.
    Hope it helps.
    Cheers,
    Raymond

  • Sun Access Manager7.1 deployment problem

    We are deploying Sun Access Manager7.1 on Weblogic9.0 running on Solaris 9.0-sparc.
    Getting following exception -
    <Jul 20, 2007 9:27:33 PM GMT+05:00> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the
    7 task for the application 'amserver'.>
    <Jul 20, 2007 9:27:33 PM GMT+05:00> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating start task for
    application 'amserver'.>
    <Jul 20, 2007 9:27:33 PM GMT+05:00> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.management.DeploymentException:
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:30)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:257)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
    Truncated. see log file for complete stacktrace
    java.lang.NullPointerException
    at com.sun.identity.authentication.service.AuthD.<clinit>(AuthD.java:206)
    at com.sun.identity.authentication.UI.LoginLogoutMapping.initializeAuth(LoginLogoutMapping.java:89)
    at com.sun.identity.authentication.UI.LoginLogoutMapping.init(LoginLogoutMapping.java:74)
    at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:265)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    Truncated. see log file for complete stacktrace
    >
    Servlet: "LoginLogoutMapping" failed to preload on startup in Web application: "amserver.war". java.lang.NoClassDefFoundError
    at com.sun.identity.authentication.UI.LoginLogoutMapping.initializeAuth(LoginLogoutMapping.java:89) at
    com.sun.identity.authentication.UI.LoginLogoutMapping.init(LoginLogoutMapping.java:74) at
    weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:265) at
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at
    weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at
    weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:61) at
    weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58) at
    weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48) at
    weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:502) at
    weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1655) at
    weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1632)
    Anybody has any idea regarding this problem?
    You can mail me directly at - [email protected]
    Regards

    CLASSPATH="${CLASSPATH}:
    /prt11/acm7_1/SUNWam/lib/am_services.jar:
    /prt11/acm7_1/SUNWam/lib/am_logging.jar:
    /prt11/acm7_1/SUNWam/lib/am_sdk.jar:
    /prt11/acm7_1/SUNWam/lib/am_sessiondb.jar:
    /prt11/acm7_1/SUNWam/lib/amclientsdk.jar:
    /prt11/acm7_1/SUNWam/lib/am_sso_provider.jar:
    /opt/SUNWma/lib/mobile_services.jar"
    Nothing is defined in the env variable -CLASSPATH.

  • Jboss problem with Cryptographic algorithm PBEWithMD5AndDES

    I am trying to deploy a war file which has logic to use java cryptographic logic as below.
    when I deploy this war file in weblogic9.2 server it works fine.
    But when I try to use this logic in Jboss 4.2.3 it does not work. It returns null when I call Cipher.getInstance().
    I am using PBEWithMD5AndDES algorithm.
    I am using JDK 1.5.0_10.
    Why would same logic work under Weblogic 9.2 and do not work under Jboss 4.2.3 ?
    Please help me if anybody knows this issue.
    byte[] salt = {
    (byte) 0xAA, (byte) 0x9B, (byte) 0xC8, (byte) 0x32,
    (byte) 0x56, (byte) 0x11, (byte) 0xE3, (byte) 0x03
    // Iteration count
    int iterationCount = 19;
    try {
    KeySpec keySpec = new PBEKeySpec(PASS_CODE.toCharArray(), salt, iterationCount);
    SecretKey key = SecretKeyFactory.getInstance(Config.
    getProperty("PBEWithMD5AndDES")).generateSecret(keySpec);
    _ecipher = Cipher.getInstance(key.getAlgorithm());
    _dcipher = Cipher.getInstance(key.getAlgorithm());
    // Prepare the parameters to the cipthers
    AlgorithmParameterSpec paramSpec = new PBEParameterSpec(salt, iterationCount);
    ecipher.init(Cipher.ENCRYPTMODE, key, paramSpec);
    dcipher.init(Cipher.DECRYPTMODE, key, paramSpec);
    } catch (InvalidAlgorithmParameterException e) {
    System.err.println("EXCEPTION: InvalidAlgorithmParameterException");
    } catch (InvalidKeySpecException e) {
    System.err.println("EXCEPTION: InvalidKeySpecException");
    } catch (NoSuchPaddingException e) {
    System.err.println("EXCEPTION: NoSuchPaddingException");
    } catch (NoSuchAlgorithmException e) {
    System.err.println("EXCEPTION: NoSuchAlgorithmException");
    } catch (InvalidKeyException e) {
    System.err.println("EXCEPTION: InvalidKeyException");
    }

    Guys, Thanks for your input on this issue. Actually I have not written this code.I am using secure image implementation provided by SourceForge.
    You can take a look at http://skewpassim.sourceforge.net/
    I am deploying the jar file skewpassimage.jar.
    You can also try yourself by deploying skewimage.war on your application server.
    The source code I have copied earlier was from Encrypter.java class from these archive files.
    The problem is these jar/war files works fine under Weblogic 9.2. I have used for my two applications. It works fine.
    For my application which is running under Jboss 4.2 it does not work and gives following exception.
    java.lang.NullPointerException:
         at com.temesoft.security.Encrypter.<init>(Encrypter.java:99)
         at org.apache.jsp.Login_jsp._jspService(Login_jsp.java:330)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
         at com.standardandpoors.framework.controller.PresentationControllerBean.process(PresentationControllerBean.java:163)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
         at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
         at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)
         at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:77)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
    I really appreciate all you guys help on this. Please let me know if you have any idea why this implementation does not work on Jboss?

  • Shared Services / WebLogic Installation Problem

    Hi,
    I'm starting an install of 11.1.1.3 on a Windows 2003 EE R2 and have run into problems with the automatic deployment of the HSS application server. It appears that the config tool cannnot "reach" or start the WebLogic admin console.
    Details:
    WebLogic 9.2 MP3
    hyperion has been created as a WL Admin
    Node Manager is running on port 5556
    Any thoughts or suggestions would be welcome.
    Thanks
    Mark

    Are you just trying to do a standard automatic deployment? If so, the node manager doesn't really have much to do with that -- has anything been deployed on this box already?
    The first thing the config tool is going to do is deploy the admin server, then Shared Services; has the admin server itself been deployed at this point?
    Check your Hyperion Home directory and see if there's a .\deployments\Weblogic9 directory; if there is, go to .\bin under there, and look for 'startWebLogic.cmd'.
    Before running that file, open a command prompt and type:
    netstat -an | findstr 7001
    7001 is the admin server port; if it's already running, you'll see a LISTEN entry there. If you don't see a LISTEN, run startWebLogic.cmd, wait for it to start, then run the above netstat command in another command prompt. If you now see a LISTEN command, try logging into the admin server:
    http://<wlhost>:7001/console
    Login is just 'hyperion'.
    If that works, great! Try your Shared Services deployment again.
    If there is no HYPHOME\deployments directory (this is created when the admin server is deployed), clear out the config tool log (HYPHOME\logs\config\configtool.log), try the deployment again, and then copy the pertinent sections here.
    Remember also, the config tool -- in an automatic deployment scenario -- is going to create its own weblogic profile, called hyslProfile. If you already have existing weblogic domains running on this box, Hyperion isn't going to use them -- if you do, and they aren't in use by anything, it would probably be best to just remove them. It's possible that if there's another non-hyslProfile admin server running on :7001 on that machine, the config tool could be getting confused.
    Edited by: Dr. Bloodmoney on Jul 8, 2011 1:07 PM

  • CompilationException when upgrading from WebLogic7 to WebLogic9.1

    When I upgrade the server from Weblogic7 to Weblogic9.2. I had the following problems when executing the programs
              weblogic.servlet.jsp.CompilationException: Failed to compile JSP /core/code.jsp
              code.jsp:31:2: No end tag found.
              <html:html locale="true">
              ^-------^
              code.jsp:335:1: Unterminated tag.
              <html:rewrite page=<%//="'/execute" + uri + "'"%> transaction='true'/>
              ^-----------------^
              code.jsp:335:2: No end tag found.
              <html:rewrite page=<%//="'/execute" + uri + "'"%> transaction='true'/>
              ^----------^
              code.jsp:335:15: Specify a value for this attribute.
              <html:rewrite page=<%//="'/execute" + uri + "'"%> transaction='true'/>
              ^--^
              code.jsp:720:3: No start tag found.
              </html:html>
              ^-------^
                   at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:292)
                   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:200)
                   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
                   at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:224)
                   at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:380)
                   at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:298)
                   at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
                   at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3150)
                   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:1973)
                   at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
                   at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
                   at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
                   at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
              >
              However, it works fine in WebLogic7.
              Many thanks.

    Irene,
              This issue has been resolved in 9.2, and you can ask for newest patch from
              your support.
              Regards
              Leon
              <Irene Ho> wrote in message news:[email protected]...
              > When I upgrade the server from Weblogic7 to Weblogic9.2. I had the
              > following problems when executing the programs
              >
              > weblogic.servlet.jsp.CompilationException: Failed to compile JSP
              > /core/code.jsp
              > code.jsp:31:2: No end tag found.
              > <html:html locale="true">
              > ^-------^
              > code.jsp:335:1: Unterminated tag.
              > <html:rewrite page=<%//="'/execute" + uri + "'"%> transaction='true'/>
              > ^-----------------^
              > code.jsp:335:2: No end tag found.
              > <html:rewrite page=<%//="'/execute" + uri + "'"%> transaction='true'/>
              > ^----------^
              > code.jsp:335:15: Specify a value for this attribute.
              > <html:rewrite page=<%//="'/execute" + uri + "'"%> transaction='true'/>
              > ^--^
              > code.jsp:720:3: No start tag found.
              > </html:html>
              > ^-------^
              >
              > at
              > weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:292)
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:200)
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
              > at
              > weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:224)
              > at
              > weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:380)
              > at
              > weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:298)
              > at
              > weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
              > at
              > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3150)
              > 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:1973)
              > at
              > weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
              > at
              > weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
              > at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
              > at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
              >>
              >
              > However, it works fine in WebLogic7.
              > Many thanks.

  • Problem in upload PDF file using Apache HttpClient3.1

    Hi:
    I am using Apache HttpClient 3.1 to upload pdf image from a STANDALONE java application to remote server (Weblogic9.1). Here are some questions:
    1) Do i have to use multipartpost method? (I am uploading pdf image one by one)
    2) The pdf image is added to request as:
    HttpClient client = new HttpClient();
    PostMethod method = new PostMethod("myServletUrl");
    method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,
    new DefaultHttpMethodRetryHandler(3, false));
    InputStreamRequestEntity entity = new InputStreamRequestEntity(new FileInputStream(file), "application/pdf");
    method.setRequestEntity(entity);
    method.setRequestHeader("Content-type", entity.getContentType());
    int statusCode = client.executeMethod(method);
    3) On server side, a servlet will save the posted pdf image as (Apache FileUpload is not used here):
    InputStream is = req.getInputStream();
    saveFile(is, fileName); // write this input stream to file.
    The above steps 2 and 3 will create a pdf file on remote server with MUCH REDUCED size. Any idea what's the problem? content-type problem?
    4) An working example link will be great.
    thanks

    Dunno, but as this is a client side issue, the solution, if there is one will lie in the HTML / javaScript.
    If you dont get an answer in here, have google for an HTML solution, which you can then write out in your jsp.

  • HEADS-UP: Plug-in "com.bea.eclipse.server.lib.weblogic9"...is missing

    just a heads-up to anybody else that might come across the same problem i did:
    when i tried to create a new j2ee enterprise application project on a brand new install of workshop 9.2 for solaris 9/sparc, workshop crashed before i could even finish creating the project.
    prior to trying to create the project, i had noticed in "Help -> Manage Configuration" that the "com.bea.eclipse.server.lib.weblogic9" plugin under the "WebLogic Workshop Server Libraries" feature was not configured properly. the configurator was reporting 'Plug-in "com.bea.eclipse.server.lib.weblogic9" referenced by this feature is missing'. i suspected that this missing plugin is what caused the crash.
    i examined $WORKSHOP_HOME/server/eclipse/plugins/com.bea.eclipse.server.lib.weblogic9/plugins.xml and saw that it had been installed originally with the following value for the plugin element:
      <plugin id="com.bea.eclipse.server.lib.weblogic9; singleton:=true"...>whereas the $WORKSHOP_HOME/server/eclipse/features/com.bea.eclipse.server.lib/feature.xml had the following value for the plugin element:
      <plugin id="com.bea.eclipse.server.lib.weblogic9...>i removed "; singleton:=true" from the plugins.xml file and now "Manage Configuration" reports the status of the feature as "configured properly"; plus i am now able to complete the creation of new j2ee enterprise application projects.

    Could you open up a support case on this?
    william boyd wrote:
    just a heads-up to anybody else that might come across the same problem i did:
    when i tried to create a new j2ee enterprise application project on a brand new install of workshop 9.2 for solaris 9/sparc, workshop crashed before i could even finish creating the project.
    prior to trying to create the project, i had noticed in "Help -> Manage Configuration" that the "com.bea.eclipse.server.lib.weblogic9" plugin under the "WebLogic Workshop Server Libraries" feature was not configured properly. the configurator was reporting 'Plug-in "com.bea.eclipse.server.lib.weblogic9" referenced by this feature is missing'. i suspected that this missing plugin is what caused the crash.
    i examined $WORKSHOP_HOME/server/eclipse/plugins/com.bea.eclipse.server.lib..weblogic9/plugins.xml and saw that it had been installed originally with the following value for the plugin element:
      <plugin id="com.bea.eclipse.server.lib.weblogic9; singleton:=true"...>whereas the $WORKSHOP_HOME/server/eclipse/features/com.bea.eclipse.server.lib/feature.xml had the following value for the plugin element:
      <plugin id="com.bea.eclipse.server.lib.weblogic9...>i removed "; singleton:=true" from the plugins.xml file and now "Manage Configuration" reports the status of the feature as "configured properly"; plus i am now able to complete the creation of new j2ee enterprise application projects.

  • A problem with threads

    I am trying to implement some kind of a server listening for requests. The listener part of the app, is a daemon thread that listens for connections and instantiates a handling daemon thread once it gets some. However, my problem is that i must be able to kill the listening thread at the user's will (say via a sto button). I have done this via the Sun's proposed way, by testing a boolean flag in the loop, which is set to false when i wish to kill the thread. The problem with this thing is the following...
    Once the thread starts excecuting, it will test the flag, find it true and enter the loop. At some point it will LOCK on the server socket waiting for connection. Unless some client actually connects, it will keep on listening indefinatelly whithought ever bothering to check for the flag again (no matter how many times you set the damn thing to false).
    My question is this: Is there any real, non-theoretical, applied way to stop thread in java safely?
    Thank you in advance,
    Lefty

    This was one solution from the socket programming forum, have you tried this??
    public Thread MyThread extends Thread{
         boolean active = true;          
         public void run(){
              ss.setSoTimeout(90);               
              while (active){                   
                   try{                       
                        serverSocket = ss.accept();
                   catch (SocketTimeoutException ste){
                   // do nothing                   
         // interrupt thread           
         public void deactivate(){               
              active = false;
              // you gotta sleep for a time longer than the               
              // accept() timeout to make sure that timeout is finished.               
              try{
                   sleep(91);               
              }catch (InterruptedException ie){            
              interrupt();
    }

  • A problem with Threads and MMapi

    I am tring to execute a class based on Game canvas.
    The problem begin when I try to Play both a MIDI tone and to run an infinit Thread loop.
    The MIDI tone "Stammers".
    How to over come the problem?
    Thanks in advance
    Kobi
    See Code example below:
    import java.io.IOException;
    import java.io.InputStream;
    import javax.microedition.lcdui.Graphics;
    import javax.microedition.lcdui.Image;
    import javax.microedition.lcdui.game.GameCanvas;
    import javax.microedition.media.Manager;
    import javax.microedition.media.MediaException;
    import javax.microedition.media.Player;
    public class MainScreenCanvas extends GameCanvas implements Runnable {
         private MainMIDlet parent;
         private boolean mTrucking = false;
         Image imgBackgound = null;
         int imgBackgoundX = 0, imgBackgoundY = 0;
         Player player;
         public MainScreenCanvas(MainMIDlet parent)
              super(true);
              this.parent = parent;
              try
                   imgBackgound = Image.createImage("/images/area03_bkg0.png");
                   imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
                   imgBackgoundY = this.getHeight() - imgBackgound.getHeight();
              catch(Exception e)
                   System.out.println(e.getMessage());
          * starts thread
         public void start()
              mTrucking = true;
              Thread t = new Thread(this);
              t.start();
          * stops thread
         public void stop()
              mTrucking = false;
         public void play()
              try
                   InputStream is = getClass().getResourceAsStream("/sounds/scale.mid");
                   player = Manager.createPlayer(is, "audio/midi");
                   player.setLoopCount(-1);
                   player.prefetch();
                   player.start();
              catch(Exception e)
                   System.out.println(e.getMessage());
         public void run()
              Graphics g = getGraphics();
              play();
              while (true)
                   tick();
                   input();
                   render(g);
          * responsible for object movements
         private void tick()
          * response to key input
         private void input()
              int keyStates = getKeyStates();
              if ((keyStates & LEFT_PRESSED) != 0)
                   imgBackgoundX++;
                   if (imgBackgoundX > 0)
                        imgBackgoundX = 0;
              if ((keyStates & RIGHT_PRESSED) != 0)
                   imgBackgoundX--;
                   if (imgBackgoundX < this.getWidth() - imgBackgound.getWidth())
                        imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
          * Responsible for the drawing
          * @param g
         private void render(Graphics g)
              g.drawImage(imgBackgound, imgBackgoundX, imgBackgoundY, Graphics.TOP | Graphics.LEFT);
              this.flushGraphics();
    }

    You can also try to provide a greater Priority to your player thread so that it gains the CPU time when ever it needs it and don't harm the playback.
    However a loop in a Thread and that to an infinite loop is one kind of very bad programming, 'cuz the loop eats up most of your CPU time which in turn adds up more delays of the execution of other tasks (just as in your case it is the playback). By witting codes bit efficiently and planning out the architectural execution flow of the app before start writing the code helps solve these kind of issues.
    You can go through [this simple tutorial|http://oreilly.com/catalog/expjava/excerpt/index.html] about Basics of Java and Threads to know more about threads.
    Regds,
    SD
    N.B. And yes there are more articles and tutorials available but much of them targets the Java SE / EE, but if you want to read them here is [another great one straight from SUN|http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html] .
    Edited by: find_suvro@SDN on 7 Nov, 2008 12:00 PM

  • J2ME problem with threads

    Hi all,
    I would like to ask you for a help. I need to write a small program at my university. I started to write a midlet which function would be to countdown time for sports activities. I woul like to start a new thread - the one that counts down - and at the same time make the main thread sleep. After the "countdown" thread finishes, the main thread wakes up and waits for user input. The problem is that when the "countdown" thread finishes his work, I've got Uncaught exception java/lang/NullPointerException. error and the midlet halts.
    Below you can find the code
    import java.lang.*;
    import java.util.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    public class intervals extends MIDlet implements CommandListener
    public Display ekran;
    private SweepCanvas sweeper;
    private Form rundy;
    private TextField round0, round1, round2, round3, round4, round5, round6, round7, round8;
    private long czas,x;
    private Command exitCommand;
    private Command addRound;
    private Command delRound;
    private Command start;
    private TextField repeat;
    private Form odliczanie;
    private Alert ostrz;
    Licznik thread;
    String test;
    StringItem test1;
    int parz,i,j,k;
    static int l;
    int ilrund;
    int ilpowt;
    Item sec;
    long sec1;
    public intervals()
        rundy = new Form("Interwa&#322;y sportowe");
        exitCommand = new Command("Wyj&#347;cie", Command.EXIT, 2);
        addRound = new Command("Dodaj","Dodaj rund&#281;", Command.ITEM,1);
        delRound = new Command("Usu&#324;","Usu&#324; ostatni&#261; rund&#281;", Command.ITEM,1);
        start = new Command("Start", Command.ITEM,1);
        odliczanie = new Form("Odliczanie");
        TextField dodaj(TextField kolej)
            kolej=new TextField("Podaj czas (s) rundy "+parz,null, 4, TextField.NUMERIC);//stworzenie nowej instancji do wybierania czasu trwania rundy
            if(rundy.size()==0)
                rundy.insert(rundy.size(),kolej);
                else
                    rundy.insert(rundy.size()-1, kolej);
            return kolej;
        void odliczanie(TextField round)
            monitor m=new monitor();
            k=Integer.parseInt(round.getString());
            ekran.setCurrent(odliczanie);
            thread=new Licznik(k,odliczanie);
            thread.start();
            ekran.setCurrent(rundy);
    public void startApp()// throws MIDletStateChangeException
        rundy.deleteAll();
        repeat = new TextField("Podaj ilo&#347;&#263; powtórze&#324;",null,1,TextField.NUMERIC);
        rundy.addCommand(addRound);
        rundy.addCommand(exitCommand);
        rundy.setCommandListener(this);
        Canvas obrazek = new MyCanvas();
        ekran = Display.getDisplay(this);
        ekran.setCurrent(obrazek);
        czas=System.currentTimeMillis();
        while (System.currentTimeMillis()<czas+1000)
            continue;
        ekran.setCurrent(rundy);
    public void pauseApp()
    public void destroyApp(boolean unconditional)
        notifyDestroyed();
    public void commandAction(Command c, Displayable s)
        if (c == exitCommand)
            destroyApp(false);
            notifyDestroyed();
        else if(c==addRound)
            if(rundy.size()==0)//Sprawdzenie ilo&#347;ci elementów w celu poprawnego wy&#347;wietlania liczby rund w formie
                parz=1;
                else
                parz=rundy.size();
            switch(parz)
                case 1:
                    round0=dodaj(round0);break;
                case 2:
                    round1=dodaj(round1);break;
                case 3:
                   round2= dodaj(round2);break;
                case 4:
                    round3=dodaj(round3);break;
                case 5:
                    round4=dodaj(round4);break;
                default:
                    ostrz=new Alert("Uwaga","Maksymalna liczba rund wynosi 9", null, AlertType.INFO);
                    ostrz.setTimeout(3000);
                    ekran.setCurrent(ostrz);
            if(rundy.size()==1)
                rundy.append(repeat);
                rundy.addCommand(start);
            rundy.addCommand(delRound);
        else if(c==delRound)
            if(rundy.size()!=0)
                rundy.delete(rundy.size()-2);
                if (rundy.size()==1)
                    rundy.deleteAll();
                if(rundy.size()==0)
                    rundy.removeCommand(delRound);
                    rundy.removeCommand(start);
        else if(c==start)
            ilrund=rundy.size()-1;
            if(this.repeat.size()>0)
                ilpowt=Integer.parseInt(this.repeat.getString());
            ekran = Display.getDisplay(this);
            for (i=1; i<=ilpowt;i++)
                odliczanie= new Form("Odliczanie");
                 for (j=0;j<ilrund;j++)
                    switch(j)
                         case 0:
                             odliczanie(round0);
                             break;
                         case 1:
                             odliczanie(round1);
                             break;
                         case 2:
                             odliczanie(round2);
                             break;
                         case 3:
                             odliczanie(round3);
                             break;
                         case 4:
                             odliczanie(round4);
                             break;
                         case 5:
                             odliczanie(round5);
                             break;
                         case 6:
                             odliczanie(round6);
                             break;
                         case 7:
                             odliczanie(round7);
                             break;
                         case 8:
                             odliczanie(round8);
                             break;
    class Licznik extends Thread
        int czas1,k;
        Form forma;
        monitor m;
        public Licznik(int k,Form formap)
            czas1=k;
            forma=formap;
        public synchronized void run()
            while(czas1>0)
                forma.deleteAll();
                forma.append("Czas pozosta&#322;y (s): "+czas1);
                try{Thread.sleep(1000);} catch(InterruptedException e){e.printStackTrace();}
                czas1--;
            if(czas1<=0)
                m.put();
        }and monitor class
    public class monitor
    boolean busy=false;
    synchronized void get()
        if(!busy)
            try
                wait();
            }catch(InterruptedException e){e.printStackTrace();}
        notify();
    synchronized void put()
        if(busy)
            try
            wait();
            }catch(InterruptedException e){e.printStackTrace();}
        busy=true;
        notify();
    }Can anybody help me with this?

    Groovemaker,
    Your Licznik class has a member m of type monitor, which has not been instantiated (in other words is null) hence, when calling m.put() you get NullPointerException. Please also mind, that using Thread.sleep(1000) is not an accurate way of measuring time.
    If I may, please use recommended for Java class naming conventions - some of your names use lower case, while other don't which is confusing to the reader.
    Daniel

  • Problem with threads within applet

    Hello,
    I got an applet, inside this applet I have a singleton, inside this singleton I have a thread.
    this thread is running in endless loop.
    he is doing something and go to sleep on and on.
    the problem is,
    when I refresh my IE6 browser I see more than 1 thread.
    for debug matter, I did the following things:
    inside the thread, sysout every time he goes to sleep.
    sysout in the singleton constructor.
    sysout in the singleton destructor.
    the output goes like this:
    when refresh the page, the singleton constructor loading but not every refresh, sometimes I see the constructor output and sometimes I dont.
    The thread inside the singleton is giving me the same output, sometime I see more than one thread at a time and sometimes I dont.
    The destructor never works (no output there).
    I don't understand what is going on.
    someone can please shed some light?
    thanks.
    btw. I am working with JRE 1.1
    this is very old and big applet and I can't convert it to something new.

    Ooops. sorry!
    I did.
         public void start() {
         public void stop() {
         public void destroy() {
              try {
                   resetAll();
                   Configuration.closeConnection();
                   QuoteItem.closeConnection();
              } finally {
                   try {
                        super.finalize();
                   } catch (Throwable e) {
                        e.printStackTrace();
         }

  • Problem with Threads and a static variable

    I have a problem with the code below. I am yet to make sure that I understand the problem. Correct me if I am wrong please.
    Code functionality:
    A timer calls SetState every second. It sets the state and sets boolean variable "changed" to true. Then notifies a main process thread to check if the state changed to send a message.
    The problem as far I understand is:
    Assume the timer Thread calls SetState twice before the main process Thread runs. As a result, "changed" is set to true twice. However, since the main process is blocked twice during the two calls to SetState, when it runs it would have the two SetState timer threads blocked on its synchronized body. It will pass the first one, send the message and set "changed" to false since it was true. Now, it will pass the second thread, but here is the problem, "changed" is already set to false. As a result, it won't send the message even though it is supposed to.
    Would you please let me know if my understanding is correct? If so, what would you propose to resolve the problem? Should I call wait some other or should I notify in a different way?
    Thanks,
    B.D.
    Code:
    private static volatile boolean bChanged = false;
    private static Thread objMainProcess;
       protected static void Init(){
            objMainProcess = new Thread() {
                public void run() {
                    while( objMainProcess == Thread.currentThread() ) {
                       GetState();
            objMainProcess.setDaemon( true );
            objMainProcess.start();
        public static void initStatusTimer(){
            if(objTimer == null)
                 objTimer = new javax.swing.Timer( 1000, new java.awt.event.ActionListener(){
                    public void actionPerformed( java.awt.event.ActionEvent evt){
                              SetState();
        private static void SetState(){
            if( objMainProcess == null ) return;
            synchronized( objMainProcess ) {
                bChanged = true;
                try{
                    objMainProcess.notify();
                }catch( IllegalMonitorStateException e ) {}
        private static boolean GetState() {
            if( objMainProcess == null ) return false;
            synchronized( objMainProcess ) {
                if( bChanged) {
                    SendMessage();
                    bChanged = false;
                    return true;
                try {
                    objMainProcess.wait();
                }catch( InterruptedException e ) {}
                return false;
        }

    Thanks DrClap for your reply. Everything you said is right. It is not easy to make them alternate since SetState() could be called from different places where the state could be anything else but a status message. Like a GREETING message for example. It is a handshaking message but not a status message.
    Again as you said, There is a reason I can't call sendMessage() inside setState().
    The only way I was able to do it is by having a counter of the number of notifies that have been called. Every time notify() is called a counter is incremented. Now instead of just checking if "changed" flag is true, I also check if notify counter is greater than zero. If both true, I send the message. If "changed" flag is false, I check again if the notify counter is greater than zero, I send the message. This way it works, but it is kind of a patch than a good design fix. I am yet to find a good solution.
    Thanks,
    B.D.

Maybe you are looking for

  • XE service lost after windows server 2003 restart - must start repair

    I have a problem with Oracle XE 10g on Windows 2003 SP2. Installation went fine, I could use database, go to home page, add tables, views, functions etc.., link database to sql server and query tables from several sql several sql servers on the netwo

  • Subtotalling a numeric field for each row

    CR Xi In reviewing a legacy report for creation of a new report I'm getting an error: "There must be a gropu that matches this field" I've created three (3) Formula fields: DailyQty, NonDailyQty and TotalQty Here's the logic for TotalQty which genera

  • Hd tach - cpu utilization

    I just wanted to share my findings in case anyone else is having this problem. I've been running WinXP Pro for months, but last night while trying to figure out my freezing/rebooting problem I figured I'd run a Hard Drive benchmark to see my CPU Util

  • Safari - Yahoo problems

    Aaargh! The following functions do not work on Yahoo when I use Safari: New, Reply, Forward, Move, Options . . . and a few more. I have two Macs, and this happens with both. Yahoo support can't help. My ISP can't help. Yahoo works fine with Firefox,

  • Changing subtitle stream during playback of Video track

    Hi all, Can someone please help me out with changing the subtitle stream during playback of a video track? The subtitle button doesn't seem to cycle through the 4 languages we have on the track. thanks!