Problem about com.sap.tc.logging.LogController.removeLogs

Hi guy
I create a LogIt class. code like this
{private static Category cate = Category.getCategory(Category.APPLICATIONS,"/shneider/km");
     private static void iniLog(){
          cate.removeLogs();
when runtime I find error in sap nwa log
Help me
thanks
#/System/Server#sap.com/tcwddispwda#com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler#test#14082##n/a##a814584afdb211dfcddb000000d54062#SAPEngine_Application_Thread[impl:3]_27##0#0#Error#1#com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler#Plain###com.sapmarkets.bam.util.BAMRuntimeException: Permission denied by JMX.#
#/System/Server#sap.com/tcwddispwda#com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler#test#14082##n/a##a814584afdb211dfcddb000000d54062#SAPEngine_Application_Thread[impl:3]_27##0#0#Error#1#com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler#Plain###com.sap.engine.services.jmx.exception.JmxSecurityException: Caller test not authorized, only role administrators is allowed to access JMX#
#/System/Server#sap.com/tcwddispwda#com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler#test#14082##n/a##a814584afdb211dfcddb000000d54062#SAPEngine_Application_Thread[impl:3]_27##0#0#Error#1#com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler#Plain###java.security.AccessControlException: access denied (javax.management.MBeanPermission -\#-[:SAP_J2EECluster="",SAP_J2EEClusterNode="",j2eeType=LVLogType,name=./log/schneider/debug/km.%g.log] unregisterMBean)#
#/System/Server#sap.com/tcwddispwda#com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler#test#14082##n/a##a814584afdb211dfcddb000000d54062#SAPEngine_Application_Thread[impl:3]_27##0#0#Error#1#com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler#Plain###Originated from: java.security.AccessControlException: access denied (javax.management.MBeanPermission -\#-[:SAP_J2EECluster="",SAP_J2EEClusterNode="",j2eeType=LVLogType,name=./log/schneider/debug/km.%g.log] unregisterMBean)
     at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
     at java.security.AccessController.checkPermission(AccessController.java:401)
     at com.sap.engine.services.jmx.EngineAuthorization.checkMBeanPermission(EngineAuthorization.java:66)
     at com.sap.engine.services.jmx.auth.UmeAuthorization.checkMBeanPermission(UmeAuthorization.java:77)
     at com.sap.engine.services.jmx.JmxServerFrame.checkMBeanPermission(JmxServerFrame.java:98)
     at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.unregisterMBean(MBeanServerSecurityWrapper.java:395)
     at com.sap.engine.services.jmx.ClusterInterceptor.unregisterMBean(ClusterInterceptor.java:1327)
     at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.unregisterMBean(MBeanServerInterceptorChain.java:258)
     at com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler.unRegisterLogMBean(AbstractFileLogHandler.java:538)
     at com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler.handleEvent(AbstractFileLogHandler.java:563)
     at com.sap.tc.logging.LoggingManager.notifyRemoveLog(LoggingManager.java:379)
     at com.sap.tc.logging.LogController.removeLogsNormalInt(LogController.java:3394)
     at com.sap.tc.logging.LogController.removeLogs(LogController.java:1462)
     at com.deep.util.LogIt.iniLog(LogIt.java:142)
     at com.deep.util.LogIt.Log(LogIt.java:45)
     at com.deep.authoriy.impl.KmAuthServImpl.getBoScope(KmAuthServImpl.java:91)
     at com.deep.service.impl.KmCategoriesSerivceImpl.hasGrandson(KmCategoriesSerivceImpl.java:175)
     at com.deep.km.cate.comp.Comp_KmCategories.getCategories(Comp_KmCategories.java:703)
     at com.deep.km.cate.comp.Comp_KmCategories.initKmCategoriesTree(Comp_KmCategories.java:354)
     at com.deep.km.cate.comp.Comp_KmCategories.initView(Comp_KmCategories.java:541)
     at com.deep.km.cate.comp.Comp_KmCategories.wdDoInit(Comp_KmCategories.java:137)
     at com.deep.km.cate.comp.wdp.InternalComp_KmCategories.wdDoInit(InternalComp_KmCategories.java:367)
     at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
     at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
     at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
Edited by: yan liang on Dec 2, 2010 4:02 AM

java.lang.NoClassDefFoundError: <b>com/sap/tc/logging/Configurator</b>
Either a missing jar or the classpath is not defined right.

Similar Messages

  • NoClassDefFoundError: com/sap/sql/log/OpenSQLException

    I have developed a Java project. It consists of 2 SQLJ files and then a Java class. When I try to execute the Java program, I get a Java error:
    java.lang.NoClassDefFoundError: com/sap/sql/log/OpenSQLException
         at com.mbb.crrs.business.report.dao.ReportDAO.<init>(ReportDAO.sqlj:23)
         at com.mbb.crrs.business.report.dao.Test.main(Test.java:24)
    Exception in thread "main"
    I notice a similar problem on message: Re: Which jar to include com.sap.sql.log.OpenSQLException
    Is that something that I need to maintain for it to work? Thank you.

    Hi,
    the problem one year ago was that the SQLException class was not available through remote access. I don't know if that might have been changed meanwhile in the latest release.
    I implemented a simple work around: I caught every SQL-exception in the method where it was thrown, wrapped the exception message and any nested exception in a self written exception and threw this new exception. That worked fine.
    Regards, Astrid

  • Java.lang.NoClassDefFoundError: com/sap/tc/logging/Configurator

    I have installed this NWDS 2.0.12. When I click on the icon from desktop, I see a splash screen for a second and then immediately an error message saying 'Problem during startup. Check the .log file in .metadata folder of your workspace.'
    Following is the log file
    !SESSION -
    !ENTRY org.eclipse.core.launcher 4 0 Jun 29, 2006 16:09:37.302
    !MESSAGE Exception launching the Eclipse Platform:
    !STACK
    java.lang.NoClassDefFoundError: com/sap/tc/logging/Configurator
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
         at java.lang.Class.getConstructor0(Class.java:1930)
         at java.lang.Class.getConstructor(Class.java:1027)
         at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:709)
         at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:188)
         at org.eclipse.core.internal.plugins.PluginClassLoader.activatePlugin(PluginClassLoader.java:112)
         at org.eclipse.core.internal.plugins.PluginClassLoader.internalFindClassParentsSelf(PluginClassLoader.java:185)
         at org.eclipse.core.internal.boot.DelegatingURLClassLoader.findClassParentsSelf(DelegatingURLClassLoader.java:485)
         at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:882)
         at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:862)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:130)
         at org.eclipse.core.internal.plugins.PluginDescriptor.createExecutableExtension(PluginDescriptor.java:167)
         at org.eclipse.core.internal.plugins.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:103)
         at org.eclipse.core.internal.runtime.InternalPlatform.loaderGetRunnable(InternalPlatform.java:578)
         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:324)
         at org.eclipse.core.internal.boot.InternalBootLoader.getRunnable(InternalBootLoader.java:471)
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:854)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         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:324)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:286)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:784)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:602)
    Can somebody help me to resolve this? What should be the potential cause for the error?

    java.lang.NoClassDefFoundError: <b>com/sap/tc/logging/Configurator</b>
    Either a missing jar or the classpath is not defined right.

  • Com.sap.sql.log.OpenSQLException: table or view not exists

    Hi!.
    I'm developing a Portal Component over NW EP 2004s (7.0) which access to SQL Server database. I have created three tables on the system db (EPD). Connection is Ok, over datasource object, but i can't make a SELECT operation to my new tables.
    Hovewer, making a SELECT operation over older system tables is OK.
    I have adjusted permissions on my new tables, similar to the older tables. The table's owner is the same too.
    The exception i get is:
    **Exception of type com.sap.sql.log.OpenSQLException caught: The SQL statement "SELECT * FROM "SAPEPDDB"."UME_EP_UNLOCKUSERS"" contains the semantics error[s]: - 1:24 - the table or view >>UME_EP_UNLOCKUSERS<< does not exist**
    [EXCEPTION]
    *com.sap.sql.log.OpenSQLException: The SQL statement "SELECT * FROM "SAPEPDDB"."UME_EP_UNLOCKUSERS"" contains the semantics error[s]: - 1:24 - the table or view >>UME_EP_UNLOCKUSERS<< does not exist*
    at com.sap.sql.jdbc.common.StatementAnalyzerImpl.check(StatementAnalyzerImpl.java:38)
    at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:101)
    at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:87)
    at com.sap.sql.jdbc.common.CommonStatementImpl.executeQuery(CommonStatementImpl.java:114)
    at com.sap.engine.services.dbpool.wrappers.StatementWrapper.executeQuery(StatementWrapper.java:172)
    at com.uralita.database.DbManager.executeQuery(DbManager.java:105)
    at com.uralita.ListaSistemas$ListaSistemasDynPage.getSystemsR3(ListaSistemas.java:184)
    at com.uralita.ListaSistemas$ListaSistemasDynPage.doInitialization(ListaSistemas.java:93)
    at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:105)
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:377)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:390)
    at com.sapportals.portal.prt.core.async.ThreadContextRunnable.run(ThreadContextRunnable.java:164)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: com.sap.sql.sqlparser.CommonSQLParserException: - 1:24 - the table or view >>UME_EP_UNLOCKUSERS<< does not exist
    at com.sap.sql.sqlparser.CommonSQLStatement.checkSemantics(CommonSQLStatement.java:171)
    at com.sap.sql.jdbc.common.StatementAnalyzerImpl.check(StatementAnalyzerImpl.java:35)
    ... 19 more
    caused by
    com.sap.sql.sqlparser.CommonSQLParserException: - 1:24 - the table or view >>UME_EP_UNLOCKUSERS<< does not exist
    at com.sap.sql.sqlparser.CommonSQLStatement.checkSemantics(CommonSQLStatement.java:171)
    at com.sap.sql.jdbc.common.StatementAnalyzerImpl.check(StatementAnalyzerImpl.java:35)
    at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:101)
    at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:87)
    at com.sap.sql.jdbc.common.CommonStatementImpl.executeQuery(CommonStatementImpl.java:114)
    at com.sap.engine.services.dbpool.wrappers.StatementWrapper.executeQuery(StatementWrapper.java:172)
    at com.uralita.database.DbManager.executeQuery(DbManager.java:105)
    at com.uralita.ListaSistemas$ListaSistemasDynPage.getSystemsR3(ListaSistemas.java:184)
    at com.uralita.ListaSistemas$ListaSistemasDynPage.doInitialization(ListaSistemas.java:93)
    at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:105)
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:377)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:390)
    at com.sapportals.portal.prt.core.async.ThreadContextRunnable.run(ThreadContextRunnable.java:164)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)
    at java.lang.Thread.run(Thread.java:534)
    Someone has been getting this problem? Any idea?
    Thanks!

    I have tried that.
    [EXCEPTION]
    *com.sap.sql.log.OpenSQLException: The SQL statement "SELECT * FROM EPD.SAPEPDDB.UME_EP_SLD" contains the syntax error[s]: - Open SQL syntax error: table names must not specify a catalog name (delete "EPD". before "SAPEPDDB"."UME_EP_SLD")*
    Database name must be Ok, because i can access to other tables which are in the same DB...
    Thanks for your help

  • Com.sap.tc.logging.* package

    I need to download com.sap.tc.logging.* package. Anybody guide me from where i can get this package downloaded.
    I need this package for the for the location class that is in this package please help me ot

    well I can confirm that Location.class is DEFINATELY part of that jar file.  Im using it constantly.
    There must be some problem with the way you are importing it.  Ensure its added to the right project as an external jar.
    then it should be a simple case of
    import com.sap.tc.logging.Location;
    and away you go ....
    Haydn

  • Need to get com.sap.tc.logging.*

    hi,
    Please anybody let me know from where i can get the com.sap.tc.logging.*

    Hello Ashwani,
    Please go through the forum link hope this helps even this one talk about the same issue.
    [com.sap.tc.logging.* package|com.sap.tc.logging.* package]
    Hayden I believe the forum link which I added here is also replied by you.
    Cheers-
    Pramod

  • Com.sap.sql.log.OpenSQLException during EntityManager Call

    Hi!
    I deployed an EJB3 session bean on the NW 7.1.
    The aim is to use JPA with this bean.
    I configured the "persistence.XML" for the bean project and packed it into the jar File and a "data-source-aliases.xml" which is included in the ear file. The packaging of the ear-file is done with the developerStudio and deployed on the NW 7.1
    Then I created a dataSource project which contains the "data-sources.xml" and deployed this too.
    Here is my data-sources.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE data-sources SYSTEM 'data-sources.dtd'>
    <data-sources>
        <data-source>
            <data-source-name>JPA_SDN_EXAMPLE_DS_555</data-source-name>
            <driver-name>ora10</driver-name>
            <sql-engine>native_sql</sql-engine>
            <jdbc-1.x>
                <driver-class-name>oracle.jdbc.driver.OracleDriver</driver-class-name>
    <!-- *** Edit the following entries appropriately *** -->
                <url>jdbc:oracle:thin:@10.XXX.7.27:1521:orcl</url>
                <user-name>bdeadm</user-name>
                <password>dmin</password>
    <!-- *** End editing ***  -->
            </jdbc-1.x>
        </data-source>
    </data-sources>
    My deployed session bean looks like this:
    @Stateless(name="WorkerBean")
    public class WorkerBean implements WorkerRemote {
         @PersistenceContext(unitName="JPAModel")
        private EntityManager em;
         public String sayHello() {
    The last step was the deploment of the oracle driver on the NW7.1 under the "Application Resources Overview". The driver I named "ora10".
    Now if I call my Bean shown above with its Entity Manager Call for the injection I got the following exception:
    Caused by: com.sap.sql.log.OpenSQLException: Error while accessing porting layer for ORACLE database via getSessionId().
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:148)
         at com.sap.sql.jdbc.direct.DirectConnectionFactory.createPooledConnection(DirectConnectionFactory.java:532)
         at com.sap.sql.jdbc.direct.DirectConnectionFactory.createDirectPooledConnection(DirectConnectionFactory.java:157)
         at com.sap.sql.jdbc.direct.DirectConnectionFactory.createDirectPooledConnection(DirectConnectionFactory.java:117)
         at com.sap.sql.connect.factory.PooledConnectionFactory.createPooledConnection(PooledConnectionFactory.java:119)
         at com.sap.sql.connect.factory.DriverPooledConnectionFactory.getPooledConnection(DriverPooledConnectionFactory.java:38)
    I have no idea, whats wrong. Perhaps my driver is wrong or not set properly ?
    Can anybody help me please ?
    Thanks in advance,
    Hendrik
    Edited by: henne123 on May 18, 2009 6:19 PM

    I have tried that.
    [EXCEPTION]
    *com.sap.sql.log.OpenSQLException: The SQL statement "SELECT * FROM EPD.SAPEPDDB.UME_EP_SLD" contains the syntax error[s]: - Open SQL syntax error: table names must not specify a catalog name (delete "EPD". before "SAPEPDDB"."UME_EP_SLD")*
    Database name must be Ok, because i can access to other tables which are in the same DB...
    Thanks for your help

  • Missing package com.sap.tc.logging, where to download it?

    Hi all,
    I require this package in order to run my program based on webdynpro and Bw. specialing its looking for com.sap.tc.logging.location . The detailed exception is laready posted by me. from where can i download and install this package.
    In the eclipse plugins the package is only present with docs , but does'nt have classes in them.
    Thanks,
    Regards,
    karthik
    Message was edited by:
            Armin Reichert

    hi Kartik,
    it is logging.jar
    you will find that here:- http://sourceforge.net/projects/classlocator/
    its path on system is
    Path is C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.tssap.sap.libs.logging_2.0.0\lib
    regards,
    Message was edited by:
            Abhijeet

  • JAR file  "com.sap.tc.logging"

    If any one has this JAR file -- "com.sap.tc.logging.Category"
    Please mail it to me-- [email protected]
    Regards
    pranay

    Hi  Pranay
    When i try to create new DC it is giving me foolowing errors:
    com.sap not resolved.
    file_webdynpro_admin.jar etc.
    how did u resolve it?please help me out
    Thanks
    Prasad

  • How to import this package com.sap.tc.logging.location?

    Hi, all,
                I can't import this package into programming area since i'm using com.sap.tc.logging.location. I think my developer studio does not have such package. Do you know how do find such package and import it in the studio?
    Logging location.
      private static final com.sap.tc.logging.Location logger =
        com.sap.tc.logging.Location.getLocation(Exc_EJB_Component.class);

    hi
    try to see your package is avalible into Navigator prosective. if it has then import it from here itself
    thanks

  • Java mapping how to use com.sap.tc.logging

    Hi I would like to know how to use logging within a java mapping.
    I know i have to use theese classes : Location, Category, ConsoleLog but i dont know how.
    1) How to load the P1, P2, P3 and P4 tags in the Error tag of the SOAP header watched in SXMB_MONI
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">STREAM_TRANSFORMATION_EX</SAP:Code>
      <SAP:P1>SwissMedical/Interfaces/IFI002/LiquidacionMapping~</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Java mapping of application triggered an exception</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    2) How to load and activate log in the DIAGNOSTIC tag of the SOAP Header.
    - <SAP:Diagnostic xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:TraceLevel>Information</SAP:TraceLevel>
      <SAP:Logging>Off</SAP:Logging>
      </SAP:Diagnostic>
    Thanks!!

    As already suggested, you can display custom messages using AbstractTrace.
    trace = (AbstractTrace)param.get( StreamTransformationConstants.MAPPING_TRACE );
                        trace.addInfo("G1-CYCLE is missing");
    For more on coding front refer:
    http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/StreamTransformation.html
    To get this trace seen in MONI, set parameter TRACE_LEVEL in SXMB_ADM to 2.

  • Having problems with com.sap.dbtech.jdbc.DriverSapDB

    Hi all,
    I'm using webdynpro and i need to connect to a db.
    the line below throghs the Exception
    the line above throghs an Exception ClassNotFoundException
    Class.forName("com.sap.dbtech.jdbc.DriverSapDB");
    I have imported thre jar sapDB.jar what else can i do?
    I want to connect to an sql DB via java and i stack.
    need your help,
    Yoav
    Message was edited by: Yoav Toussia Cohen

    Hi Yoav,
    I belive you put the database access codes in your Web Dynpro's implementation. In this case you need to have your JDBC driver deployed as shared library to the server. You also need to define the Library Reference in your Web Dynpro's project properties.
    However, this is not a good approach and Web Dynpro never intends for business process development. You should have an EJB wrapped your database access. Then import this EJB as a model in Web Dynpro to preserve the MVC separation. Always remember Web Dynpro is an UI development tool and not for business process.
    Regards,
    Marc

  • Problem about Biztalk SAP adapter running on 64-bit host instance.

    Hi there
    Both 32-bit and 64-bit host instances are running. We use WCF-Custom adapter to communicate with SAP. And for WCF-Custom adapter, we assigned a 64-bit host.
    We copied all the library files in rfcsdk32bit to folder Windows\System32, and those in rfcsdk64bit to folder Windows\SysWOW64.
    All is going just fine until we can not enable the receive location retrieving data from SAP with WCF-Custom adapter and BindingType sapBinding. Error information as below:
    Reason: System.BadImageFormatException: Could not load file or assembly 'Microsoft.Adapters.SAP.SAPGInvoker.dll' or one of its dependencies.  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
    File name: 'Microsoft.Adapters.SAP.SAPGInvoker.dll'
       at Microsoft.Adapters.SAP.SAPBinding.CreateBindingElements()
       at System.ServiceModel.Channels.Binding.CanBuildChannelListener[TChannel](BindingParameterCollection parameters)
       at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfUtils.IsQueuedReceive(Binding binding)
       at Microsoft.BizTalk.Adapter.Wcf.Runtime.BtsServiceHostBase.InitializeRuntime()
       at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
       at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
       at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiveEndpoint.Enable()
       at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiveEndpoint..ctor(BizTalkEndpointContext endpointContext, IBTTransportProxy transportProxy, ControlledTermination control)
       at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfReceiver`2.AddReceiveEndpoint(String url, IPropertyBag adapterConfig, IPropertyBag bizTalkConfig)
    This problem disappears right after we switch the host for WCF-Custom adapter back to a 32-bit host, which is for sure.
    Some gudiance instructed: Both 32-bit rfcsdk library files and 64-bit rfcsdk library files need to be copied into both two directories above. But most of the filenames are overlapped obviously. How come they can exists under a same directory?
    Or do I just get the wrong 64-bit rfcsdk? Does anyone happen to have by hand? I already serach through SAP download site. My rfcsdk files list is below:
    32-bit:
     icudt34.dll
     icuin34.dll
     icuuc34.dll
     librfc32u.dll
     librfc32u.lib
     libsapu16vc80.dll
     libsapucum.dll
     libsapucum.lib
     saprfc32.lib
    64-bit:
    icudt26l.dll
    icuin26.dll
    icuuc26.dll
    librfc32u.dll
    librfc32u.lib
    libsapu16vc71.dll
    libsapucum.dll
    libsapucum.lib
    Thanks
    Gou Jun

    The librfc32u.dll seems to be compiled against 4053 version (SP1 ATL security update) of C++ runtime so best to have that installed as well. So I would make sure to have x86 and x64 versions SP1 + MFC + ATL updates.
    C++ redistributable 2005 SP1 x86 + x64 + security update(s)
    X86 SP1 :
    http://www.microsoft.com/download/en/details.aspx?id=5638 
    X64 ! SP1 :
    http://www.microsoft.com/download/en/details.aspx?id=18471 
    X86 + x64 ATL security updates :
    http://www.microsoft.com/download/en/details.aspx?id=14431 
    X86 + x64 MFC security updates :
    http://www.microsoft.com/download/en/details.aspx?id=26347 
    C++ redistributable 2008 SP1 x86 + x64 + security update(s)
    X86 SP1 :
    http://www.microsoft.com/download/en/details.aspx?id=55821 
    X64 SP1 :
    http://www.microsoft.com/download/en/details.aspx?id=2092  
    X86 + x64 ATL security updates :
    http://www.microsoft.com/download/en/details.aspx?id=11895 
    X86 + x64 MFC security updates :
    http://www.microsoft.com/download/en/details.aspx?id=26368 
    librfc32u.dll manifest is this when checking it out in VS:
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
      <dependency>
        <dependentAssembly>
          <assemblyIdentity type="win32" name="Microsoft.VC80.CRT" version="8.0.50727.4053" processorArchitecture="amd64" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
        </dependentAssembly>
      </dependency>
    </assembly>

  • Facing problem in starting SAP J2EE engine

    Hi All,
    When I try to run SAP J2EE Server, it gives following error:
    #1.5#000F20FE32180016000001AE00000EB8000416A438091875#1150794476987#com.sapmarkets.bam.jmxadapter.util.LogDirectory##com.sapmarkets.bam.jmxadapter.util.LogDirectory######1f9667b0003c11dbac71000f20fe3218#SAPEngine_System_Thread[impl:5]_53##0#0#Error#1#/System/Server#Plain###Error writing log directory entryC:
    tmp
    bhawnar_J2E_00_3850950_lv_.xml (The system cannot find the path specified)#
    #1.5#000F20FE32180016000001B000000EB8000416A438091B26#1150794476987#com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler##com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler######1f9667b0003c11dbac71000f20fe3218#SAPEngine_System_Thread[impl:5]_53##0#0#Error#1#/System/Server#Plain###com.sapmarkets.bam.util.BAMRuntimeException: Error occured while trying to register     a new log#
    #1.5#000F20FE32180016000001B200000EB8000416A438091D29#1150794476987#com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler##com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler######1f9667b0003c11dbac71000f20fe3218#SAPEngine_System_Thread[impl:5]_53##0#0#Error#1#/System/Server#Plain###com.sapmarkets.bam.util.BAMRuntimeException: <Localization failed: ResourceBundle='com.sapmarkets.bam.util.LogViewerMessages', ID='Error while writing to directory.', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key Error while writing to directory.#
    #1.5#000F20FE32180016000001B400000EB8000416A438092836#1150794476987#com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler##com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler######1f9667b0003c11dbac71000f20fe3218#SAPEngine_System_Thread[impl:5]_53##0#0#Error#1#/System/Server#Plain###Originated from: com.sapmarkets.bam.util.BAMRuntimeException: <Localization failed: ResourceBundle='com.sapmarkets.bam.util.LogViewerMessages', ID='Error while writing to directory.', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key Error while writing to directory.
         at com.sapmarkets.bam.jmxadapter.util.LogDirectory.write(LogDirectory.java:779)
         at com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler.addToDirectory(AbstractFileLogHandler.java:361)
         at com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler.registerLogAsMBean(AbstractFileLogHandler.java:249)
         at com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler.registerLogMBean(AbstractFileLogHandler.java:151)
         at com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler.registerLogMBean(AbstractFileLogHandler.java:85)
         at com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler.registerLogMBean(AbstractFileLogHandler.java:402)
         at com.sapmarkets.bam.jmxadapter.sapjlog.AbstractFileLogHandler.handleEvent(AbstractFileLogHandler.java:469)
         at com.sap.tc.logging.LoggingManager.notifyAddLog(LoggingManager.java:342)
         at com.sap.tc.logging.LogController.addLog(LogController.java:1328)
         at com.sap.engine.services.log_configurator.admin.LogConfigurator.adjustConfiguration(LogConfigurator.java:989)
         at com.sap.engine.services.log_configurator.admin.LogConfigurator.applyConfiguration(LogConfigurator.java:1488)
         at com.sap.engine.services.log_configurator.LogConfiguratorContainer.prepareStart(LogConfiguratorContainer.java:545)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:239)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepareLocal(StartTransaction.java:192)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:365)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:117)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesLocalAndWait(ParallelAdapter.java:235)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationLocalAndWait(DeployServiceImpl.java:4443)
         at com.sap.engine.services.deploy.server.ReferenceResolver.processReferenceToApplication(ReferenceResolver.java:608)
         at com.sap.engine.services.deploy.server.ReferenceResolver.processMakeReference(ReferenceResolver.java:399)
         at com.sap.engine.services.deploy.server.ReferenceResolver.beforeStartingApplication(ReferenceResolver.java:328)
         at com.sap.engine.services.deploy.server.application.StartTransaction.beginCommon(StartTransaction.java:178)
         at com.sap.engine.services.deploy.server.application.StartTransaction.beginLocal(StartTransaction.java:152)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:356)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:117)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesLocalAndWait(ParallelAdapter.java:235)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationLocalAndWait(DeployServiceImpl.java:4443)
         at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationLocalAndWait(DeployCommunicatorImpl.java:609)
         at com.sap.engine.services.webdynpro.WebDynproContainer.startExternal(WebDynproContainer.java:633)
         at com.sap.engine.services.webdynpro.WebDynproContainer.startDependant(WebDynproContainer.java:534)
         at com.sap.engine.services.webdynpro.WebDynproContainer.startInternal(WebDynproContainer.java:700)
         at com.sap.engine.services.webdynpro.WebDynproContainer.prepareStart(WebDynproContainer.java:1418)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:239)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepareLocal(StartTransaction.java:192)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:365)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:117)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesLocalAndWait(ParallelAdapter.java:235)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationLocalAndWait(DeployServiceImpl.java:4443)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationsInitially(DeployServiceImpl.java:2568)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.clusterElementReady(DeployServiceImpl.java:2425)
         at com.sap.engine.services.deploy.server.ClusterServicesAdapter.containerStarted(ClusterServicesAdapter.java:42)
         at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.processEvent(ContainerEventListenerWrapper.java:144)
         at com.sap.engine.core.service630.container.AdminContainerEventListenerWrapper.processEvent(AdminContainerEventListenerWrapper.java:19)
         at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.run(ContainerEventListenerWrapper.java:102)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
    Can anyone help me on this, it was working fine earlier. I stopped the server and restarted my machine, from then on its not working...

    Hi,
    I have 1GB RAM, and I have already increased virtual memory.
    Finally I had to reinstall SAP Server
    thanks
    bhawna

  • JSPM fails to start: Could not load data model com.sap.sdt.jspm.model

    Hi
    We running windows server with ERP 6.0 and this was coppied from another server.
    The JSPM fails with the following error.
    Trouble Ticket Report
    Java Support Package Manager for SAP NetWeaver'04s
    SID................: $(/J2EE/StandardSystem/SAPSystemName)
    Hostname...........: $(/J2EE/SAPGlobalHost)
    Install directory..: $(/J2EE/StandardSystem/SAPSIDDirectory)
    Database...........: $(/J2EE/DBSystem/DBInfoName)
    Operating System...: $(/J2EE/StandardSystem/CentralInstance/J2EEEngineInstanceHost/OpSysType)
    JDK version........: $(/SystemProperties/JavaVersion) $(/SystemProperties/JavaVendor)
    JSPM version.......: $(/MAIN_VERSION)
    System release.....: $(/J2EE/StandardSystem/Version)
    ABAP stack present.: $(/J2EE/StandardSystem/BCSystemPresent)
    The execution ended in error.
    Could not load data model com.sap.sdt.jspm.model.JspmDataModel. See previous messages.
    Class with name com.sap.sdt.j2ee.model.NWDISystemRole not found.
    More information can be found in the log file .
    Use the information provided to trouble-shoot the problem. There might be an OSS note providing a solution to this problem. Search for OSS notes with the following search terms:
    com.sap.sdt.tools.model.LoadException
    Could not load data model com.sap.sdt.jspm.model.JspmDataModel. See previous messages.
    JSPM_MAIN
    JSPMPhases
    NetWeaver Upgrade
    SAPJup
    Java Upgrade
    SAPJup.LOG
    <!LOGHEADER[START]/>
    <!HELP[Manual modification of the header may cause parsing problem!]/>
    <!LOGGINGVERSION[1.5.3.7185 - 630]/>
    <!NAME[D:
    usr
    sap
    ERP
    DVEBMGS10
    j2ee
    JSPM
    log
    log_2008_11_17_12_39_25
    SAPJup.LOG]/>
    <!PATTERN[SAPJup.LOG]/>
    <!FORMATTER[com.sap.tc.logging.ListFormatter]/>
    <!ENCODING[UTF8]/>
    <!LOGHEADER[END]/>
    #1.5 #C0000A0A0A3D00000000000F010E329300045BE031D40CA8#1226918373625#/System/Server/Upgrade/Jump##com.sap.sdt.ucp.pce.build.BuilderDirector.extractElements(BuilderDirector.java:132)#######Thread[main,5,main]##0#0#Info#1#com.sap.sdt.ucp.pce.build.BuilderDirector.extractElements(BuilderDirector.java:132)#Java###Tag with name found.#2#ControlUnit#JSPM#
    #1.5 #C0000A0A0A3D000000000010010E329300045BE031D577F0#1226918373718#/System/Server/Upgrade/Jump##com.sap.sdt.ucp.pce.build.BuilderDirector.createUnits(BuilderDirector.java:186)#######Thread[main,5,main]##0#0#Info#1#com.sap.sdt.ucp.pce.build.BuilderDirector.createUnits(BuilderDirector.java:186)#Java###Creating control unit .#1#JSPM#
    #1.5 #C0000A0A0A3D000000000011010E329300045BE031D6E720#1226918373812#/System/Server/Upgrade/Jump##com.sap.sdt.ucp.pce.ctrl.ExecutionDialog.showWelcomeDialog(ExecutionDialog.java:421)#######Thread[main,5,main]##0#0#Info#1#com.sap.sdt.ucp.pce.ctrl.ExecutionDialog.showWelcomeDialog(ExecutionDialog.java:421)#Java###Could not process dialog because execution dialogs have been suppressed.#1#JspmWelcomeDialog#
    #1.5 #C0000A0A0A3D000000000012010E329300045BE031D6E720#1226918373812#/System/Server/Upgrade/Jump##com.sap.sdt.ucp.pce.ctrl.ActionExecutor.execute(ActionExecutor.java:103)#######Thread[main,5,main]##0#0#Info#1#com.sap.sdt.ucp.pce.ctrl.ActionExecutor.execute(ActionExecutor.java:103)#Java###Starting execution of action with name and type .#2#Unit#JSPM#
    #1.5 #C0000A0A0A3D000000000013010E329300045BE032541218#1226918382015#/System/Server/Upgrade/Jump##com.sap.sdt.ucp.pce.ctrl.ActionExecutor.execute(ActionExecutor.java:103)#######Thread[main,5,main]##0#0#Info#1#com.sap.sdt.ucp.pce.ctrl.ActionExecutor.execute(ActionExecutor.java:103)#Java###Starting execution of action with name and type .#2#Modul#JSPMPhases#
    #1.5 #C0000A0A0A3D000000000014010E329300045BE032541218#1226918382015#/System/Server/Upgrade/Jump##com.sap.sdt.ucp.pce.ctrl.ActionExecutor.execute(ActionExecutor.java:103)#######Thread[main,5,main]##0#0#Info#1#com.sap.sdt.ucp.pce.ctrl.ActionExecutor.execute(ActionExecutor.java:103)#Java###Starting execution of action with name and type .#2#Phase#JSPM_MAIN#
    #1.5 #C0000A0A0A3D000000000015010E329300045BE0333D02E8#1226918397281#/System/Server/Upgrade/Jump##com.sap.sdt.tools.model.AbstractDataModelElement.getClassByName(AbstractDataModelElement.java:743)#######Thread[main,5,main]##0#0#Error#1#com.sap.sdt.tools.model.AbstractDataModelElement.getClassByName(AbstractDataModelElement.java:743)#Java###Class with name com.sap.sdt.j2ee.model.NWDISystemRole not found.##
    #1.5 #C0000A0A0A3D000000000016010E329300045BE0333D3D80#1226918397296#/System/Server/Upgrade/Jump##com.sap.sdt.tools.model.DataModel.load(DataModel.java:89)#######Thread[main,5,main]##0#0#Error#1#com.sap.sdt.tools.model.DataModel.load(DataModel.java:89)#Java###Could not load data model com.sap.sdt.jspm.model.JspmDataModel. See previous messages.##

    Hi Patrick ,
    What user did you use to start JSPM? Was it <sid>adm? Also based on the error it seems there is something wrong with DataModel.xml JSPM uses. And you've mentioned it was copied from another system if I get it right.
    So as a quick workaround you could try removing:
    - Jspm.DataModel.xml
    - Jspm.J2EE.DataModel.xml
    - Jspm.JSPM.DataModel.xml
    from ../j2ee/JSPM/data/variables directory and give JSPM another try.
    Please make sure the rest of the XMLs are in place otherwise JSPM won't start.
    Regards,
    Vasil

Maybe you are looking for

  • "John Smith's iPod" cannot be synced.  The required folder cannot be found.

    I received a new red 2nd generation iPod shuffle as a gift, with songs loaded on it. Everything was fine until I tried to charge it. I got the message "this iPod synced with another computer, would you like to erase all songs and synce with your comp

  • Creating a simple OS via Oracle Manager

    I have created an Oracle Server and an Oracle manager in 2 VMWare servers to test the process prior to building the physical systems. I have imported the iso into Manager and tried to use these to do the install, although I can't see how the 5 CD set

  • Unable to create post script file in framemaker.

              I installed TCS 4.0 licensed suite. Due to some reason I need to delete Adobe PDF from Devices and Printers. Since then I am unable to create post script file using framemaker. I have tried uninstalling and installing TCS 4.0 again, but all

  • How to use ARD to access a PC running Windows 7?

    Hi, I just want to VNC my PC in the office. How do I access Windows 7 from my Mac using ARD 3.6.1? My PC has RealVNC server running but they dont' seem to talk well with my Mac's ARD.

  • 2.8GHz 24" iMac Making Weird Noises

    It started out sounding exactly like a cricket. When I first heard it, that's what I thought it was. It would start soft and grow louder, then softer again and fade out. Now the sound has the same pattern, but it's evolved into a full-fledged rattle/