w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Cannot add Module to Java EE Enterprise Application - nullPointer when creating Enterprise Application Project
Root cause is that the WTP project configuration fails due to the wrong java web facet being installed. You could try to determine if the EAR project has deployment descriptor, if so, then force save. final ReferencedComponent ref = AddComponentToEnterpriseApplicationOp.findReferencedComponent(earwc, wc, se, compse);

Categories : Eclipse

Enterprise Application or Web Application for web service
I'm not sure, since I'm not NetBeans user, but I'm getting that "enterprise application" means "EJB". "Web application" makes me think of a SOAP or REST or RPC-XML web service. If I'm correct, then I'd say that you should prefer the web application if there's a chance that non-Java clients will want to use that service. Web services use HTTP as their communication protocol. There are no restrictions on client implementation that way.

Categories : Web Services

What is the JMX Alternative for enterprise application
Well, there is still the default supported JMX implementation available. And it will be supported for the foreseeable future. Meaning that all the performance, security and feature bugs will be evaluated and potentially fixed. BTW, is there something in the JMX 2.0 proposal the lack of what makes the JMX unusable for you?

Categories : Java

Architecture for an Enterprise Application
I just did several government projects, to talk about a few of my experience: Governments usually hierarchical management, divided into: state, county, city, etc., divided into sections for each level of government units responsible for different tasks, can be called "role", the staff belonging to a administrative division, with one or more roles. General government departments, higher-level units can manage subordinate data, so, using incremental encoder is relatively simple, such as 330102, 33 (state), 01 (county), 02 (City), with: xxx like '3301% 'access to 3301 County (including sub-districts) of the data; Each role has a number of menu items, a very simple permissions system, no elaboration. In addition, about custom fields, you need to add a metadata dictionary, which store

Categories : Asp Net Mvc

no web.xml in enterprise application project in netbeans
From servlet 3.0 there is no web.xml There are annotations now to map. Annotations Vs. Deployment Descriptor If I create web.xml manually, should it syntax be the same as for web application web.xml file? Yes. Servlet 3.0 spec

Categories : Java

GWT Designer - Right tool for GWT Enterprise Application
I have this same situation at my job. My personal feeling is that we should not expect designers to be using a tool like Eclipse/GWT Designer. If they are true graphic designers, then they will likely not be thrilled about being forced into using this tool. Beyond that, I'm a strong believer that hand written code (as opposed to generated code out of Designer) is much cleaner and easier to maintain in the long run. Also take into consideration whether or not you're in a highly stylized application. I would argue that doing any heavy lifting in CSS might be more of a challenge in a GWT Designer environment. Using UiBinder, you have direct access to the DOM and the CSS. My $.02

Categories : Gwt

How to design an enterprise application with many independent processes?
There has been some time since I have used Java Message Service in the past so I am afraid I am not up-to-date with the technical details, but from your description it seems like it would suit your case, to handle communication between the adminstration GUI and the client processes. There are various options (I believe you are interested for asynchronous communication) so you should take a look on the latest developments to examine yourself if it fits your case or not. Regarding the data size that the server would exchange with the processes I believe this is a different topic and I must say that the answer depends. Would it be better to send all data in the message? Or would the message be just a notification so the client to be notified and then connect to some enterprise bean to check

Categories : Java

How to separate modules in Django enterprise application
Use django to create a website and then expose whatever you want with django-tastypie as an API: https://github.com/toastdriven/django-tastypie

Categories : Python

