Is it possible to instantiate arbitrary classes at runtime??

Hi,
I was wondering if it is possible to instantiate an arbitrary class at runtime using its class name.
My plan is to have a collection of java classes in a folder, which could be instantiated and have their member methods called. This collection of classes however, could change at any time. I'd like to be able to specify which class to work with at runtime, using a string containing the class name to identify it.
Is this possible using java?? If so, how?
Thanks in advance.

It's called reflection.
Class someClass = Class.forName("some.package.SomeClass");
...

Similar Messages

  • Define the class at runtime?

    Hi,
    is it possible to do something like the following:
        public function readGenericClassEntity(myClass:Class,ac:ArrayCollection):void{
            var entity:myClass=myClass(ac.getItemAt(dataGrid.selectedIndex));
    The part "entity:myClass" gives a compiler error:
         Type was not found or was not a compile-time constant: myClass.
    So is it possible to define the class at runtime?
    Thanks for any pointers!
    Martin Zach

    Hi Jason,
    thank you for your answer, one possible solution.
    I used the solution from:
    http://thillerson.wordpress.com/2007/03/01/runtime-class-instantiation-in-actionscript-30/ #comment-951
    Thank worked fine for me!
    Cheers!
    Martin Zach

  • LocalSessionFactoryBean - Could not instantiate bean class

    Hello,
    I am facing a problem with the instantiation of the LocaSessionFactoryBean in a sample Spring 3.0.4 - Hibernate 3.2.6, WebLogic 10.3.3 and Oracle 10g. I am run an web application using JDeveloper 11.1.1.3.0 with the integrated WebLogic Server 11gR1. Trying to make the existing web application that is currently running on Oracle Web Server to run on WebLogic.
    I have gone through other LocalSessionFactoryBean related postings but could not find any solutions for my problem.
    Here's the server.log during web application deployment and startup -
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'pocDaoTarget' defined in class path resource [spring-chbs.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory' defined in ServletContext resource [WEB-INF/xml/spring/spring-j2eeservices.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFac toryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:275)
    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory' defined in ServletContext resource [WEB-INF/xml/spring/spring-j2eeservices.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFac toryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.instantiateBean(Abstrac tAutowireCapableBeanFactory.j
    Caused by: org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFac toryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError
    at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:115)
    Caused by: java.lang.NoClassDefFoundError
    at org.springframework.orm.hibernate3.LocalSessionFac toryBean.class$(LocalSessionFactoryBean.java:174)
    (Note : I have verified that org.springframework.orm.hibernate3.LocalSessionFactoryBean.class exists in org.springframework.orm-3.0.4.RELEASE.jar)
    Caused by: java.lang.ClassNotFoundException: org.hibernate.cfg.Configuration
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
    (Note : I have verified that org.hibrnate.cfg.Configuration.class exists in hibernate-3.2.6.ga.jar)
    spring-chbs.xml:
    Code:
    <bean id="pocDaoTarget"
    class="myproj.component.chbs.dao.PocDaoImpl">
    <property name="sessionFactory">
    <ref bean="sessionFactory"/>
    </property>
    </bean>
    spring-j2eeservices.xml :
    Code:
    <!-- JNDI DataSource for J2EE environments -->
    <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName" value="java:comp/env/jdbc/J2EEDS"/>
    </bean>
    <bean id="sessionFactory"
    class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
    <property name="dataSource">
    <ref bean="dataSource"/>
    </property>
    <property name="mappingJarLocations">
    <list>
    <value>WEB-INF/lib/hibernate-config.jar</value>
    <!--value>classpath:hibernate-config.jar</value-->
    </list>
    </property>
    <property name="hibernateProperties">
    <props>
    <prop key="session_factory_name">HibernateSessionFactory</prop>
    <prop key="jndi.class">weblogic.jndi.WLInitialContextFactory</prop>
    <prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
    <prop key="hibernate.show_sql">true</prop>
    </props>
    </property>
    </bean>
    Any help would be greatly appreciated.
    Thanks

    Hi Raphael,
    Thanks for your response.
    The last part of the console log output during run –
    Error creating bean with name 'pocDaoTarget' defined in class path resource [spring-chbs.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [WEB-INF/xml/spring/spring-j2eeservices.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError
    Servlet Path: C:\Documents and Settings\tariq.ahsan\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\AppServerConversion\MaWebWebApp.warBegin Initialize Spring ApplicationContext for MA
    End Initialize Spring ApplicationContext for MA
    Servlet Path: C:\Documents and Settings\tariq.ahsan\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\AppServerConversion\PaWebWebApp.warBegin Initialize Spring ApplicationContext for PA
    End Initialize Spring ApplicationContext for PA
    [10:35:57 AM] Application Redeployed Successfully.
    [10:35:57 AM] The following URL context root(s) were defined and can be used as a starting point to test your application:
    [10:35:57 AM] http://192.168.11.207:7101/MaWeb
    [10:35:57 AM] http://192.168.11.207:7101/paweb
    [10:35:57 AM] http://192.168.11.207:7101/CFMSWeb
    [10:35:57 AM] Elapsed time for deployment: 28 seconds
    [10:35:57 AM] ---- Deployment finished. ----
    Run startup time: 28203 ms.
    [Application AppServerConversion deployed to Server Instance IntegratedWebLogicServer]
    Target URL -- http://127.0.0.1:7101/CFMSWeb/login.jsp
    Is one of the above folder - C:\Documents and Settings\tariq.ahsan\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\AppServerConversion\MaWebWebApp.war (MaWebWebApp.war is a folder) part of the IntegratedWebLogicServer deployment? Do you mean the spring and possibly the hibernate jars need to be in the WEB-INF/lib under the above folder path?
    Thanks

  • Instantiate a Class through a constructor argument of another class.

    public function LevelManager(owner:Home)
                                  _owner = owner;
    In my LevelManager Class I have the above code in the constructor. Home is another Class which is not instantiated anywhere with the new keyword. It is merely a parameter in the constructor and then passed into the body and assigned to a local variable. I didn't know you could instantiate a class through a function parameter. Is that right???
    Cheers in advance.

    Well, I know Amy is big on design patterns and she is going to slap me but I am the guy who is not a big fun of DPs in regular Flash applications. I have many reasons to dislike them.
    I am not against DPs in principal. In collaborative environments (big teams) or in situations when software is developed for industrial consumption or as partially closed frameworks - it makes sense. Otherwise - they are just possible solutions and reference point at best. In Flash they frequently are major silly overkills. They are more of academic than practical value contrary to what people tend to believe.
    Design patterns are possible solutions that developers came up with heuristically base on the problems they needed to solve - not vice versa. Problems do not dictate design patterns.
    There is a strong tendency among DPs proponents and followers to make DPs self-fulfilling prophecies. Instead of conceptualizing of particular application needs developers often are searching for DP first and then try to squeeze logic into a particular or a group of several design patterns.
    If a person is taught that DPs is the only way to go - there is a great danger of killing creativity and the thought process.
    I strongly believe that what makes a star programmer is the ability to conceptualize the project, model it well and only then find coding solutions based on language capacities. And to question any suggestions in favor of current task efficiencies.
    By the same token, if your painting doesn't need color red - why use it? This is another thing that happens often - developers implement something that is actually not needed.
    Code is cheap! When project is well conceived and modeled - coding takes very little time. One ends up with his/her own "design pattern" that may or may not fall into one of DPs that is articulated already.
    Also, there is a great deal of activism around DPs that, as with any activism, forms an ideology that is full of misleading simplifications.
    First one is that OOP is equated to DPs usage. This is totally dangerously  untrue!!!
    Another one is you mentioned. Spaghetti coding is not the only alternative to design patterns. In other words, if one doesn't use DP - it absolutely doesn't mean person is engaged in spaghetti coding. And vice versa - DP does not shield program from spaghetti coding. I have seen DP warriors going crazy with spaghetti coding although DP was implemented to the tee.
    Another example of misconception is that DP proponents always carry banners of decoupling and modularization. Be very skeptical when someone gives you this shpeal. Modularization is easy to conceal for "propaganda" purposes and it is comfortable not to think about when DPs are used (especially MVC concept). Since this is just a concept - there are no real checks and balances.
    Decoupling, on the other hand, is not that easy to shove down someone's throat. Decoupling can be actually calculated - this is where a lot of idealistic beliefs that someone's code is well decoupled because of the DP fails miserably. Not because of DP itself but because of implementation. Well, sometimes pattern too.
    See, there is no black and white again.
    My point is that DPs do not protect anyone from any kind of challenges or mistakes as they don't make a better programmer. They can make one a disciplined follower but not a real creator (not that everyone must be the Creator).
    If not used properly DPs may be a ground for crappy inefficient un-scalable application as much as any other approach.
    And the last thing. I said that DPs are special suspects in Flash. This is because ActionScript and Flash are already limited frameworks that force us into thinking in MVC terms. This is just a nature of the beast. To attempt to warp it up into another MVC framework looks like a self-indulgent irrelevant academic activity to me.
    And I did not even mentioned practicalities of the target environments we develop our applications for.

  • Is it possible to call a class method using pattern in ABAP editor.

    Hi,
         Is it possible to call a class method using pattern in ABAP editor.
    Thank U for Ur time.
    Cheers,
    Sam

    Yes,
    Click patterns.
    Then choose Abap objects patterns.
    Click on the Tick
    It will give a new screen
    Here Give the name of the class first.
    Then the object (instance of the calss)
    And finally the method ..
    it will give you the pattern
    Hope this helps.

  • Is it possible to call a class in a jar file from JNI environment?

    Hi
    Is it possible to call a class in a jar file from JNI environment?
    Thanks in advance.

    Could you explain a bit more what you are trying to do? (In other words, your question is vague.)
    o If your main program is written in C, you can use JNI to start a JVM, load classes from the jar of your choice, and call constructors and methods of the objects defined in the jar.
    o If your main program is java, and has been laoded from a jar, a JNI routine can call back into java to use the constructors and methods of classes defined in the jar(s).

  • Is it possible to unload a class?

    Suppose I take a classloader and load a class. Then I set my classloader to null and get rid of any objects of it that I've instantiated. Can that class be garbage collected?
    I'm thinking that it probably isn't possible. Even if you can get rid of all references to the class, what if a thread is running a static method of that class? But then again I suppose the stack trace would then have a reference so it can't be garbage collected. Was also thinking about what if a thread is just about to call it, but I guess you could just pop a classNotFoundException. So maybe it is possible... Can anyone comment?

    Well... I'm pretty sure it's possible to unload a class since it's possible to replace them. My IDE (IntelliJ) is capable of recognizing a change in your class file (as a result of compilation while the program is running, for example) and inserting the new class into the application if you want. This is very handy for working on web applications wherein the server takes a while to reload the application.
    So if you can reload the class, you can probably unload it, yes?

  • Is it possible to override super class constructor?

    Is it possible to override super class constructor form subclass?

    However, you can achieve do something that looks similar to overriding.
    class Parent {
      Parent(int i, String s) {
        // do stuff
    class Child extends Parent {
      Child(int i, String s) {
        super(i, s);
        // do Child stuff here
    new Parent(1, "abc");
    new Child(2, "xyz");Although that's not overriding, it sort of looks similar. Is this what you were talking about?

  • How to instantiate a .class from a JSP?

    Hi,
    probably it's a simple problem, byt I'm new in JSP and I couldn't work it out.
    I'm converting a SSJS Netscape Application to JSP. My needing is to write a Java .class containing only static methods, to call them from the JSP pages.
    For trying, I wrote a simple class that I call from a JSP page, but I get this error:
    Error: 500
    Location: /JSP24H/cap01/Simple2.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile class for
    JSPC:\tomcat\work\localhost_8080%2FJSP24H\_0002fcap_00030_00031_0002fSimple_00032_0002ejspSimple2_jsp_0.java:80:
    Incompatible type for =. Can't convert void to java.lang.String.
    v = GenFunction.messaggio();
    ^
    This is the JSP instantiating the Java class:
    <HTML>
    <HEAD><TITLE>A Simple JSP</TITLE></HEAD>
    <BODY>
    <FONT COLOR="blue" FACE="Trebuchet">
    <CENTER>
    <%@ page import = "GenFunction" %>
    <% out.println("My name is Charly !" + "<br>"); %>
    <%
    String v = " ";
    v = GenFunction.messaggio();
    out.println( v );
    %>
    </CENTER>
    </FONT>
    </BODY>
    </HTML>
    And this is the class instantiated from JSP:
    public class GenFunction {
    public static void main (String args[]) {
    public static String messaggio() {
    String a;
    a = " Hello world !";
    return a;
    In order to be sure about what I'm doing, I opened a DOS window and I called the class within the following:
    public class call_Class {
    public static void main (String args[])
    String v;
    GenFunction x = new GenFunction();
    v = x.messaggio();
    System.out.println(v);
    When I instantiate the class from DOS it's all right, why not from JSP. It seems to be returning a void value (I tried with casting too but without success).
    Thanks !

    Do you have multiple versions of classes in the server CLASSPATH somehwhere? If you have changed the class, and not bounced the server, try bouncing the server(may be using cached class)
    -Mak

  • Back posting only possible with same valuation class

    Hii, I made changes in valuation class before that i closed all the open po and maintained stock zero using 201 mvt type on 31st March. Now the system is throwing error when Im doing the reversal using MB1A 202 mvt type like "Back posting only possible with same valuation class". But its taking if I take the Posting date to 1st April, and we want to post on the 31st MArch. Please provide the suggestion.
    Thanks,
    Manoj

    System is behaving correctly..
    Suppose you have changed the valuation class from X to Y as on 31.03.2014.
    So your valuation class was X as on 31.03.2014.
    But now your valuation class is changed as Y. and system will always try to post the valuation class Y for material.
    So when you are trying to reverse the entry on 31.03.2014, system shows the error..
    In that case, you should change the valuation class as on 30.03.2014 and you should do 201 movement type as on 30.03.2014, and then as on 31.03.2014, you can reverse the entry..
    Now you have to reverse the 201 movement type after date 31.03.2014.
    Regards
    Dev

  • Mystery Exception: Failed to load or instantiate TagLibraryValidator class

    I am having trouble with getting a class to load when I access a JSP which uses JSTL:
    org.apache.jasper.JasperException: /hello.jsp(1,1) Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86)
         org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:339)
         org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:475)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)There is org/apache/taglibs/standard/tlv/JstlCoreTLV.class in webapps/foobar/WEB-INF/lib/standard.jar. I'm using Tomcat 5.5.4 and Spring 1.1.2.
    Any ideas as to how I can get around this, or what might be causing the problem ?
    --James                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I'm using NetBeans and getting same message. Application i'm running on jrun, which not complains about that, but it seems it similary ignores that code.
    <c:choose>
      <c:when test="${!empty param.branchEdit || !empty param.branchCreate}">
              <%@ include file="/inc/union/editBranch.inc.jsp"%>
      </c:when>
      <c:otherwise>
              <%@ include file="/inc/union/viewBranchList.inc.jsp"%>
      </c:otherwise>
    </c:choose>After i changed to :
    <%
         if(request.getParameter("branchEdit")!=null || request.getParameter("branchCreate")!=null)
         %>
         <%@ include file="/inc/union/editBranch.inc.jsp"%>
         <%
         else
    %>
         <%@ include file="/inc/union/viewBranchList.inc.jsp"%>
    <%}%>all works ok.

  • Is it possible to unload a class thru the standard Classloader

    is it possible to unload a class thru the standard Classloader,
    I mean during runtime..

    If you want do unload any class then create separate custom class loader and load it with it.
    When you don't need anymore that package you can simply set your custom class loader to null and the next time GC is invoked it may free the memory.
    If you want to free it right after you don't need that package anymore you should call System.gc() twice -
    this usually works.

  • Need to instantiate a class with the contents of a string variable

    I have:
    String temp = "hello";
    and I want to instantiate a class with the contents of the variable temp. So what I want is:
    Class hello = new Class();
    Does anybody know how to do this?

    I'm getting kind of confused with decifering what
    people are writing. I'm not real sure what the Java
    syntax is and what I should be modifying for my code.
    Basically, I have created a class called Artist. I
    want to parse through a text file and when I see a
    header field called "artist", my program will
    instantiate the artist class with the next String
    token. For example, if my text file reads:
    --artist:Daniel
    I want to create an Artist object with the name
    Daniel. Ideally I could just use the code:
    --Artist Daniel = new Artist();I cannot use this syntax because I don't know that "Daniel" is going to follow "artist" in the text file. It could be a different name or String
    >
    But the way I'm going about it right now is to store
    "Daniel" in a variable called temp by:
    --//"in" is an instantiation of StreamTokenizer
    --String temp = in.sval;    
    Right now I have the Artist class set up so there is
    just a default constructor.

  • Failed to load or instantiate TagExtraInfo class

    Hi there
    If I deploy a taglib (which contains TEI-classes) to Tomcat 5.0.25 I get the following error:
    org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: ch.gsa.prodass3.taglib.TagAddAttributeTEI
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:378)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:283)
         org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:422)
         org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    root cause
    java.lang.ClassNotFoundException: ch.gsa.prodass3.taglib.TagAddAttributeTEI
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
         org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:419)
         org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.25 logs.
    I've got no idea how the problem can be resolved..!
    Help, would be very appreceated!
    The jar-file with the tag-classes and the tei-classes is located in /WEB-INF/lib/
    The class TagAddAttributeTEI.class is included in the jar-file.
    The beginning of the tld-file looks like this:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>db</short-name>
    <uri>taglib.tld</uri>
    <description>Datenbankzugriff</description>
    <tag>
    <name>addattribute</name>
    <tag-class>ch.gsa.prodass3.taglib.TagAddAttribute</tag-class>
    <tei-class>ch.gsa.prodass3.taglib.TagAddAttributeTEI</tei-class>
    <body-content>jsp</body-content>
    <display-name>addattribute</display-name>
    <description>A short description...</description>
    <attribute>
    <name>useexisting</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>procedurename</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>itemid</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>attribute</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>sprachid</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>type</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
    <name>message</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>status</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <example>Brief snippet showing how to use this tag.</example>
    </tag>

    Has anybody an idea about this issue?

  • Is it Possible to assign Valuation class without accounting view in MM

    Hi all,
    I have check my client system for materials having without accounting view while checking in table mbew for this material having valuation class.can anyelse say is it possible to assign valuation class without having  accounting view.
    Advance thanks,
    raraja

    Hello ,
    It is not possible to have a valuation class without accounting view.
    There is some mistake that you are possibly making . pls check the same .Pls check if u r viewing the material master at the correct plant level .Also if you say that in MBEW valuation class exists , find out l the corresponding valuation level, the see the material master at the same level . You will definitely find the accounting view.
    Regards
    Anis

Maybe you are looking for