8 Replies Latest reply: Jan 3, 2013 5:51 PM by 792849 RSS

    Error while implementing quartz-1.8.4 in weblogic server

    Vikash Kumar
      Hi,

      I am working on a scenario wherein the BPEL process has to be triggered at a particular interval.

      For this, I followed a helpful url: https://blogs.oracle.com/sdhurjati/entry/ready_to_use_quartz_scheduler

      It is working fine.

      But before deploying the project to weblogic server, I changed the quartz_jobs.xml to trigger the "AnotherEchoService" after every 30 secs. For 3-4 times, it is able to trigger successfully. But, after that I am getting below exception:

      ***********************************************************
      [INFO] 11 Sep 10:47:00.003 AM 'QuartzScheduler'_Worker-3 [org.quartz.plugins.his
      tory.LoggingTriggerHistoryPlugin]
      Trigger DEFAULT.AnotherEchoServiceTrigger fired job DEFAULT.AnotherEchoService a
      t: 10:47:00 09/11/2012

      [DEBUG] 11 Sep 10:47:00.003 AM 'QuartzScheduler'_Worker-3 [org.quartz.core.JobRu
      nShell]
      Calling execute on job DEFAULT.AnotherEchoService

      java.lang.UnsupportedOperationException: This class does not support SAAJ 1.1
      at weblogic.webservice.core.soap.SOAPMessageImpl.getSOAPBody(SOAPMessage
      Impl.java:631)
      at com.oracle.quartz.scheduler.WSInvocationJob.execute(WSInvocationJob.j
      ava:89)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
      ava:549)
      <11 Sep, 2012 10:47:00 AM IST> <Error> <Default> <BEA-000000> <java.lang.Unsuppo
      rtedOperationException: This class does not support SAAJ 1.1>
      [INFO] 11 Sep 10:47:00.015 AM 'QuartzScheduler'_Worker-3 [org.quartz.plugins.his
      tory.LoggingTriggerHistoryPlugin]
      Trigger DEFAULT.AnotherEchoServiceTrigger completed firing job DEFAULT.AnotherEc
      hoService at 10:47:00 09/11/2012.
      ***********************************************************

      Could anyone please help me in getting the fix of it?

      Thanks in advance..
        • 1. Re: Error while implementing quartz-1.8.4 in weblogic server
          chris227
          same answer as in pl/sql forum:

          http://lmgtfy.com/?q=SAAJ+1.1

          2nd hit:

          https://blogs.oracle.com/sravansarraju/entry/weblogic_saaj_version_problem_javalangunsupportedoperationexception_this_class_does_not_support_saaj
          • 2. Re: Error while implementing quartz-1.8.4 in weblogic server
            Kalyan Pasupuleti-Oracle
            Hi,

            Try this two option with in startup script.

            -Djavax.xml.soap.MessageFactory=weblogic.xml.saaj.MessageFactoryImpl
            -Djavax.xml.soap.SOAPFactory=weblogic.xml.saaj.SOAPFactoryImpl

            Regards,
            Kal
            • 3. Re: Error while implementing quartz-1.8.4 in weblogic server
              Vikash Kumar
              Ohh I am sorry.. :)

              I just had clicked on your url and posted a new thread.
              • 4. Re: Error while implementing quartz-1.8.4 in weblogic server
                Vikash Kumar
                Thanks for the response Kal.

                I am bit late in replying to your post.

                I just tried the same in startWebLogic.cmd(as I am using windows version). The section I have updated is:

                :classCaching
                     echo Class caching enabled...
                     set JAVA_OPTIONS=%JAVA_OPTIONS% -Dlaunch.main.class=%SERVER_CLASS% -Dlaunch.class.path="%CLASSPATH%" -Dlaunch.complete=weblogic.store.internal.LockManagerImpl -Djavax.xml.soap.MessageFactory=weblogic.xml.saaj.MessageFactoryImpl -Djavax.xml.soap.SOAPFactory=weblogic.xml.saaj.SOAPFactoryImpl -cp %WL_HOME%\server\lib\pcl2.jar
                     set JAVA_OPTIONS = "$ (JAVA_OPTIONS)-Djavax.xml.soap.MessageFactory = com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl"
                     set JAVA_OPTIONS = "$ (JAVA_OPTIONS)-Djavax.xml.soap.SOAPConnectionFactory = weblogic.wsee.saaj.SOAPConnectionFactoryImpl"
                     set SERVER_CLASS=com.oracle.classloader.launch.Launcher
                GOTO :EOF

                Could you please suggest if that is the correct place to add? As still I am facing the same issue.

                Thanks in advance,
                Vikas
                • 5. Re: Error while implementing quartz-1.8.4 in weblogic server
                  Kalyan Pasupuleti-Oracle
                  Hi,

                  try to set in this way.


                  set JAVA_OPTIONS = -Djavax.xml.soap.MessageFactory=weblogic.xml.saaj.MessageFactoryImpl -Djavax.xml.soap.SOAPFactory=weblogic.xml.saaj.SOAPFactoryImpl %JAVA_OPTIONS%

                  and try one more time.

                  Regards,
                  Kal
                  • 6. Re: Error while implementing quartz-1.8.4 in weblogic server
                    Vikash Kumar
                    Thanks Kal But Still I am getting the below exception:

                    java.lang.UnsupportedOperationException: This class does not support SAAJ 1.1
                    at weblogic.webservice.core.soap.SOAPMessageImpl.getSOAPBody(SOAPMessage
                    Impl.java:631)
                    at com.oracle.quartz.scheduler.WSInvocationJob.execute(WSInvocationJob.j
                    ava:89)
                    at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
                    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
                    ava:549)
                    <1 Oct, 2012 8:31:30 PM IST> <Error> <Default> <BEA-000000> <java.lang.Unsupport
                    edOperationException: This class does not support SAAJ 1.1>
                    [INFO] 01 Oct 08:31:30.014 PM 'QuartzScheduler'_Worker-4 [org.quartz.plugins.his
                    tory.LoggingTriggerHistoryPlugin]
                    Trigger DEFAULT.JobSchedulerService completed firing job DEFAULT.JobSchedulerSer
                    vice at 20:31:30 10/01/2012.

                    As asked, I have updated the "startWebLogic.cmd" but not sure if we need to do something else :( .. pls suggest.

                    Actually it works well but once I login to em console to see the number of instances, it fails and hence forth it doesn't trigger the service(JobSchedulerService) at all.

                    Edited by: user13152329 on 1 Oct, 2012 8:08 AM
                    • 7. Re: Error while implementing quartz-1.8.4 in weblogic server
                      Kalyan Pasupuleti-Oracle
                      Hi,

                      Running with the following setting while starting WLS, the call completed successfully.

                      -Djavax.xml.soap.MessageFactory=weblogic.xml.saaj.MessageFactoryImpl
                      -Djavax.xml.soap.SOAPFactory=weblogic.xml.saaj.SOAPFactoryImpl

                      Starting WLS with line:

                      C:\BEA_IN~1\bea90\JDK150~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=32m
                      -XX:MaxPermSize=128m -Xverify:none -da -Dplatform.home=C:\BEA_IN~1\bea90\WEBLOG~1
                      -Dwls.home=C:\BEA_IN~1\bea90\WEBLOG~1\server -Dwli.home=C:\BEA_IN~1\bea90\WEBLOG~1\integration
                      -Dweblogic.management.discover=true -Dweblogic.ProductionModeEnabled= -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole=
                      -Dweblogic.ext.dirs=C:\BEA_IN~1\bea90\patch_weblogic901\profiles\default\sysext_manifest_classpath
                      -Djavax.xml.soap.MessageFactory=weblogic.xml.saaj.MessageFactoryImpl
                      -Djavax.xml.soap.SOAPFactory=weblogic.xml.saaj.SOAPFactoryImpl -Dweblogic.Name=AdminServer
                      -Djava.security.policy=C:\BEA_IN~1\bea90\WEBLOG~1\server\lib\weblogic.policy weblogic.Server


                      Try to set them with in preclasspath and check again it should work.

                      Regards,
                      kal
                      • 8. Re: Error while implementing quartz-1.8.4 in weblogic server
                        792849
                        Change this line of your code:
                        MessageFactory messageFactory = MessageFactory
                                            .newInstance();
                        to this
                        MessageFactory messageFactory = MessageFactory
                                            .newInstance(SOAPConstants.SOAP_1_1_PROTOCOL);
                        Edited by: thiagovespa on 03/01/2013 15:51