x86 / x64 issue with Enterprise Library 5 Oracle connection string in .NET 4.0 ASP.NET web application project
I just downloaded the 32 bit Oracle client. http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-win32soft-098987.html Now today I discovered why I was getting this error. Additional information: System.Data.OracleClient requires Oracle client software version 8.1.7 or greater. The version 8.1.7 error above had nothing to do with any setup what so ever! I had another issue on my PC where Windows could not access %windir%, which meant Windows could not access any of the environment variables because they are accessible via the %windir% (C:WindowsSystem32) folder. Another weird behavior in Windows during this time was that any programs or icons found in this %windir% folder were causing those programs to show a dummy icon (e.g. Accessories > Paint, Win

Categories : Dotnet

Enterprise library Logging application block fails to write to database
The exact syntax depends on your existing configuration. Assuming you have no trace listener or formatter already configured that you want to use: configurationSourceBuilder .ConfigureLogging() .SpecialSources.LoggingErrorsAndWarningsCategory .SendTo.EventLog("Event Log Listener") .FormatWith(new FormatterBuilder().TextFormatterNamed("Text Formatter")); If you already have an Event Log trace listener configured that you want to use (named "Event Log Listener" in this example): configurationSourceBuilder .ConfigureLogging() .SpecialSources.LoggingErrorsAndWarningsCategory .SendTo.SharedListenerNamed("Event Log Listener"); If you already have a log formatter configured that you want to use (named "Text Formatter" in this example): configurationSourceBuilder

Categories : C#

Secure URL/application
Just imagine this if you are going to output the value of "test"(without escaping it properly for html usage) on your html page then one could possibly inject any javascript on your page !! Some possible exploits could be changing the background to something obscene or even redirecting your page to some scam websites .. in effect making you accessory to fraud of somekind !! ALWAYS USE PROPER ESCAPING FOR STORING OR USING USER SUBMITTED INFORMATION!! Edit: The escaping I am talking about will be useful so that people dont inject html or JS in your database. This would eventually lead to every user getting the injected HTML/JS (if the injected variable is same for everyone) on their page .. not just the user who injected it !!

Categories : Javascript

JNDI lookup fails in a thread created by J2EE/JCR application on WAS 8.0.0.4 running on Red Hat Enterprise Server 5.8 (2.6.18-308.e15)
The java:comp/env context is only available inside your Java EE application where you have defined your resources in your web.xml. If you are creating a separate Thread which tries to lookup the same resource, in your case a data source, the thread is run outside the Java EE context of your application and the resource definitions therein. You can solve this by either by look up the data source while you are in the Java EE application context and then hold a reference to it which your thread can access, thus not having any need for the thread to look it up. locate your data source without using the java:comp/env context

Categories : Misc

making php web application secure
Firstly: Avoid PHP's MySQL functions like a plague Use PHP's MySQLi functions instead at the very, very minimum or PDO instead. MySQLi and especially PDO functions, are better security-wise. But, of the two, PDOs are the best deal as they offer you higher abstraction with prepared statements which greatly increases your defense against SQL injection attacks: Most SQL statements in PHP applications use variable input to determine the results of the SQL statement. To pass user-supplied input to an SQL statement safely, prepare a statement using parameter markers (?) or named variables representing the variable input. When you execute the prepared statement, you bind input values to the parameter markers. The database engine ensures that each input value is treated as a sing

Categories : PHP

My web application is redirecting to secure and I can't stop it
Global.asax.cs public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); filters.Add(new RequireHttpsAttribute()); // <---- } I've forced HTTPS/SSL in many applications using this approach. There you go, I hope it helps.

Categories : C#

How can you secure a JavaScript application's API calls?
With JavaScript, just about any authentication system is going to have holes, simply because the code runs directly in the browser and can be seen by anyone (as can the network calls). So there are a couple of things you can try, depending on your situation. If you are distributing this application to a small subset of clients, and you know exactly where they will be accessing it from, you could use IP whitelisting. This really is the only way to completely secure the API. However this method is very cumbersome, since with every new client you have to update the API whitelist, and considering what you're talking about here probably not what you're looking for (but I mention it just because it is a possibility). Another method is access tokens. This is a common method used by sites such a

Categories : Javascript

