Problem using regex for url

Heres the problem im trying to match
<b>Heres my text</b>
and using this pattern
Pattern rnpattern = Pattern.compile(".+rel-.+html.+id=.+>(.+)</a>.+");
and I'm having to matches returned at all. Its actually pulling a full text file and running the pattern on a CharBuffer, but I dont think thats the issue. I have 2 other patterns being run the same way in the same file and theres no problem with them. I know the pattern is not optimized at all, Ive gone through about 15 different iterations of trying different combinations to try and get a match, and this is the last one I tried. the numbers in the url such as this one being 3533 change so that cant be static. And the text such as "Heres my text" changes and thats what I want to capture. If anyone could lend any assistance I would appreciate it.
Chris N.

http://www.foad.org/~abigail/Perl/url2.html

Similar Messages

  • Regex for url pattern validation

    Hi,
    I am trying to find a regex for Url pattern validation that is not too restrictive.
    Please let me know, if anyone is using a pattern for their applications.
    Thanks
    Mayank Sharma

    are you talking about xml schema restriction?
    <xs:element name="url">
      <xs:simpleType>
       <xs:restriction base="xs:string">
        <xs:pattern value="(https?://)?[-\w.]+(:\d{2,5})?(/([\w/_.]*)?)?" />
       </xs:restriction>
      </xs:simpleType>
    </xs:element>

  • Regex for URL Validation

    HI I am validating a field which takes a url as input from the user.So the url may contain http,https,ftp links or the user may specify the ip address.So can anyone please help me out to create a suitable regex for that.I just need to check the validness of link and not that it exists or not.

    here i have changed the regex as suggested by you but
    it returns true even for http://com.com@
    which is invalid.
    So it did not worked :-(It did not work, because you did not use it correct:
    public class Foo {
        private static boolean isValidUrl(String url) {
            return url.matches("(https?|ftp)://www\\.\\w+\\.\\w+");
        public static void main(String[] args) {
            String[] urls = {
                    "http://com.com@",
                    "http://www.com.com",
                    "http://www.com.nl",
                    "http://www.com.co.uk",
                    "http://www.com"
            for(String url : urls) {
                System.out.println(url+" valid? "+isValidUrl(url));
    }

  • SAP IDM : Using regex for password

    Hi experts,
    I need your help about regex.
    We are trying to use this to be sure that password set in Web inteface by users are correct according to the company policies :
    - The first character cannot be a number
    - The three first characters cannot be the same
    We finally found the following expression to test what we want (reponse is "true" when one of the policies is ok) :
    (.)(1)|(d)
    But IDM never accept any password with that expression.
    So my questions are :
    1) Does IDM need a special regex language or is it the same than PERL language for example?
    2) Does anybody know how to use regex in our policies case?
    Thanks a lot for your response.
    Regards.
    Jérémy.

    Thanks a lot for your answers.
    Actually, i am already doing my test on another attribut which is not encrypted. but yeah its a good point to know about the encryption.
    I also tried to use evaluators on internet and my expression looks good if i want to catch cases that i dont want in my password...
    as a reminder : (.)(\1)|(\d)
    So if i write :
    "1password"   >> result : true
    "password"     >> result : false
    "pppassword" >> result : true
    "password01" >> result : false
    "passwooord" >> result : false
    but finally if i put that expression in the field "regex" of my attribut, IDM never let me save my new password because it's not a "correct value".
    So im disapointed because i don't how to solve it in IDM but i feel like i found the good expression...
    Any another idea?
    Regards
    Jeremy

  • Regex for URL Expression

    I am not a programmer, but I have to write a rule for CACHING the following URL that is being generated with "GET_QUERYSTRING".
    /myserver.domain.com:7779/mapviewer/mcserver?format=PNG&mapcache=mvdemo.demo_map&mx=198&my=247&request=gettile&zoomlevel=3
    As you can see, I would like to cache all the PNG map tiles, but I don't know how to come up with Regular Expression (regex) for the above URL.
    Thanks,

    are you talking about xml schema restriction?
    <xs:element name="url">
      <xs:simpleType>
       <xs:restriction base="xs:string">
        <xs:pattern value="(https?://)?[-\w.]+(:\d{2,5})?(/([\w/_.]*)?)?" />
       </xs:restriction>
      </xs:simpleType>
    </xs:element>

  • Problem using Regex with ResourceBundle

    Hi,
    i'm using a ResourceBundle to store I18N strings in various languages. Now when I try to use those as patterns in a Regex, it just doesn't match.
    Here is a sample string:
    Mode lecture : S�curis� SANS C2, Flux pr�cis, Cache d�sactiv�
    In the ResourceBundle it looks like this, encoded as Unicode codepoints:
    eaclog.1254=S\u201acuris\u201a SANS C2, Flux pr\u201acis, Cache d\u201asactiv\u201a
    When I retrieve the regex pattern (myPattern.pattern()), it looks like this on the console:
    S�curis� SANS C2, Flux pr�cis, Cache d�sactiv�
    It seems like the encoding in the regex isn't right. What have I done wrong?

    Cool, thanks for the reply. The character encoding was broken even before I converted it using natice2ascii, now it works!
    From now on, I will always use the "-reverse" option to see if the output looks right. Boy, and I thought it was some weird regex problem...

  • HTTPService - using FlashVars for URL?

    Hi,
    New Flex user, so please forgive me if this sounds stupid.
    I'm fiddling around with a modified version of the dashboard sample
    application, and am using the FlashVars param tag to pass in a
    bunch of variables into the application. They all work fine, except
    the variable I'm using for the URL in HTTPService, which is the
    name of an XML file that another application I've written has
    generated. It returns this error:
    [RPC Fault faultString="A URL must be specified with useProxy
    set to false." faultCode="Client.URLRequired" faultDetail="null"]
    at mx.rpc.http::HTTPService/send()
    at mx.rpc.http.mxml::HTTPService/send()
    at dashboard/::initApp()
    at dashboard/___Application1_creationComplete()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/set initialized()
    at mx.managers::LayoutManager/::doPhasedInstantiation()
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/::callLaterDispatcher2()
    at mx.core::UIComponent/::callLaterDispatcher()
    But I'm absolutely positive the URL value is correct. I've
    tested and displayed the value that comes through, and when I
    manually paste that value into the URL, it works fine. Tried
    relative and absolute URLs, tried just passing the partial filename
    through (so the FlashVars variable just has alphanumeric
    characters) and hard-coding the rest of the URL. Same result.
    Does HTTPservice just not allow this value to be passed via
    FlashVars, or is there something I'm completely missing (maybe I
    need to convert the value somehow)? Or, is there another solution
    to this problem?
    Thanks, in advance.

    How are you asigning the url value to the HTTPService
    property? Binding or via actionscript?
    Tracy

  • Problem using image via URL

    Hi everybody
    I have a problem with loading images via URL into my PDFs.
    I am using LCD ES2 Version 9.0.1....
    I want to create a PDF which loads images from the internet but it does not work.
    So far I have tried to add an image or image field to my PDF in the LCD and populate that image using the Object-->Field-->URL: palett. I put the URL in there like this http://www.adobe.com/imageshome/pdfgift_home.gif , tick the "embed image Data" checkbox (also tried with without that just to be sure) and save as Dynamic PDF (I also tried static) but when I open the PDF in adobe reader 9 or 10 or acrobat  9 there is no image showing. I also put the image in a subform and made that subform flowed, as well as the page itself and made the binding global.
    I have the form properties - default set to "Acrobat and Adobe Reader version 9.0 or higher", Default Language to JavaScript, PDF Render format to Dynamic PDF.
    I also tried using JavaScript events like "form:ready ImageField2.value.#image.href = "http://www.adobe.com/imageshome/pdfgift_home.gif" as discribed here http://partners.adobe.com/public/developer/en/tips/lc_dynamic_images.pdf but that also does not work.
    What am I missing?
    Any help would be great and greatly appreciated!!!
    Thanks and best regards
    Norbert

    As far as I can tell, this use case is not allowed because of cross site references related security concerns. The form can refer to the images stored on the same server from where the PDF is served, but the images cannot come from external servers.

  • JPA Problem using alias for columns in a query

    Hello, I am having some problems with a query that I am trying to use in my JEE project. This query doesnt return an entity but a group of values. I created a class representing the result and a query with the jpa constructor expression but it is not working.
    The problem is that in the query I added some alias to the results, and when I try to run the project it says that it cannot parse the query.
    My Query:
    Query query = em.createQuery("SELECT NEW vo.VOOperacionesAgrupadas (o.nemotecnico as nemotecnico, o.esCompra as esCompra, i.equivUltimo as equivUltimo, sum(o.saldo) as saldo, sum(o.utilidad) as utilidad, sum(o.tasaCompraVenta)/count(o.nemotecnico) as promedioTasaCompra, (i.equivUltimo-sum(o.tasaCompraVenta)/count(o.nemotecnico))*100 as puntosBasicos) FROM Operaciones o, Instrumentos i WHERE o.idUsuario = :idUsuario AND o.nemotecnico = i.nemotecnico AND o.estaCerrada = 'false' Group by o.nemotecnico, o.esCompra, i.equivUltimo"); When I use that the server returns :
    Exception Description: Syntax error parsing the query [SELECT NEW vo.VOOperacionesAgrupadas (o.nemotecnico as nemotecnico, o.esCompra as esCompra, i.equivUltimo as equivUltimo, sum(o.saldo) as saldo, sum(o.utilidad) as utilidad, sum(o.tasaCompraVenta)/count(o.nemotecnico) as promedioTasaCompra, (i.equivUltimo-sum(o.tasaCompraVenta)/count(o.nemotecnico))*100 as puntosBasicos) FROM Operaciones o, Instrumentos i WHERE o.idUsuario = :idUsuario AND o.nemotecnico = i.nemotecnico AND o.estaCerrada = 'false' Group by o.nemotecnico, o.esCompra, i.equivUltimo], line 1, column 53: syntax error at [as].
    Internal Exception: MismatchedTokenException(8!=82)
    GRAVE: java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Syntax error parsing the query [SELECT NEW vo.VOOperacionesAgrupadas (o.nemotecnico as nemotecnico, o.esCompra as esCompra, i.equivUltimo as equivUltimo, sum(o.saldo) as saldo, sum(o.utilidad) as utilidad, sum(o.tasaCompraVenta)/count(o.nemotecnico) as promedioTasaCompra, (i.equivUltimo-sum(o.tasaCompraVenta)/count(o.nemotecnico))*100 as puntosBasicos) FROM Operaciones o, Instrumentos i WHERE o.idUsuario = :idUsuario AND o.nemotecnico = i.nemotecnico AND o.estaCerrada = 'false' Group by o.nemotecnico, o.esCompra, i.equivUltimo], line 1, column 53: syntax error at [as].
    Internal Exception: MismatchedTokenException(8!=82)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: Exception [EclipseLink-8024] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.JPQLException
    Exception Description: Syntax error parsing the query [SELECT NEW vo.VOOperacionesAgrupadas (o.nemotecnico as nemotecnico, o.esCompra as esCompra, i.equivUltimo as equivUltimo, sum(o.saldo) as saldo, sum(o.utilidad) as utilidad, sum(o.tasaCompraVenta)/count(o.nemotecnico) as promedioTasaCompra, (i.equivUltimo-sum(o.tasaCompraVenta)/count(o.nemotecnico))*100 as puntosBasicos) FROM Operaciones o, Instrumentos i WHERE o.idUsuario = :idUsuario AND o.nemotecnico = i.nemotecnico AND o.estaCerrada = 'false' Group by o.nemotecnico, o.esCompra, i.equivUltimo], line 1, column 53: syntax error at [as].
    Internal Exception: MismatchedTokenException(8!=82)
    at org.eclipse.persistence.exceptions.JPQLException.syntaxErrorAt(JPQLException.java:362)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.JPQLParser.handleRecognitionException(JPQLParser.java:304)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.JPQLParser.addError(JPQLParser.java:245)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.JPQLParser.reportError(JPQLParser.java:362)
    at org.eclipse.persistence.internal.libraries.antlr.runtime.BaseRecognizer.recoverFromMismatchedElement(Unknown Source)
    at org.eclipse.persistence.internal.libraries.antlr.runtime.BaseRecognizer.recoverFromMismatchedToken(Unknown Source)
    at org.eclipse.persistence.internal.libraries.antlr.runtime.BaseRecognizer.mismatch(Unknown Source)
    at org.eclipse.persistence.internal.libraries.antlr.runtime.BaseRecognizer.match(Unknown Source)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.antlr.JPQLParser.constructorExpression(JPQLParser.java:2635)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.antlr.JPQLParser.selectExpression(JPQLParser.java:2045)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.antlr.JPQLParser.selectItem(JPQLParser.java:1351)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.antlr.JPQLParser.selectClause(JPQLParser.java:1266)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.antlr.JPQLParser.selectStatement(JPQLParser.java:352)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.antlr.JPQLParser.document(JPQLParser.java:276)
    at org.eclipse.persist
    GRAVE: ence.internal.jpa.parsing.jpql.JPQLParser.parse(JPQLParser.java:133)
    at org.eclipse.persistence.internal.jpa.parsing.jpql.JPQLParser.buildParseTree(JPQLParser.java:94)
    at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:198)
    at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:173)
    at org.eclipse.persistence.internal.jpa.EJBQueryImpl.<init>(EJBQueryImpl.java:125)
    at org.eclipse.persistence.internal.jpa.EJBQueryImpl.<init>(EJBQueryImpl.java:109)
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1326)
    ... 59 more
    Caused by: MismatchedTokenException(8!=82)
    ... 74 more
    What can I do?? I have been stuck in this problem for 2 weeks :s I have tried almost everything..
    Thanks in advance for your help!

    SELECT tmp.contract_no, tmp.Actual, tmp.Actual - tmp.NbHours
    FROM ( SELECT t.contract_no, sum(l.hrs) AS Actual, (c.labour_hours * c.labour_progress_per) / 100 AS NbHours
    FROM TASK_DELEGATION t
    INNER JOIN COST_CODE c
    ON t.cost_code = c.cost_code AND t.contract_no = c.contract_no AND t.is_inactive=0
    INNER JOIN Labour.dbo.LABOURALLOT l
    ON l.contractNo = c.contract_no AND l.costcode = c.cost_code AND l.pm = 'N'
    GROUP BY t.contract_no, c.labour_hours, c.labour_progress_per
    ) tmp

  • Problem using DataSource for JDBC applications

    import javax.sql.*;
    import java.sql.*;
    import java.io.*;
    import java.text.*;
    import javax.naming.*;
    public class CreateMovieTables {
         //static String driver="COM.cloudscape.core.JDBCDriver";
         //static String url="jdbc:cloudscape:";
         String leadActor,title,leadActress,type,dateOfRelease;
         Connection connection;
         Statement statement;
         DataSource dataSource;
         public void initialize() throws SQLException,NamingException{
              //Class.forName(driver);
              Context initialContext = new InitialContext();
              //connection = DriverManager.getConnection(url + "Movies;create=true");
              dataSource = (DataSource) initialContext.lookup("jdbc/Cloudscape");
              connection = dataSource.getConnection();
    the code goes on
    when i start the j2ee sdk server, the cloudscape server the message i get when i run the program is...
    No local string for datasource.wrongclient
    java.sql.SQLException:
    at com.sun.enterprise.resource.JdbcDataSource.getConnection(JdbcDataSource.java:40)
    at CreateMovieTables.initialize(CreateMovieTables.java:23)
    at CreateMovieTables.main(CreateMovieTables.java:86)
    can anyone please suggest as to where i may be going wrong
    thanx
    -NDK

    I don't agree that a User or System DSN is needed - that's a Windows idiom.
    I haven't used the J2EE SDK to set up a data source, but I know that when I do it in Tomcat I've got to put a <resource-ref> tag in the web.xml that identifies the JNDI lookup string, and then the JDBC driver/URL/username/password details under a <Resource> tag in the context.xml to tell the data source how to create the JDBC connection.
    My <resource-ref> name is "jdbc/APIPrototype". My JNDI lookup string looks like "java:comp/env/jdbc/DataSourceName".
    You've got to do more than just put the JNDI lookup string in the Context lookup. Your error message sounds like the server is saying you've haven't done that set-up work.
    Just a guess - perhaps it's something else, but I couldn't tell from your note. - MOD

  • [Solved] Problem using kdebindings for ruby

    As a weekend project I was going to look into using ruby as language for developing KDE plasma widgets.
    I have kdebindings-ruby 4.6.0-1 along with the required kdebindings-smoke 4.6.0-1.
    When trying:
    require "plasma_applet"
    I get the error:
    LoadError: libsmokebase.so.3: cannot open shared object file: No such file or directory - /usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/plasma_applet.so
    However when checking the directory
    /usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/
    32K plasma_applet.so
    shows up clear as day.
    So what gives? I haved tried to find an answer here on the forums and on google but perhaps my google foo is too weak.
    Thanks
    Edit: With some more google foo I found this: https://github.com/pcapriotti/kaya/issu … ed#issue/3
    Where this statement is made:
    Kdebindings-smoke does not provide anymore libsmokebase.so.3, either in chakra-Linux or Arch Linux, was available in kde 4.5.5 but no in 4.6.0
    Does this need to be submitted as a bug?
    Last edited by ilpianista (2011-02-25 13:22:49)

    Hi, i know this is solved but i have similar problem with kdebindings-qtruby 4.7.0-1
    i start irb. and when i type require "Qt"
    irb(main):003:0> require "Qt"
    LoadError: libsmokebase.so.3: cannot open shared object file: No such file or directory - /usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/qtruby4.so
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /usr/lib/ruby/site_ruby/1.9.1/Qt.rb:1:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from (irb):3
    from /usr/bin/irb:12:in `<main>'
    same when i try require "qtruby4" or somethink like this.
    but file /usr/lib/ruby/site_ruby/1.9.1/x86_64-linux/qtruby4.so exist

  • Problem using QuickTime for iPhone

    Hi Everybody,
    I am a developer and i program an application for the iPhone. I want to know if it is possible to block the controller in the Quicktime player for iPhone ?
    I use the embed code with the "<param name='controller' value='false'>" but the controller is always here.
    I want to stream a video, where the user can't paused the video.
    Can you help me ?
    Thanks a lot

    I had this same problem and solved it when I realized that the software upgrade download was about 600MB, but I had less free space available on the iPhone.
    So I deleted some large music files to make space available, then started the upgrade again and it worked fine.
    One caveat: since I had "Automatically fill free space with songs" checked in iTunes, under the iPhone "Music" tab, simply deleting songs from the iPhone's playlist did not clear up the space.  Other songs got loaded to fill up the space.  I had to uncheck "Automatically fill free space with songs" as well as delete songs in order to free up the space.
    Hope this helps.

  • Same problem using tomcat for petcode app

    I'm getting frustrated. I don't think i want to use this petsotre application. i need to find something else. I got tired of using the javaserver application so i used the war in tomcat and got this problem when it tried to deploy it.
    Caused by: java.lang.IllegalArgumentException: Duplicate context initialization parameter com.sun.faces.verifyObjects
    at org.apache.catalina.core.StandardContext.addParameter(StandardContext.java:2210)
    ... 46 more
    Sep 9, 2007 8:20:23 AM org.apache.catalina.startup.ContextConfig applicationWebConfig
    SEVERE: Parse error in application web.xml file at jndi:/localhost/petstore/WEB-INF/web.xml
    java.lang.IllegalArgumentException: Duplicate context initialization parameter com.sun.faces.verifyObjects
    at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2725)
    at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2751)
    at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1772)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
    at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:351)
    at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1034)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:260)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4119)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
    at org.apache.catalina.core.StandardService.start(StandardService.java:450)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
    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:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

    Hi,
    the petstore needs some of the services of a Java EE 5 application server to run. It uses some technologies that are part of Java EE 5like annotations, Java Persistence Objeects, JSF 1.2 etc.
    This FAQ lists some of the things needed.
    https://blueprints.dev.java.net/petstore/faq.html#tomcat
    You would have to do some work yourself to get it to run on tomcat as there are not full instructions on how to do this.
    hth,
    Sean

  • Problems using Role for Security to business area

    I have a role set up with several users in it. User A and user B are both in this business area. When I grant access to a business area using this role, they are unable to see the business area in the user edition. If I specify User A to the business area they can see the business area. This does not seem to happen all of the time. Any solutions for this ?
    Has anyone else come across it ?
    Thanks
    Dennis

    You could try this- Tools -> Priviliges -> (Show Privilege for the ROLE not the USER), then see if "Desktop & Plus Privilege" is checked
    I was just creating/removing EUL's in my test instance and the same thing happened to me.

  • Problem use c for API

    Hi
    i use berkeley db .my operating system is unix freebsd and c for api.
    i use gcc compiler for compile program.
    my program is like this
    #include <db.h>
    #include <stdio.h>
    int main()
    DB *dbp ;
    u_int32_t flags;
    int ret;
    ret =db_create(&dbp, NULL,0);
    //if (ret != 0) {
    flags = DB_CREATE;
    ret = dbp->open(dbp,NULL,"test.db", NULL,DB_BTREE,0,0);
    if (ret != 0) {
    printf("error occured");
    but when i compile this program diplay this error:
    undefined reference to `db_create'
    please help me.
    if i need to use other compiler or install other software for run c program please say me

    You didn't list the gcc command you used to compile/link.
    This error - "undefined reference to 'db_create'" - means that you
    are not linking against the Berkeley DB library when you attempt
    to load the program. It also could mean you are linking against the wrong version
    of a library.
    Here is an example of command syntax that works for me on SUSE.
    gcc -Wall -I/usr/local/BerkeleyDB.4.4/include inmem2.c -L/usr/local/BerkeleyDB.4.4/lib -ldb-4.4 -o inmem2.o
    env LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.4/lib ./inmem2.o
    Of course, you should substitute in the name of your own program
    and the desired output name.
    Since these procedures are not completely standardized, please
    check your compiler and loader documentation for specific information
    as to how to reference a library on your system during the link
    phase. You may need to set a value for LD_LIBRARY_PATH or a
    similar environment variable.
    Ron Cohen

Maybe you are looking for

  • MacBook Pro Retina doesn't show correct colour spectrum

    I'm having trouble with my late 2013 13" MBPr display, it's displaying low colour spectrum, something like 16 bit colours. I took a photo of my screen right now, and it display something like this. As you can see the cat colour look really washed out

  • Truncating the initial space

    Hello, Say for example I would like to print the following line on the report: title:0 where 0 is passed in as a variable var type i However, if I do write: 'title:', var. I ended up getting something like title:              0 How can I remove the s

  • Dealing with large volumes of data

    Background: I recently "inherited" support for our company's "data mining" group, which amounts to a number of semi-technical people who have received introductory level training in writing SQL queries and been turned loose with SQL Server Management

  • How can I get my playlists back after hard disc change?

    My hard disc crashed. After changing a new hard disc and installing iTunes again all my playlists were gone. I had the music files backed up and could import them back to iTunes libraries but the playlists are gone. I spent hours making them. Is ther

  • Extended Payment Order with status 51 Application document not posted in IHC

    Dear Gurus, We are make an extended payment order (PAYEXT), through the transaction F110, and then when we want to see the IDOC (by Tx. WE02) we have the following error in the Inbound IDOC´s: IDoc: 0000000002179110 Status: Application document not p