How to get started with OAuth to secure a Web API application?
OAuth is a protocol; the current version is OAuth 2.0. More to your question, that link lists several implementations of the protocol in various technologies. For use with the .NET Web API you're probably interested in DotNetOpenAuth which provides implementations of both OAuth 1 and OAuth 2. I'm using DotNetOpenAuth in an app I'm working on now to secure a .NET Web API. I've got an OAuth2Handler which extends DelegatingHandler which is inserted into the Web API pipeline before incoming requests reach any controllers. OAuth2Handler does the following: Instantiates a DotNetOpenAuth ResourceServer Calls ResourceServer.GetPrincipal() which reads and decrypts an access token (issued elsewhere by the AuthorizationServer and returns an OAuthPrincipal (In my case I'm reading additional d

Categories : C#

Is it possible to use Umbraco's admin login to secure an external MVC application
The latest versions of Umbraco works right along side managing members with membership, with the standard System.Web.Security. I use Umbraco 6 but it was added after 4.1 I think. A brief summary of setting it up. Create some login forms in Umbraco using the Windows membership code in your controller, (there are many tutorials on the internet). Add a member type in the Umbraco admin members section. Set the defaultMemberTypeAlias to your member type in your web.config. Set up public access by clicking right on your pages in the Umbraco admin content panel. Login and you should see your member in the members section. Add some code to your menu to show and hide member pages. There is a very nice NuGet package with the code to get you started: PM> Install-Package CWS.Umbraco.Standar

Categories : Asp Net Mvc

How to configure tomcat web.xml and tomcat-users.xml to secure a tomcat page
As far as access to the tomcat manager GUI is considered, there is no role as "manager" to set in tomcat-users.xml. you have to specify one of these roles. You can find the role names in the web.xml file of the Manager web application. The available roles are: •manager-gui — Access to the HTML interface. •manager-status — Access to the "Server Status" page only. •manager-script — Access to the tools-friendly plain text interface that is described in this document, and to the "Server Status" page. •manager-jmx — Access to JMX proxy interface and to the "Server Status" page. have a look into this link for further info, http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html I hope it helps, thanks.

Categories : Xml

What is the best way to deploy to a standalone Weblogic Server ADF Secure Application with maven
Which version are you using, because if you are using 12c it should come out of the box with JDeveloper! Or else try to use OEPE(Oracle Enterprise Pack for Eclipse) as it packages the application without OJDeploy, you can use that and create your Maven script to take the generated war file and resume from there.

Categories : Java

how to configure IIS for mvc4 application?
You will need to determine who is using port 80. I like using ActivePorts for this.

Categories : Asp Net Mvc

How to configure my application php sdk (facebook)
So far your comment, I think it is facebook app configuration issue. Logged in to your facebook ie. https://developers.facebook.com. -> Apps ->Open your app in edit mode. Find "Website with Facebook Login". Here put the domain name, from where you are running this app. http://yourdomain For development purpose, you can set http://localhost/ in this textbox. Also set "App Domains" same as above. Now try again. Hope your problem will be solved.

Categories : PHP

Need feedback!! Should enterprise level application can user one user to connect sql server database?
There is no limitation on the number of connections per user. Our website does this. All of our code accesses the database with one SQL Server credential. There is, however, a hard limit on the total number of connections (around 30k) to the instance. We found this out the hard way with hundred of databases and connection pooling from tens of application servers.

Categories : Sql Server

Can Build.PL be used for Enterprise Perl based application having multiple Perl Modules
is it possible to have Build.PL include all of these Modules, and then be able to Build, test and cover ? Yes. I could not find any evidence where Build.PL has been used for Multiple Packages. You haven't looked very hard. A third of CPAN does so. How do we declare these Modules in Build.PL ? ./Build manifest Do i have to Build and test All these Modules individually ? No, as a whole. Perl should have a builder that can handle not only building, but also testing, code coverage and deployment. There are several.

Categories : Perl

How to configure primefaces with existing JSF application?
Change xmlns:p="http://primefaces.prime.com.tr/ui" to xmlns:p="http://primefaces.org/ui" It is missing the following tag lib in your page. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui"> ... </html> Make sure to set put the jar files in WEB-INF folder + WEB-INF - primefaces-3.5-XXX.jar - jsf-api_2.1_spec-xx.jar -> When your server already exist as a server module, your don't need to put.

Categories : Eclipse

Configure ASP.NET MVC 4 Application with Oracle Database
Instead of creating special class you can setup in web.config which membership provider you use. For Oracle there exist an OracleMembershipProvider class, which you can find here. For MySQL you can use MySQLMembershipProvider. There is a nice article how you can setup it: How to Setup and Configure MySql Membership Provider Moreover you can use Entity Framework Code First Membership Provider and use proper provider (look on this article: Entity Framework Code-First support for Oracle, MySQL, PostgreSQL and SQLite). I did not try this solution, but it looks promising. If nothing above helps you can write your own Memebership provider, but I am sure that you can find something which already exists. To sum up: Instead of changing connection type, change membership provider which will be

Categories : C#

The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption
Is it databaseName=MyDB or database=MyDB ? Try the latter. Are you on a Windows Machine? http://www.microsoft.com/en-us/download/details.aspx?id=24009 Download that and try to talk to your server outside of your code. The port query tool will show you if its a firewall (or similar) issue, outside of the code.

Categories : Java

Secure API access: best strategy to secure readonly rails api for android client
The most secure method for APIs is to give each user a different authentication token for API. On the other hand, if you want to make it even more secure, I personally suggest you a SSL, because SSL encrypts the packages between server and client, therefore it will be impossible (not impossible but near impossible depending on your SSL certificate) to hijack the communications between server and client.

Categories : Android

Configure New Relic in IIS to show one application per domain
Applications can be named individually in the application's web config file. This is done by adding the following to the <appSettings> element: <appSettings> <add key="NewRelic.AppName" value="my_web_app" /> <add key="NewRelic.AgentEnabled" value="true" /> </appSettings> Multiple instances of an application can report to the same name in the New Relic UI by giving each application instance the same name as shown above. Of course, you can separate applications by giving them different names. You can use this naming feature to group application instances by name as you need. Your application instances can be running on the same server, on different servers, or on a mix of these. See this page for some additional information on application naming. Note

Categories : Iis

Python, Configure mod_wsgi with Flask application on Windows 7
Don't use a VirtualHost if nothing else is running on that Apache. Because you have set ServerName to 'wsgihost', it will only send requests to your Flask app if using the URL http://wsgihost and if wsgihost isn't a valid host name that maps to your machine, it will not work.

Categories : Python

How can I configure simple web cache for Java client application?
For a simple caching solution try Google Guava libraries. The CacheBuilder/CacheLoader could be configured to your requirements. Guava provides a simple caching solution that is more sofisticated than java's own HashMap but light weight when compared to Ehcache and others. This cache could be used in a web service request interceptor that helps to decide whether to initiate a web service call. A good tutorial with an example for Guava cache could be found here

Categories : Java

Least worst option to secure database connection string for distributed wpf application to users with local admin rights
You are right: you cannot prevent a determined local admin to get access to this database. Here's what I -- as a determined user -- would do (I have done it in the past with other programs): I would attach a debugger to the running process and look at the memory to find the plain connection string (of course I am simplifying -- but it works). Another option would be to use the debugger to hijack your IDbCommand objects to execute arbitrary SQL code, no need for me to find the connection credentials, your application manages the connection for me. So it really comes down to: how competent and determined are your users? how important is your database? how determined are you? It's the classical hacker trade-off: how much effort do you want to put into this to discourage your users from cra

Categories : C#

How do I statically configure Celery application differently in production and development?
The way that I do it is using an environment variable. As a simple example... # By convention, my configuration files are in a "configs/XXX.ini" file, with # XXX being the configuration name (e.g., "staging.ini") config_filename = os.path.join('configs', os.environ['CELERY_CONFIG'] + '.ini') configuration = read_config_file(config_filename) # Now you can create the Celery object using your configuration... celery = Celery('mymodule', broker=configuration['CELERY_BROKER_URL']) @celery.task def add_stuff(x, y): .... You end up running from the command line like so... export CELERY_CONFIG=staging celery -A mymodule worker This question has an example of doing something like this, but they say "how can I do this in a way that is not so ugly?" As far as I'm concerned, this is quite

Categories : Python

What do I need to install or configure into deployment machine to run an Entitity Framework with Oracle console application ?
No idea if this will help but.. I found your post before realizing that the app I was building needed 2 connection strings, one for my WebSecurity / WebMatrix.Data model & one for my Entity Framework model. I had built the project locally & all was working well. Once I updated the connection strings to a remote server, I got the same error as you until realizing that the WebMatrix.Data model needed to use the System.Data.SqlClient provider & not the System.Data.EntityClient provider. IF its truly an ORacle issue, this post may help you --> Could not load file or assembly 'Oracle.DataAccess error Installing the 32bit ODAC drivers on the server, as well as building the app x86 corrected the problem for me.

Categories : Oracle

Making JSESSIONID secure creating an issue for login issue from no-secure context
Is there any way to move from secure page(https) to unsecured page(http) or vice versa if JSEESIONID is secure Not with a single cookie. The whole point of secure is to stop the cookie being sent in the clear to an HTTP page, where an eavesdropper can purloin it and use it to access the HTTPS page. To have a system where compromise of an HTTP cookie didn't break the HTTPS cookie too, you'd have to have two separate session cookies with different names and values. eg: an http_session cookie, without secure that only the HTTP version of the site reads, and an https_session cookie, with secure, that only the HTTPS version reads. The login process would have to set both cookies, and the session system would have to be tinkered with to tie both session IDs to the same bag of session stora

Categories : Java

Any way configure to configure visual studio mvc build views release mode
Are you specifically setting something to compile the views like the Razor Generator? (http://razorgenerator.codeplex.com/) If not views in MVC are not compiled.

Categories : Asp Net Mvc

TFS 2012 Configure Features Error - Unable to configure Planning Tools
Try this: Rename your User Story to "Product Backlog Item". Set the Initial State of you "Bug" to "Active". Try the Upgrade Rename your User Story Type back to "User Story". Remove the "Active" Initial State. Export your Common Process Config and add in your "Proposed" State into the Bug Configuration (see below). Import your Common Process Config. Example BugWorkItems <BugWorkItems category="Microsoft.BugCategory"> <States> <State type="Proposed" value="Proposed" /> <!-- more --> </States> </BugWorkItems>

Categories : Tfs

Secure Store .... EndpointNotFoundException: Secure Store Service did not performed the operation.
See the code below - we use it in our back-end Timer jobs and front-end usecases without a problem for months now. The only difference seems to be the recreation of SPServiceContext every time a credential is requested. Try that instead of reusing the current context. public class ExternalCredentialsRepository { private readonly string webUrl; public ExternalCredentialsRepository(string webUrl) { this.webUrl = webUrl; } public NetworkCredential GetCredentials(string applicationId) { var credentialMap = new Dictionary<string, string>(); using (var site = new SPSite(webUrl)) { var serviceContext = SPServiceContext.GetContext(site); var secureStoreProvider = new SecureStoreProvider {Context = serviceCo

Categories : C#

Configure the settings page of the application in mobile device settings
How to do that? Download the Android source code. Modify the Settings app to contain this sort of feature. Compile the source code into a ROM mod, and install that ROM mod on your device. Otherwise, an SDK app cannot affect what appears on the app's page in Settings in the manner that you describe.

Categories : Android

Using NSUserDefaults
Only set the initial value if one does not already exist for that particular key. Where ever the initial value is set, try this instead: id object = [[NSUserDefaults standardUserDefaults] objectForKey:@"rodPower"]; if (!object) { [[NSUserDefaults standardUserDefaults] setObject:<initialValue> forKey:"rodPower"]; } That way if you have already saved a value for that key, the initial value will not be set again.

Categories : IOS

NSUserDefaults - Xamarin
-180 definitely seems suspicious since it is not 0 or MAX double and seemingly related to coordinates. Perhaps you are grabbing the user's location before the location manager has time to locate them. You might check that the reading the location manager gives you is not older than ~15 seconds. It typically gives you the last location lock while it is getting the latest. -180 might be what the simulator gives you as 'last known location'. I don't know monotouch but it looks like you are calling the correct methods.

Categories : C#



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.